Searched refs:tgt_prog (Results 1 – 3 of 3) sorted by relevance
2627 struct bpf_prog *tgt_prog; member2641 if (tr_link->tgt_prog) in bpf_tracing_link_release()2642 bpf_prog_put(tr_link->tgt_prog); in bpf_tracing_link_release()2690 struct bpf_prog *tgt_prog = NULL; in bpf_tracing_prog_attach() local2734 tgt_prog = bpf_prog_get(tgt_prog_fd); in bpf_tracing_prog_attach()2735 if (IS_ERR(tgt_prog)) { in bpf_tracing_prog_attach()2736 err = PTR_ERR(tgt_prog); in bpf_tracing_prog_attach()2737 tgt_prog = NULL; in bpf_tracing_prog_attach()2741 key = bpf_trampoline_compute_key(tgt_prog, NULL, btf_id); in bpf_tracing_prog_attach()2777 if (!prog->aux->dst_trampoline && !tgt_prog) { in bpf_tracing_prog_attach()[all …]
13588 const struct bpf_prog *tgt_prog, in bpf_check_attach_target() argument13605 btf = tgt_prog ? tgt_prog->aux->btf : prog->aux->attach_btf; in bpf_check_attach_target()13621 if (tgt_prog) { in bpf_check_attach_target()13622 struct bpf_prog_aux *aux = tgt_prog->aux; in bpf_check_attach_target()13646 if (!tgt_prog->jited) { in bpf_check_attach_target()13650 if (tgt_prog->type == prog->type) { in bpf_check_attach_target()13658 if (tgt_prog->type == BPF_PROG_TYPE_TRACING && in bpf_check_attach_target()13660 (tgt_prog->expected_attach_type == BPF_TRACE_FENTRY || in bpf_check_attach_target()13661 tgt_prog->expected_attach_type == BPF_TRACE_FEXIT)) { in bpf_check_attach_target()13689 if (tgt_prog) { in bpf_check_attach_target()[all …]
4705 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in bpf_prog_get_target_btf() local4707 if (tgt_prog) in bpf_prog_get_target_btf()4708 return tgt_prog->aux->btf; in bpf_prog_get_target_btf()4731 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in btf_ctx_access() local4867 if (tgt_prog) { in btf_ctx_access()4870 if (tgt_prog->type == BPF_PROG_TYPE_EXT) in btf_ctx_access()4871 tgt_type = tgt_prog->aux->saved_dst_prog_type; in btf_ctx_access()4873 tgt_type = tgt_prog->type; in btf_ctx_access()