Home
last modified time | relevance | path

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

/kernel/bpf/
Dsyscall.c2914 if (tr_link->tgt_prog) in bpf_tracing_link_release()
2915 bpf_prog_put(tr_link->tgt_prog); in bpf_tracing_link_release()
2964 struct bpf_prog *tgt_prog = NULL; in bpf_tracing_prog_attach() local
3008 tgt_prog = bpf_prog_get(tgt_prog_fd); in bpf_tracing_prog_attach()
3009 if (IS_ERR(tgt_prog)) { in bpf_tracing_prog_attach()
3010 err = PTR_ERR(tgt_prog); in bpf_tracing_prog_attach()
3011 tgt_prog = NULL; in bpf_tracing_prog_attach()
3015 key = bpf_trampoline_compute_key(tgt_prog, NULL, btf_id); in bpf_tracing_prog_attach()
3052 if (!prog->aux->dst_trampoline && !tgt_prog) { in bpf_tracing_prog_attach()
3081 err = bpf_check_attach_target(NULL, prog, tgt_prog, btf_id, in bpf_tracing_prog_attach()
[all …]
Dverifier.c15143 const struct bpf_prog *tgt_prog, in bpf_check_attach_target() argument
15160 btf = tgt_prog ? tgt_prog->aux->btf : prog->aux->attach_btf; in bpf_check_attach_target()
15176 if (tgt_prog) { in bpf_check_attach_target()
15177 struct bpf_prog_aux *aux = tgt_prog->aux; in bpf_check_attach_target()
15201 if (!tgt_prog->jited) { in bpf_check_attach_target()
15205 if (tgt_prog->type == prog->type) { in bpf_check_attach_target()
15213 if (tgt_prog->type == BPF_PROG_TYPE_TRACING && in bpf_check_attach_target()
15215 (tgt_prog->expected_attach_type == BPF_TRACE_FENTRY || in bpf_check_attach_target()
15216 tgt_prog->expected_attach_type == BPF_TRACE_FEXIT)) { in bpf_check_attach_target()
15244 if (tgt_prog) { in bpf_check_attach_target()
[all …]
Dbtf.c5336 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in bpf_prog_get_target_btf() local
5338 if (tgt_prog) in bpf_prog_get_target_btf()
5339 return tgt_prog->aux->btf; in bpf_prog_get_target_btf()
5385 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in btf_ctx_access() local
5523 if (tgt_prog) { in btf_ctx_access()
5526 if (tgt_prog->type == BPF_PROG_TYPE_EXT) in btf_ctx_access()
5527 tgt_type = tgt_prog->aux->saved_dst_prog_type; in btf_ctx_access()
5529 tgt_type = tgt_prog->type; in btf_ctx_access()