Searched refs:tgt_prog (Results 1 – 5 of 5) sorted by relevance
603 static inline u64 bpf_trampoline_compute_key(const struct bpf_prog *tgt_prog, in bpf_trampoline_compute_key() argument606 if (tgt_prog) in bpf_trampoline_compute_key()607 return ((u64)tgt_prog->aux->id << 32) | btf_id; in bpf_trampoline_compute_key()623 const struct bpf_prog *tgt_prog,
1292 struct bpf_prog *tgt_prog; member
2906 if (tr_link->tgt_prog) in bpf_tracing_link_release()2907 bpf_prog_put(tr_link->tgt_prog); in bpf_tracing_link_release()2956 struct bpf_prog *tgt_prog = NULL; in bpf_tracing_prog_attach() local3000 tgt_prog = bpf_prog_get(tgt_prog_fd); in bpf_tracing_prog_attach()3001 if (IS_ERR(tgt_prog)) { in bpf_tracing_prog_attach()3002 err = PTR_ERR(tgt_prog); in bpf_tracing_prog_attach()3003 tgt_prog = NULL; in bpf_tracing_prog_attach()3007 key = bpf_trampoline_compute_key(tgt_prog, NULL, btf_id); in bpf_tracing_prog_attach()3040 if (!prog->aux->dst_trampoline && !tgt_prog) { in bpf_tracing_prog_attach()3064 err = bpf_check_attach_target(NULL, prog, tgt_prog, btf_id, in bpf_tracing_prog_attach()[all …]
14864 const struct bpf_prog *tgt_prog, in bpf_check_attach_target() argument14881 btf = tgt_prog ? tgt_prog->aux->btf : prog->aux->attach_btf; in bpf_check_attach_target()14897 if (tgt_prog) { in bpf_check_attach_target()14898 struct bpf_prog_aux *aux = tgt_prog->aux; in bpf_check_attach_target()14922 if (!tgt_prog->jited) { in bpf_check_attach_target()14926 if (tgt_prog->type == prog->type) { in bpf_check_attach_target()14934 if (tgt_prog->type == BPF_PROG_TYPE_TRACING && in bpf_check_attach_target()14936 (tgt_prog->expected_attach_type == BPF_TRACE_FENTRY || in bpf_check_attach_target()14937 tgt_prog->expected_attach_type == BPF_TRACE_FEXIT)) { in bpf_check_attach_target()14965 if (tgt_prog) { in bpf_check_attach_target()[all …]
5316 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in bpf_prog_get_target_btf() local5318 if (tgt_prog) in bpf_prog_get_target_btf()5319 return tgt_prog->aux->btf; in bpf_prog_get_target_btf()5369 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in btf_ctx_access() local5507 if (tgt_prog) { in btf_ctx_access()5510 if (tgt_prog->type == BPF_PROG_TYPE_EXT) in btf_ctx_access()5511 tgt_type = tgt_prog->aux->saved_dst_prog_type; in btf_ctx_access()5513 tgt_type = tgt_prog->type; in btf_ctx_access()