Lines Matching refs:attach_btf
2034 if (prog->aux->attach_btf) in __bpf_prog_put_noref()
2035 btf_put(prog->aux->attach_btf); in __bpf_prog_put_noref()
2316 struct btf *attach_btf, u32 btf_id, in bpf_prog_load_check_attach() argument
2323 if (!attach_btf && !dst_prog) in bpf_prog_load_check_attach()
2337 if (attach_btf && (!btf_id || dst_prog)) in bpf_prog_load_check_attach()
2467 struct btf *attach_btf = NULL; in bpf_prog_load() local
2518 attach_btf = btf_get_by_fd(attr->attach_btf_obj_fd); in bpf_prog_load()
2519 if (IS_ERR(attach_btf)) in bpf_prog_load()
2521 if (!btf_is_kernel(attach_btf)) { in bpf_prog_load()
2525 btf_put(attach_btf); in bpf_prog_load()
2531 attach_btf = bpf_get_btf_vmlinux(); in bpf_prog_load()
2532 if (IS_ERR(attach_btf)) in bpf_prog_load()
2533 return PTR_ERR(attach_btf); in bpf_prog_load()
2534 if (!attach_btf) in bpf_prog_load()
2536 btf_get(attach_btf); in bpf_prog_load()
2541 attach_btf, attr->attach_btf_id, in bpf_prog_load()
2545 if (attach_btf) in bpf_prog_load()
2546 btf_put(attach_btf); in bpf_prog_load()
2555 if (attach_btf) in bpf_prog_load()
2556 btf_put(attach_btf); in bpf_prog_load()
2561 prog->aux->attach_btf = attach_btf; in bpf_prog_load()
2651 if (prog->aux->attach_btf) in bpf_prog_load()
2652 btf_put(prog->aux->attach_btf); in bpf_prog_load()
3055 key = bpf_trampoline_compute_key(NULL, prog->aux->attach_btf, btf_id); in bpf_tracing_prog_attach()
3899 struct btf *attach_btf = bpf_prog_get_target_btf(prog); in bpf_prog_get_info_by_fd() local
4102 if (attach_btf) in bpf_prog_get_info_by_fd()
4103 info.attach_btf_obj_id = btf_obj_id(attach_btf); in bpf_prog_get_info_by_fd()