Lines Matching refs:nr_linfo
278 u32 i, nr_linfo; in find_linfo() local
281 nr_linfo = prog->aux->nr_linfo; in find_linfo()
283 if (!nr_linfo || insn_off >= prog->len) in find_linfo()
287 for (i = 1; i < nr_linfo; i++) in find_linfo()
11417 u32 i, s, nr_linfo, ncopy, expected_size, rec_size, prev_offset = 0; in check_btf_line() local
11425 nr_linfo = attr->line_info_cnt; in check_btf_line()
11426 if (!nr_linfo) in check_btf_line()
11428 if (nr_linfo > INT_MAX / sizeof(struct bpf_line_info)) in check_btf_line()
11440 linfo = kvcalloc(nr_linfo, sizeof(struct bpf_line_info), in check_btf_line()
11453 for (i = 0; i < nr_linfo; i++) { in check_btf_line()
11529 prog->aux->nr_linfo = nr_linfo; in check_btf_line()
13416 u32 i, l_off, l_cnt, nr_linfo; in bpf_adj_linfo_after_remove() local
13419 nr_linfo = prog->aux->nr_linfo; in bpf_adj_linfo_after_remove()
13420 if (!nr_linfo) in bpf_adj_linfo_after_remove()
13426 for (i = 0; i < nr_linfo; i++) in bpf_adj_linfo_after_remove()
13432 for (; i < nr_linfo; i++) in bpf_adj_linfo_after_remove()
13443 (i == nr_linfo || linfo[i].insn_off != off + cnt)) { in bpf_adj_linfo_after_remove()
13451 sizeof(*linfo) * (nr_linfo - i)); in bpf_adj_linfo_after_remove()
13453 prog->aux->nr_linfo -= l_cnt; in bpf_adj_linfo_after_remove()
13454 nr_linfo = prog->aux->nr_linfo; in bpf_adj_linfo_after_remove()
13458 for (i = l_off; i < nr_linfo; i++) in bpf_adj_linfo_after_remove()
14001 func[i]->aux->nr_linfo = prog->aux->nr_linfo; in jit_subprogs()