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

/linux-master/include/linux/
H A Dbpf_verifier.h793 /* this lives here instead of in bpf.h because it needs to dereference tgt_prog */
794 static inline u64 bpf_trampoline_compute_key(const struct bpf_prog *tgt_prog, argument
797 if (tgt_prog)
798 return ((u64)tgt_prog->aux->id << 32) | btf_id;
814 const struct bpf_prog *tgt_prog,
H A Dbpf.h1622 struct bpf_prog *tgt_prog; member in struct:bpf_tracing_link
/linux-master/kernel/bpf/
H A Dsyscall.c3252 /* tgt_prog is NULL if target is a kernel function */
3253 if (tr_link->tgt_prog)
3254 bpf_prog_put(tr_link->tgt_prog);
3310 struct bpf_prog *tgt_prog = NULL; local
3359 tgt_prog = bpf_prog_get(tgt_prog_fd);
3360 if (IS_ERR(tgt_prog)) {
3361 err = PTR_ERR(tgt_prog);
3362 tgt_prog = NULL;
3366 key = bpf_trampoline_compute_key(tgt_prog, NULL, btf_id);
3390 * - if tgt_prog !
[all...]
H A Dverifier.c20747 const struct bpf_prog *tgt_prog,
20766 btf = tgt_prog ? tgt_prog->aux->btf : prog->aux->attach_btf;
20782 if (tgt_prog) {
20783 struct bpf_prog_aux *aux = tgt_prog->aux;
20786 !bpf_prog_dev_bound_match(prog, tgt_prog)) {
20819 if (!tgt_prog->jited) {
20833 } else if (tgt_prog->type == prog->type) {
20842 if (tgt_prog->type == BPF_PROG_TYPE_TRACING &&
20844 (tgt_prog
20745 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) argument
21071 struct bpf_prog *tgt_prog = prog->aux->dst_prog; local
[all...]
H A Dbtf.c6111 struct bpf_prog *tgt_prog = prog->aux->dst_prog; local
6113 if (tgt_prog)
6114 return tgt_prog->aux->btf;
6196 struct bpf_prog *tgt_prog = prog->aux->dst_prog; local
6337 if (tgt_prog) {
6340 if (tgt_prog->type == BPF_PROG_TYPE_EXT)
6341 tgt_type = tgt_prog->aux->saved_dst_prog_type;
6343 tgt_type = tgt_prog->type;

Completed in 514 milliseconds