Searched refs:tgt_prog (Results 1 – 4 of 4) sorted by relevance
749 static int bpf_freplace_check_tgt_prog(struct bpf_prog *tgt_prog) in bpf_freplace_check_tgt_prog() argument751 struct bpf_prog_aux *aux = tgt_prog->aux; in bpf_freplace_check_tgt_prog()769 struct bpf_prog *tgt_prog) in __bpf_trampoline_link_prog() argument792 err = bpf_freplace_check_tgt_prog(tgt_prog); in __bpf_trampoline_link_prog()843 struct bpf_prog *tgt_prog) in bpf_trampoline_link_prog() argument848 err = __bpf_trampoline_link_prog(link, tr, tgt_prog); in bpf_trampoline_link_prog()855 struct bpf_prog *tgt_prog) in __bpf_trampoline_unlink_prog() argument867 guard(mutex)(&tgt_prog->aux->ext_mutex); in __bpf_trampoline_unlink_prog()868 tgt_prog->aux->is_extended = false; in __bpf_trampoline_unlink_prog()886 struct bpf_prog *tgt_prog) in bpf_trampoline_unlink_prog() argument[all …]
3528 tr_link->tgt_prog)); in bpf_tracing_link_show_fdinfo() 3532 /* tgt_prog is NULL if target is a kernel function */ in bpf_tracing_link_show_fdinfo() 3533 if (tr_link->tgt_prog) in bpf_tracing_link_show_fdinfo() 3534 bpf_prog_put(tr_link->tgt_prog); in bpf_tracing_link_show_fdinfo() 3594 struct bpf_prog *tgt_prog = NULL; in bpf_tracing_prog_attach() 3644 tgt_prog = bpf_prog_get(tgt_prog_fd); in bpf_tracing_prog_attach() 3645 if (IS_ERR(tgt_prog)) { in bpf_tracing_prog_attach() 3646 err = PTR_ERR(tgt_prog); in bpf_tracing_prog_attach() 3647 tgt_prog = NULL; in bpf_tracing_prog_attach() 3651 key = bpf_trampoline_compute_key(tgt_prog, NUL in bpf_tracing_prog_attach() 3573 struct bpf_prog *tgt_prog = NULL; bpf_tracing_prog_attach() local [all...]
24960 const struct bpf_prog *tgt_prog, in bpf_check_attach_target() 24981 btf = tgt_prog ? tgt_prog->aux->btf : prog->aux->attach_btf; in bpf_check_attach_target() 24997 if (tgt_prog) { in bpf_check_attach_target() 24998 struct bpf_prog_aux *aux = tgt_prog->aux; in bpf_check_attach_target() 25003 !bpf_prog_dev_bound_match(prog, tgt_prog)) { in bpf_check_attach_target() 25053 if (!tgt_prog->jited) { in bpf_check_attach_target() 25067 } else if (tgt_prog->type == prog->type) { in bpf_check_attach_target() 25076 if (tgt_prog->type == BPF_PROG_TYPE_TRACING && in bpf_check_attach_target() 25078 (tgt_prog in bpf_check_attach_target() 24933 bpf_check_attach_target(struct bpf_verifier_log * log,const struct bpf_prog * prog,const struct bpf_prog * tgt_prog,u32 btf_id,struct bpf_attach_target_info * tgt_info) bpf_check_attach_target() argument 25337 struct bpf_prog *tgt_prog = prog->aux->dst_prog; check_attach_btf_id() local [all...]
6512 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in bpf_prog_get_target_btf() local6514 if (tgt_prog) in bpf_prog_get_target_btf()6515 return tgt_prog->aux->btf; in bpf_prog_get_target_btf()6793 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in btf_ctx_access() local6979 if (tgt_prog) { in btf_ctx_access()6982 if (tgt_prog->type == BPF_PROG_TYPE_EXT) in btf_ctx_access()6983 tgt_type = tgt_prog->aux->saved_dst_prog_type; in btf_ctx_access()6985 tgt_type = tgt_prog->type; in btf_ctx_access()