Home
last modified time | relevance | path

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

/Linux-v5.15/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-v5.15/kernel/bpf/
Dcore.c145 if (!prog->aux->nr_linfo || !prog->jit_requested) in bpf_prog_alloc_jited_linfo()
148 prog->aux->jited_linfo = kvcalloc(prog->aux->nr_linfo, in bpf_prog_alloc_jited_linfo()
196 u32 linfo_idx, insn_start, insn_end, nr_linfo, i; in bpf_prog_fill_jited_linfo() local
212 nr_linfo = prog->aux->nr_linfo - linfo_idx; in bpf_prog_fill_jited_linfo()
214 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo()
417 u32 i, nr_linfo; in bpf_adj_linfo() local
419 nr_linfo = prog->aux->nr_linfo; in bpf_adj_linfo()
420 if (!nr_linfo || !delta) in bpf_adj_linfo()
425 for (i = 0; i < nr_linfo; i++) in bpf_adj_linfo()
430 for (; i < nr_linfo; i++) in bpf_adj_linfo()
Dverifier.c276 u32 i, nr_linfo; in find_linfo() local
279 nr_linfo = prog->aux->nr_linfo; in find_linfo()
281 if (!nr_linfo || insn_off >= prog->len) in find_linfo()
285 for (i = 1; i < nr_linfo; i++) in find_linfo()
9904 u32 i, s, nr_linfo, ncopy, expected_size, rec_size, prev_offset = 0; in check_btf_line() local
9912 nr_linfo = attr->line_info_cnt; in check_btf_line()
9913 if (!nr_linfo) in check_btf_line()
9915 if (nr_linfo > INT_MAX / sizeof(struct bpf_line_info)) in check_btf_line()
9927 linfo = kvcalloc(nr_linfo, sizeof(struct bpf_line_info), in check_btf_line()
9940 for (i = 0; i < nr_linfo; i++) { in check_btf_line()
[all …]
Dsyscall.c3792 info.nr_line_info = prog->aux->nr_linfo; in bpf_prog_get_info_by_fd()
3805 info.nr_jited_line_info = prog->aux->nr_linfo; in bpf_prog_get_info_by_fd()
/Linux-v5.15/Documentation/bpf/
Ddrgn.rst187 .nr_linfo = (u32)37,
/Linux-v5.15/include/linux/
Dbpf.h912 u32 nr_linfo; member