Searched refs:rec_size (Results 1 – 7 of 7) sorted by relevance
/linux/tools/lib/bpf/ |
H A D | bpf_prog_linfo.c | 18 __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 …]
|
H A D | btf.c | 2992 ext_info->rec_size = record_size; in btf_ext_parse_sec_info() 3070 __u32 info_left, rec_size, *rs; in btf_ext_bswap_info_sec() local 3076 rec_size = is_native ? *rs : bswap_32(*rs); in btf_ext_bswap_info_sec() 3090 for (i = 0; i < num_recs; i++, p += rec_size) in btf_ext_bswap_info_sec() 3093 info_left -= sec_hdrlen + (__u64)rec_size * num_recs; in btf_ext_bswap_info_sec()
|
H A D | linker.c | 2526 rec_sz = obj->btf_ext->func_info.rec_size; in linker_append_btf_ext() 2555 rec_sz = obj->btf_ext->line_info.rec_size; in linker_append_btf_ext() 2597 rec_sz = obj->btf_ext->core_relo_info.rec_size; in linker_append_btf_ext()
|
H A D | libbpf.c | 6200 copy_end = rec + ext_info->rec_size; in adjust_prog_btf_ext_info() 6209 old_sz = (size_t)(*prog_rec_cnt) * ext_info->rec_size; in adjust_prog_btf_ext_info() 6215 *prog_rec_cnt = new_sz / ext_info->rec_size; in adjust_prog_btf_ext_info() 6227 for (; rec < rec_end; rec += ext_info->rec_size) { in adjust_prog_btf_ext_info() 6232 *prog_rec_sz = ext_info->rec_size; in adjust_prog_btf_ext_info()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf.c | 4822 __u32 info_len, rec_size; in do_test_file() local 4897 rec_size = info.func_info_rec_size; in do_test_file() 4898 if (CHECK(rec_size != sizeof(struct bpf_func_info), in do_test_file() 4899 "incorrect info.func_info_rec_size (1st) %d\n", rec_size)) { in do_test_file() 4904 func_info = malloc(info.nr_func_info * rec_size); in do_test_file() 4913 info.func_info_rec_size = rec_size; in do_test_file() 4929 if (CHECK(info.func_info_rec_size != rec_size, in do_test_file() 4966 finfo = (void *)finfo + rec_size; in do_test_file() 6528 __u32 info_len, rec_size, i; in test_get_finfo() local 6547 rec_size = info.func_info_rec_size; in test_get_finfo() [all …]
|
/linux/drivers/s390/scsi/ |
H A D | zfcp_dbf.c | 783 static debug_info_t *zfcp_dbf_reg(const char *name, int size, int rec_size) in zfcp_dbf_reg() argument 787 d = debug_register(name, size, 1, rec_size); in zfcp_dbf_reg()
|
/linux/kernel/bpf/ |
H A D | verifier.c | 17038 u32 i, s, nr_linfo, ncopy, expected_size, rec_size, prev_offset = 0; in check_btf_line() local 17052 rec_size = attr->line_info_rec_size; in check_btf_line() 17053 if (rec_size < MIN_BPF_LINEINFO_SIZE || in check_btf_line() 17054 rec_size > MAX_LINEINFO_REC_SIZE || in check_btf_line() 17055 rec_size & (sizeof(u32) - 1)) in check_btf_line() 17073 ncopy = min_t(u32, expected_size, rec_size); in check_btf_line() 17075 err = bpf_check_uarg_tail_zero(ulinfo, expected_size, rec_size); in check_btf_line() 17139 bpfptr_add(&ulinfo, rec_size); in check_btf_line() 17166 u32 i, nr_core_relo, ncopy, expected_size, rec_size; in check_core_relo() local 17183 rec_size = attr->core_relo_rec_size; in check_core_relo() [all …]
|