Lines Matching defs:attach_btf
2385 if (prog->aux->attach_btf)
2386 btf_put(prog->aux->attach_btf);
2652 struct btf *attach_btf, u32 btf_id,
2659 if (!attach_btf && !dst_prog)
2673 if (attach_btf && (!btf_id || dst_prog))
2848 struct btf *attach_btf = NULL;
2926 attach_btf = btf_get_by_fd(attr->attach_btf_obj_fd);
2927 if (IS_ERR(attach_btf)) {
2931 if (!btf_is_kernel(attach_btf)) {
2935 btf_put(attach_btf);
2942 attach_btf = bpf_get_btf_vmlinux();
2943 if (IS_ERR(attach_btf)) {
2944 err = PTR_ERR(attach_btf);
2947 if (!attach_btf) {
2951 btf_get(attach_btf);
2955 attach_btf, attr->attach_btf_id,
2959 if (attach_btf)
2960 btf_put(attach_btf);
2970 if (attach_btf)
2971 btf_put(attach_btf);
2978 prog->aux->attach_btf = attach_btf;
3109 if (prog->aux->attach_btf)
3110 btf_put(prog->aux->attach_btf);
3631 * - if prog->aux->dst_trampoline is NULL and tgt_prog and prog->aux->attach_btf
3647 /* We can allow re-attach only if we have valid attach_btf. */
3648 if (!prog->aux->attach_btf) {
3653 key = bpf_trampoline_compute_key(NULL, prog->aux->attach_btf, btf_id);
4948 struct btf *attach_btf = bpf_prog_get_target_btf(prog);
5151 if (attach_btf)
5152 info.attach_btf_obj_id = btf_obj_id(attach_btf);