Lines Matching refs:attach_btf
1785 if (prog->aux->attach_btf) in __bpf_prog_put_noref()
1786 btf_put(prog->aux->attach_btf); in __bpf_prog_put_noref()
2056 struct btf *attach_btf, u32 btf_id, in bpf_prog_load_check_attach() argument
2063 if (!attach_btf && !dst_prog) in bpf_prog_load_check_attach()
2077 if (attach_btf && (!btf_id || dst_prog)) in bpf_prog_load_check_attach()
2207 struct btf *attach_btf = NULL; in bpf_prog_load() local
2257 attach_btf = btf_get_by_fd(attr->attach_btf_obj_fd); in bpf_prog_load()
2258 if (IS_ERR(attach_btf)) in bpf_prog_load()
2260 if (!btf_is_kernel(attach_btf)) { in bpf_prog_load()
2264 btf_put(attach_btf); in bpf_prog_load()
2270 attach_btf = bpf_get_btf_vmlinux(); in bpf_prog_load()
2271 if (IS_ERR(attach_btf)) in bpf_prog_load()
2272 return PTR_ERR(attach_btf); in bpf_prog_load()
2273 if (!attach_btf) in bpf_prog_load()
2275 btf_get(attach_btf); in bpf_prog_load()
2280 attach_btf, attr->attach_btf_id, in bpf_prog_load()
2284 if (attach_btf) in bpf_prog_load()
2285 btf_put(attach_btf); in bpf_prog_load()
2294 if (attach_btf) in bpf_prog_load()
2295 btf_put(attach_btf); in bpf_prog_load()
2300 prog->aux->attach_btf = attach_btf; in bpf_prog_load()
2389 if (prog->aux->attach_btf) in bpf_prog_load()
2390 btf_put(prog->aux->attach_btf); in bpf_prog_load()
2796 key = bpf_trampoline_compute_key(NULL, prog->aux->attach_btf, btf_id); in bpf_tracing_prog_attach()