Lines Matching refs:attach_btf
2344 if (prog->aux->attach_btf) in __bpf_prog_put_noref()
2345 btf_put(prog->aux->attach_btf); in __bpf_prog_put_noref()
2611 struct btf *attach_btf, u32 btf_id, in bpf_prog_load_check_attach() argument
2618 if (!attach_btf && !dst_prog) in bpf_prog_load_check_attach()
2632 if (attach_btf && (!btf_id || dst_prog)) in bpf_prog_load_check_attach()
2771 struct btf *attach_btf = NULL; in bpf_prog_load() local
2849 attach_btf = btf_get_by_fd(attr->attach_btf_obj_fd); in bpf_prog_load()
2850 if (IS_ERR(attach_btf)) { in bpf_prog_load()
2854 if (!btf_is_kernel(attach_btf)) { in bpf_prog_load()
2858 btf_put(attach_btf); in bpf_prog_load()
2865 attach_btf = bpf_get_btf_vmlinux(); in bpf_prog_load()
2866 if (IS_ERR(attach_btf)) { in bpf_prog_load()
2867 err = PTR_ERR(attach_btf); in bpf_prog_load()
2870 if (!attach_btf) { in bpf_prog_load()
2874 btf_get(attach_btf); in bpf_prog_load()
2878 attach_btf, attr->attach_btf_id, in bpf_prog_load()
2882 if (attach_btf) in bpf_prog_load()
2883 btf_put(attach_btf); in bpf_prog_load()
2893 if (attach_btf) in bpf_prog_load()
2894 btf_put(attach_btf); in bpf_prog_load()
2901 prog->aux->attach_btf = attach_btf; in bpf_prog_load()
3026 if (prog->aux->attach_btf) in bpf_prog_load()
3027 btf_put(prog->aux->attach_btf); in bpf_prog_load()
3565 if (!prog->aux->attach_btf) { in bpf_tracing_prog_attach()
3570 key = bpf_trampoline_compute_key(NULL, prog->aux->attach_btf, btf_id); in bpf_tracing_prog_attach()
4865 struct btf *attach_btf = bpf_prog_get_target_btf(prog); in bpf_prog_get_info_by_fd() local
5068 if (attach_btf) in bpf_prog_get_info_by_fd()
5069 info.attach_btf_obj_id = btf_obj_id(attach_btf); in bpf_prog_get_info_by_fd()