Searched refs:tgt_prog (Results 1 – 4 of 4) sorted by relevance
483 static inline u64 bpf_trampoline_compute_key(const struct bpf_prog *tgt_prog, in bpf_trampoline_compute_key() argument486 return tgt_prog ? (((u64)tgt_prog->aux->id) << 32 | btf_id) : btf_id; in bpf_trampoline_compute_key()491 const struct bpf_prog *tgt_prog,
2521 struct bpf_prog *tgt_prog; member2535 if (tr_link->tgt_prog) in bpf_tracing_link_release()2536 bpf_prog_put(tr_link->tgt_prog); in bpf_tracing_link_release()2581 struct bpf_prog *tgt_prog = NULL; in bpf_tracing_prog_attach() local2625 tgt_prog = bpf_prog_get(tgt_prog_fd); in bpf_tracing_prog_attach()2626 if (IS_ERR(tgt_prog)) { in bpf_tracing_prog_attach()2627 err = PTR_ERR(tgt_prog); in bpf_tracing_prog_attach()2628 tgt_prog = NULL; in bpf_tracing_prog_attach()2632 key = bpf_trampoline_compute_key(tgt_prog, btf_id); in bpf_tracing_prog_attach()2664 if (!prog->aux->dst_trampoline && !tgt_prog) { in bpf_tracing_prog_attach()[all …]
12031 const struct bpf_prog *tgt_prog, in bpf_check_attach_target() argument12048 btf = tgt_prog ? tgt_prog->aux->btf : btf_vmlinux; in bpf_check_attach_target()12064 if (tgt_prog) { in bpf_check_attach_target()12065 struct bpf_prog_aux *aux = tgt_prog->aux; in bpf_check_attach_target()12089 if (!tgt_prog->jited) { in bpf_check_attach_target()12093 if (tgt_prog->type == prog->type) { in bpf_check_attach_target()12101 if (tgt_prog->type == BPF_PROG_TYPE_TRACING && in bpf_check_attach_target()12103 (tgt_prog->expected_attach_type == BPF_TRACE_FENTRY || in bpf_check_attach_target()12104 tgt_prog->expected_attach_type == BPF_TRACE_FEXIT)) { in bpf_check_attach_target()12132 if (tgt_prog) { in bpf_check_attach_target()[all …]
4405 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in bpf_prog_get_target_btf() local4407 if (tgt_prog) { in bpf_prog_get_target_btf()4408 return tgt_prog->aux->btf; in bpf_prog_get_target_btf()4432 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in btf_ctx_access() local4560 if (tgt_prog) { in btf_ctx_access()4563 if (tgt_prog->type == BPF_PROG_TYPE_EXT) in btf_ctx_access()4564 tgt_type = tgt_prog->aux->saved_dst_prog_type; in btf_ctx_access()4566 tgt_type = tgt_prog->type; in btf_ctx_access()