Lines Matching refs:dst_prog
2433 struct bpf_prog *dst_prog) in bpf_prog_load_check_attach() argument
2439 if (!attach_btf && !dst_prog) in bpf_prog_load_check_attach()
2453 if (attach_btf && (!btf_id || dst_prog)) in bpf_prog_load_check_attach()
2456 if (dst_prog && prog_type != BPF_PROG_TYPE_TRACING && in bpf_prog_load_check_attach()
2586 struct bpf_prog *prog, *dst_prog = NULL; in bpf_prog_load() local
2635 dst_prog = bpf_prog_get(attr->attach_prog_fd); in bpf_prog_load()
2636 if (IS_ERR(dst_prog)) { in bpf_prog_load()
2637 dst_prog = NULL; in bpf_prog_load()
2662 dst_prog)) { in bpf_prog_load()
2663 if (dst_prog) in bpf_prog_load()
2664 bpf_prog_put(dst_prog); in bpf_prog_load()
2673 if (dst_prog) in bpf_prog_load()
2674 bpf_prog_put(dst_prog); in bpf_prog_load()
2683 prog->aux->dst_prog = dst_prog; in bpf_prog_load()
2721 if (type == BPF_PROG_TYPE_EXT && dst_prog && in bpf_prog_load()
2722 bpf_prog_is_dev_bound(dst_prog->aux)) { in bpf_prog_load()
2723 err = bpf_prog_dev_bound_inherit(prog, dst_prog); in bpf_prog_load()
3264 tgt_prog = prog->aux->dst_prog; in bpf_tracing_prog_attach()
3285 if (prog->aux->dst_prog && in bpf_tracing_prog_attach()
3288 bpf_prog_put(prog->aux->dst_prog); in bpf_tracing_prog_attach()
3293 prog->aux->dst_prog = NULL; in bpf_tracing_prog_attach()