Lines Matching refs:krecord
38 struct bpf_func_info *krecord; in prepare_btf_func() local
66 krecord = kvcalloc(nfuncs, krec_size, GFP_KERNEL_ACCOUNT | __GFP_NOWARN); in prepare_btf_func()
67 if (!krecord) in prepare_btf_func()
86 if (copy_from_bpfptr(&krecord[i], urecord, min_size)) { in prepare_btf_func()
94 if (krecord[i].insn_off) { in prepare_btf_func()
97 krecord[i].insn_off); in prepare_btf_func()
100 } else if (krecord[i].insn_off <= prev_offset) { in prepare_btf_func()
103 krecord[i].insn_off, prev_offset); in prepare_btf_func()
108 type = btf_type_by_id(btf, krecord[i].type_id); in prepare_btf_func()
111 krecord[i].type_id); in prepare_btf_func()
120 prev_offset = krecord[i].insn_off; in prepare_btf_func()
124 prog->aux->func_info = krecord; in prepare_btf_func()
129 kvfree(krecord); in prepare_btf_func()
139 struct bpf_func_info *krecord; in check_btf_func() local
165 krecord = prog->aux->func_info; in check_btf_func()
175 if (env->subprog_info[i].start != krecord[i].insn_off) { in check_btf_func()
181 type = btf_type_by_id(btf, krecord[i].type_id); in check_btf_func()