Home
last modified time | relevance | path

Searched refs:nr_linfo (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/tools/lib/bpf/
Dbpf_prog_linfo.c16 __u32 nr_linfo; member
25 __u32 nr_jited_func, nr_linfo; in dissect_jited_func() local
44 nr_linfo = prog_linfo->nr_linfo; in dissect_jited_func()
47 i < nr_linfo && f < nr_jited_func; in dissect_jited_func()
80 nr_linfo - prev_i; in dissect_jited_func()
103 __u32 nr_linfo, nr_jited_func; in bpf_prog_linfo__new() local
106 nr_linfo = info->nr_line_info; in bpf_prog_linfo__new()
108 if (!nr_linfo) in bpf_prog_linfo__new()
124 prog_linfo->nr_linfo = nr_linfo; in bpf_prog_linfo__new()
126 data_sz = (__u64)nr_linfo * prog_linfo->rec_size; in bpf_prog_linfo__new()
[all …]
/linux-6.6.21/kernel/bpf/
Dcore.c160 if (!prog->aux->nr_linfo || !prog->jit_requested) in bpf_prog_alloc_jited_linfo()
163 prog->aux->jited_linfo = kvcalloc(prog->aux->nr_linfo, in bpf_prog_alloc_jited_linfo()
211 u32 linfo_idx, insn_start, insn_end, nr_linfo, i; in bpf_prog_fill_jited_linfo() local
227 nr_linfo = prog->aux->nr_linfo - linfo_idx; in bpf_prog_fill_jited_linfo()
229 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo()
452 u32 i, nr_linfo; in bpf_adj_linfo() local
454 nr_linfo = prog->aux->nr_linfo; in bpf_adj_linfo()
455 if (!nr_linfo || !delta) in bpf_adj_linfo()
460 for (i = 0; i < nr_linfo; i++) in bpf_adj_linfo()
465 for (; i < nr_linfo; i++) in bpf_adj_linfo()
Dverifier.c345 u32 i, nr_linfo; in find_linfo() local
348 nr_linfo = prog->aux->nr_linfo; in find_linfo()
350 if (!nr_linfo || insn_off >= prog->len) in find_linfo()
354 for (i = 1; i < nr_linfo; i++) in find_linfo()
15568 u32 i, s, nr_linfo, ncopy, expected_size, rec_size, prev_offset = 0; in check_btf_line() local
15576 nr_linfo = attr->line_info_cnt; in check_btf_line()
15577 if (!nr_linfo) in check_btf_line()
15579 if (nr_linfo > INT_MAX / sizeof(struct bpf_line_info)) in check_btf_line()
15591 linfo = kvcalloc(nr_linfo, sizeof(struct bpf_line_info), in check_btf_line()
15604 for (i = 0; i < nr_linfo; i++) { in check_btf_line()
[all …]
Dsyscall.c4534 info.nr_line_info = prog->aux->nr_linfo; in bpf_prog_get_info_by_fd()
4547 info.nr_jited_line_info = prog->aux->nr_linfo; in bpf_prog_get_info_by_fd()
/linux-6.6.21/Documentation/bpf/
Ddrgn.rst187 .nr_linfo = (u32)37,
/linux-6.6.21/include/linux/
Dbpf.h1464 u32 nr_linfo; member