Home
last modified time | relevance | path

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

/tools/lib/bpf/
Dbpf_prog_linfo.c18 __u32 rec_size; member
125 prog_linfo->rec_size = info->line_info_rec_size; in bpf_prog_linfo__new()
126 data_sz = (__u64)nr_linfo * prog_linfo->rec_size; in bpf_prog_linfo__new()
184 __u32 jited_rec_size, rec_size, nr_linfo, start, i; in bpf_prog_linfo__lfind_addr_func() local
204 rec_size = prog_linfo->rec_size; in bpf_prog_linfo__lfind_addr_func()
205 raw_linfo = prog_linfo->raw_linfo + (start * rec_size); in bpf_prog_linfo__lfind_addr_func()
210 raw_linfo += rec_size; in bpf_prog_linfo__lfind_addr_func()
215 return raw_linfo - rec_size; in bpf_prog_linfo__lfind_addr_func()
223 __u32 rec_size, nr_linfo, i; in bpf_prog_linfo__lfind() local
230 rec_size = prog_linfo->rec_size; in bpf_prog_linfo__lfind()
[all …]
Dlibbpf_internal.h297 __u32 rec_size; member
305 (seg)->rec_size * sec->num_info)
310 i++, rec = (void *)rec + (seg)->rec_size)
Dbtf.c2553 ext_info->rec_size = record_size; in btf_ext_setup_info()
2712 record_size = ext_info->rec_size; in btf_ext_reloc_info()
2767 return btf_ext->func_info.rec_size; in btf_ext__func_info_rec_size()
2772 return btf_ext->line_info.rec_size; in btf_ext__line_info_rec_size()
Dlinker.c2442 rec_sz = obj->btf_ext->func_info.rec_size; in linker_append_btf_ext()
2471 rec_sz = obj->btf_ext->line_info.rec_size; in linker_append_btf_ext()
2513 rec_sz = obj->btf_ext->core_relo_info.rec_size; in linker_append_btf_ext()
Dlibbpf.c5406 copy_end = rec + ext_info->rec_size; in adjust_prog_btf_ext_info()
5415 old_sz = (size_t)(*prog_rec_cnt) * ext_info->rec_size; in adjust_prog_btf_ext_info()
5421 *prog_rec_cnt = new_sz / ext_info->rec_size; in adjust_prog_btf_ext_info()
5433 for (; rec < rec_end; rec += ext_info->rec_size) { in adjust_prog_btf_ext_info()
5438 *prog_rec_sz = ext_info->rec_size; in adjust_prog_btf_ext_info()
/tools/testing/selftests/bpf/prog_tests/
Dbtf.c4269 __u32 info_len, rec_size; in do_test_file() local
4342 rec_size = info.func_info_rec_size; in do_test_file()
4343 if (CHECK(rec_size != sizeof(struct bpf_func_info), in do_test_file()
4344 "incorrect info.func_info_rec_size (1st) %d\n", rec_size)) { in do_test_file()
4349 func_info = malloc(info.nr_func_info * rec_size); in do_test_file()
4358 info.func_info_rec_size = rec_size; in do_test_file()
4374 if (CHECK(info.func_info_rec_size != rec_size, in do_test_file()
4411 finfo = (void *)finfo + rec_size; in do_test_file()
5978 __u32 info_len, rec_size, i; in test_get_finfo() local
5997 rec_size = info.func_info_rec_size; in test_get_finfo()
[all …]