Home
last modified time | relevance | path

Searched refs:tgt_prog (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/include/linux/
Dbpf_verifier.h719 static inline u64 bpf_trampoline_compute_key(const struct bpf_prog *tgt_prog, in bpf_trampoline_compute_key() argument
722 if (tgt_prog) in bpf_trampoline_compute_key()
723 return ((u64)tgt_prog->aux->id << 32) | btf_id; in bpf_trampoline_compute_key()
739 const struct bpf_prog *tgt_prog,
Dbpf.h1558 struct bpf_prog *tgt_prog; member
/linux-6.6.21/kernel/bpf/
Dsyscall.c3066 if (tr_link->tgt_prog) in bpf_tracing_link_release()
3067 bpf_prog_put(tr_link->tgt_prog); in bpf_tracing_link_release()
3123 struct bpf_prog *tgt_prog = NULL; in bpf_tracing_prog_attach() local
3167 tgt_prog = bpf_prog_get(tgt_prog_fd); in bpf_tracing_prog_attach()
3168 if (IS_ERR(tgt_prog)) { in bpf_tracing_prog_attach()
3169 err = PTR_ERR(tgt_prog); in bpf_tracing_prog_attach()
3170 tgt_prog = NULL; in bpf_tracing_prog_attach()
3174 key = bpf_trampoline_compute_key(tgt_prog, NULL, btf_id); in bpf_tracing_prog_attach()
3211 if (!prog->aux->dst_trampoline && !tgt_prog) { in bpf_tracing_prog_attach()
3240 err = bpf_check_attach_target(NULL, prog, tgt_prog, btf_id, in bpf_tracing_prog_attach()
[all …]
Dverifier.c19789 const struct bpf_prog *tgt_prog, in bpf_check_attach_target() argument
19807 btf = tgt_prog ? tgt_prog->aux->btf : prog->aux->attach_btf; in bpf_check_attach_target()
19823 if (tgt_prog) { in bpf_check_attach_target()
19824 struct bpf_prog_aux *aux = tgt_prog->aux; in bpf_check_attach_target()
19827 !bpf_prog_dev_bound_match(prog, tgt_prog)) { in bpf_check_attach_target()
19854 if (!tgt_prog->jited) { in bpf_check_attach_target()
19858 if (tgt_prog->type == prog->type) { in bpf_check_attach_target()
19866 if (tgt_prog->type == BPF_PROG_TYPE_TRACING && in bpf_check_attach_target()
19868 (tgt_prog->expected_attach_type == BPF_TRACE_FENTRY || in bpf_check_attach_target()
19869 tgt_prog->expected_attach_type == BPF_TRACE_FEXIT)) { in bpf_check_attach_target()
[all …]
Dbtf.c5866 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in bpf_prog_get_target_btf() local
5868 if (tgt_prog) in bpf_prog_get_target_btf()
5869 return tgt_prog->aux->btf; in bpf_prog_get_target_btf()
5931 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in btf_ctx_access() local
6072 if (tgt_prog) { in btf_ctx_access()
6075 if (tgt_prog->type == BPF_PROG_TYPE_EXT) in btf_ctx_access()
6076 tgt_type = tgt_prog->aux->saved_dst_prog_type; in btf_ctx_access()
6078 tgt_type = tgt_prog->type; in btf_ctx_access()