Home
last modified time | relevance | path

Searched refs:attach_btf (Results 1 – 4 of 4) sorted by relevance

/linux/kernel/bpf/
H A Dsyscall.c2391 if (prog->aux->attach_btf) in __bpf_prog_put_noref()
2392 btf_put(prog->aux->attach_btf); in __bpf_prog_put_noref()
2661 struct btf *attach_btf, u32 btf_id, in bpf_prog_load_check_attach() argument
2668 if (!attach_btf && !dst_prog) in bpf_prog_load_check_attach()
2682 if (attach_btf && (!btf_id || dst_prog)) in bpf_prog_load_check_attach()
2874 struct btf *attach_btf = NULL; in bpf_prog_load() local
2952 attach_btf = btf_get_by_fd(attr->attach_btf_obj_fd); in bpf_prog_load()
2953 if (IS_ERR(attach_btf)) { in bpf_prog_load()
2957 if (!btf_is_kernel(attach_btf)) { in bpf_prog_load()
2961 btf_put(attach_btf); in bpf_prog_load()
[all …]
H A Dtrampoline.c745 p->aux->attach_btf = prog->aux->attach_btf; in cgroup_shim_alloc()
746 btf_get(p->aux->attach_btf); in cgroup_shim_alloc()
792 key = bpf_trampoline_compute_key(NULL, prog->aux->attach_btf, in bpf_trampoline_link_cgroup_shim()
849 key = bpf_trampoline_compute_key(NULL, prog->aux->attach_btf, in bpf_trampoline_unlink_cgroup_shim()
H A Dverifier.c17331 ret_type = btf_type_resolve_ptr(prog->aux->attach_btf, in check_return_code()
24009 btf = prog->aux->attach_btf; in check_struct_ops_btf_id()
24152 btf = tgt_prog ? tgt_prog->aux->btf : prog->aux->attach_btf; in bpf_check_attach_target()
24603 key = bpf_trampoline_compute_key(tgt_prog, prog->aux->attach_btf, btf_id); in check_attach_btf_id()
/linux/net/sched/
H A Dbpf_qdisc.c38 struct btf *btf = prog->aux->attach_btf; in BTF_ID_LIST_SINGLE()