Home
last modified time | relevance | path

Searched refs:cons_pos (Results 1 – 4 of 4) sorted by relevance

/tools/lib/bpf/
Dringbuf.c214 unsigned long cons_pos, prod_pos; in ringbuf_process_ring() local
218 cons_pos = smp_load_acquire(r->consumer_pos); in ringbuf_process_ring()
222 while (cons_pos < prod_pos) { in ringbuf_process_ring()
223 len_ptr = r->data + (cons_pos & r->mask); in ringbuf_process_ring()
231 cons_pos += roundup_len(len); in ringbuf_process_ring()
239 cons_pos); in ringbuf_process_ring()
245 smp_store_release(r->consumer_pos, cons_pos); in ringbuf_process_ring()
/tools/testing/selftests/bpf/progs/
Dtest_ringbuf.c33 long cons_pos = 0; variable
74 cons_pos = bpf_ringbuf_query(&ringbuf, BPF_RB_CONS_POS); in test_ringbuf()
/tools/testing/selftests/bpf/prog_tests/
Dringbuf.c116 CHECK(skel->bss->cons_pos != 0, in test_ringbuf()
118 0L, skel->bss->cons_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()
/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c297 unsigned long cons_pos, prod_pos; in ringbuf_custom_process_ring() local
301 cons_pos = smp_load_acquire(r->consumer_pos); in ringbuf_custom_process_ring()
305 while (cons_pos < prod_pos) { in ringbuf_custom_process_ring()
306 len_ptr = r->data + (cons_pos & r->mask); in ringbuf_custom_process_ring()
314 cons_pos += roundup_len(len); in ringbuf_custom_process_ring()
319 smp_store_release(r->consumer_pos, cons_pos); in ringbuf_custom_process_ring()