Lines Matching refs:dst_prog
2323 struct bpf_prog *dst_prog) in bpf_prog_load_check_attach() argument
2329 if (!attach_btf && !dst_prog) in bpf_prog_load_check_attach()
2343 if (attach_btf && (!btf_id || dst_prog)) in bpf_prog_load_check_attach()
2346 if (dst_prog && prog_type != BPF_PROG_TYPE_TRACING && in bpf_prog_load_check_attach()
2472 struct bpf_prog *prog, *dst_prog = NULL; in bpf_prog_load() local
2521 dst_prog = bpf_prog_get(attr->attach_prog_fd); in bpf_prog_load()
2522 if (IS_ERR(dst_prog)) { in bpf_prog_load()
2523 dst_prog = NULL; in bpf_prog_load()
2548 dst_prog)) { in bpf_prog_load()
2549 if (dst_prog) in bpf_prog_load()
2550 bpf_prog_put(dst_prog); in bpf_prog_load()
2559 if (dst_prog) in bpf_prog_load()
2560 bpf_prog_put(dst_prog); in bpf_prog_load()
2569 prog->aux->dst_prog = dst_prog; in bpf_prog_load()
3100 tgt_prog = prog->aux->dst_prog; in bpf_tracing_prog_attach()
3121 if (prog->aux->dst_prog && in bpf_tracing_prog_attach()
3124 bpf_prog_put(prog->aux->dst_prog); in bpf_tracing_prog_attach()
3129 prog->aux->dst_prog = NULL; in bpf_tracing_prog_attach()