Searched refs:tgt_prog (Results 1 – 5 of 5) sorted by relevance
553 static inline u64 bpf_trampoline_compute_key(const struct bpf_prog *tgt_prog, in bpf_trampoline_compute_key() argument556 if (tgt_prog) in bpf_trampoline_compute_key()557 return ((u64)tgt_prog->aux->id << 32) | btf_id; in bpf_trampoline_compute_key()573 const struct bpf_prog *tgt_prog,
1137 struct bpf_prog *tgt_prog; member
2878 if (tr_link->tgt_prog) in bpf_tracing_link_release()2879 bpf_prog_put(tr_link->tgt_prog); in bpf_tracing_link_release()2928 struct bpf_prog *tgt_prog = NULL; in bpf_tracing_prog_attach() local2972 tgt_prog = bpf_prog_get(tgt_prog_fd); in bpf_tracing_prog_attach()2973 if (IS_ERR(tgt_prog)) { in bpf_tracing_prog_attach()2974 err = PTR_ERR(tgt_prog); in bpf_tracing_prog_attach()2975 tgt_prog = NULL; in bpf_tracing_prog_attach()2979 key = bpf_trampoline_compute_key(tgt_prog, NULL, btf_id); in bpf_tracing_prog_attach()3012 if (!prog->aux->dst_trampoline && !tgt_prog) { in bpf_tracing_prog_attach()3036 err = bpf_check_attach_target(NULL, prog, tgt_prog, btf_id, in bpf_tracing_prog_attach()[all …]
14582 const struct bpf_prog *tgt_prog, in bpf_check_attach_target() argument14599 btf = tgt_prog ? tgt_prog->aux->btf : prog->aux->attach_btf; in bpf_check_attach_target()14615 if (tgt_prog) { in bpf_check_attach_target()14616 struct bpf_prog_aux *aux = tgt_prog->aux; in bpf_check_attach_target()14640 if (!tgt_prog->jited) { in bpf_check_attach_target()14644 if (tgt_prog->type == prog->type) { in bpf_check_attach_target()14652 if (tgt_prog->type == BPF_PROG_TYPE_TRACING && in bpf_check_attach_target()14654 (tgt_prog->expected_attach_type == BPF_TRACE_FENTRY || in bpf_check_attach_target()14655 tgt_prog->expected_attach_type == BPF_TRACE_FEXIT)) { in bpf_check_attach_target()14683 if (tgt_prog) { in bpf_check_attach_target()[all …]
5199 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in bpf_prog_get_target_btf() local5201 if (tgt_prog) in bpf_prog_get_target_btf()5202 return tgt_prog->aux->btf; in bpf_prog_get_target_btf()5224 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in btf_ctx_access() local5361 if (tgt_prog) { in btf_ctx_access()5364 if (tgt_prog->type == BPF_PROG_TYPE_EXT) in btf_ctx_access()5365 tgt_type = tgt_prog->aux->saved_dst_prog_type; in btf_ctx_access()5367 tgt_type = tgt_prog->type; in btf_ctx_access()