Searched refs:rec_sz (Results 1 – 2 of 2) sorted by relevance
86 const size_t rec_sz = BPF_RINGBUF_HDR_SZ + sizeof(struct sample); in test_ringbuf() local110 CHECK(skel->bss->avail_data != 3 * rec_sz, in test_ringbuf()112 3L * rec_sz, skel->bss->avail_data); in test_ringbuf()119 CHECK(skel->bss->prod_pos != 3 * rec_sz, in test_ringbuf()121 3L * rec_sz, skel->bss->prod_pos); in test_ringbuf()148 CHECK(skel->bss->cons_pos != 3 * rec_sz, in test_ringbuf()150 3L * rec_sz, skel->bss->cons_pos); in test_ringbuf()
559 int rec_sz; in alloc_stats_record() local570 rec_sz = sizeof(struct u64rec); in alloc_stats_record()572 rec->xdp_redirect[i].cpu = alloc_rec_per_cpu(rec_sz); in alloc_stats_record()575 rec->xdp_exception[i].cpu = alloc_rec_per_cpu(rec_sz); in alloc_stats_record()577 rec_sz = sizeof(struct datarec); in alloc_stats_record()578 rec->xdp_cpumap_kthread.cpu = alloc_rec_per_cpu(rec_sz); in alloc_stats_record()579 rec->xdp_devmap_xmit.cpu = alloc_rec_per_cpu(rec_sz); in alloc_stats_record()582 rec->xdp_cpumap_enqueue[i].cpu = alloc_rec_per_cpu(rec_sz); in alloc_stats_record()