Lines Matching refs:attach_btf
1754 if (prog->aux->attach_btf) in __bpf_prog_put_noref()
1755 btf_put(prog->aux->attach_btf); in __bpf_prog_put_noref()
2017 struct btf *attach_btf, u32 btf_id, in bpf_prog_load_check_attach() argument
2024 if (!attach_btf && !dst_prog) in bpf_prog_load_check_attach()
2038 if (attach_btf && (!btf_id || dst_prog)) in bpf_prog_load_check_attach()
2168 struct btf *attach_btf = NULL; in bpf_prog_load() local
2218 attach_btf = btf_get_by_fd(attr->attach_btf_obj_fd); in bpf_prog_load()
2219 if (IS_ERR(attach_btf)) in bpf_prog_load()
2221 if (!btf_is_kernel(attach_btf)) { in bpf_prog_load()
2225 btf_put(attach_btf); in bpf_prog_load()
2231 attach_btf = bpf_get_btf_vmlinux(); in bpf_prog_load()
2232 if (IS_ERR(attach_btf)) in bpf_prog_load()
2233 return PTR_ERR(attach_btf); in bpf_prog_load()
2234 if (!attach_btf) in bpf_prog_load()
2236 btf_get(attach_btf); in bpf_prog_load()
2241 attach_btf, attr->attach_btf_id, in bpf_prog_load()
2245 if (attach_btf) in bpf_prog_load()
2246 btf_put(attach_btf); in bpf_prog_load()
2255 if (attach_btf) in bpf_prog_load()
2256 btf_put(attach_btf); in bpf_prog_load()
2261 prog->aux->attach_btf = attach_btf; in bpf_prog_load()
2350 if (prog->aux->attach_btf) in bpf_prog_load()
2351 btf_put(prog->aux->attach_btf); in bpf_prog_load()
2757 key = bpf_trampoline_compute_key(NULL, prog->aux->attach_btf, btf_id); in bpf_tracing_prog_attach()