Home
last modified time | relevance | path

Searched refs:rec_sz (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dringbuf.c86 const size_t rec_sz = BPF_RINGBUF_HDR_SZ + sizeof(struct sample); in test_ringbuf() local
164 CHECK(skel->bss->avail_data != 3 * rec_sz, in test_ringbuf()
166 3L * rec_sz, skel->bss->avail_data); in test_ringbuf()
173 CHECK(skel->bss->prod_pos != 3 * rec_sz, in test_ringbuf()
175 3L * rec_sz, skel->bss->prod_pos); in test_ringbuf()
202 CHECK(skel->bss->cons_pos != 3 * rec_sz, in test_ringbuf()
204 3L * rec_sz, skel->bss->cons_pos); in test_ringbuf()
/linux-6.1.9/tools/lib/bpf/
Dlinker.c74 __u32 rec_sz; member
2414 tmp = libbpf_reallocarray(ext_data->recs, ext_data->rec_cnt + 1, ext_data->rec_sz); in add_btf_ext_rec()
2419 tmp += ext_data->rec_cnt * ext_data->rec_sz; in add_btf_ext_rec()
2420 memcpy(tmp, src_rec, ext_data->rec_sz); in add_btf_ext_rec()
2433 int rec_sz, str_off, i; in linker_append_btf_ext() local
2438 rec_sz = obj->btf_ext->func_info.rec_size; in linker_append_btf_ext()
2450 if (dst_sec->func_info.rec_sz == 0) in linker_append_btf_ext()
2451 dst_sec->func_info.rec_sz = rec_sz; in linker_append_btf_ext()
2452 if (dst_sec->func_info.rec_sz != rec_sz) { in linker_append_btf_ext()
2467 rec_sz = obj->btf_ext->line_info.rec_size; in linker_append_btf_ext()
[all …]