Home
last modified time | relevance | path

Searched refs:prod_pos (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/kernel/bpf/
Dringbuf.c265 unsigned long cons_pos, prod_pos; in ringbuf_avail_data_sz() local
268 prod_pos = smp_load_acquire(&rb->producer_pos); in ringbuf_avail_data_sz()
269 return prod_pos - cons_pos; in ringbuf_avail_data_sz()
326 unsigned long cons_pos, prod_pos, new_prod_pos, flags; in __bpf_ringbuf_reserve() local
346 prod_pos = rb->producer_pos; in __bpf_ringbuf_reserve()
347 new_prod_pos = prod_pos + len; in __bpf_ringbuf_reserve()
357 hdr = (void *)rb->data + (prod_pos & rb->mask); in __bpf_ringbuf_reserve()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_ringbuf.c34 long prod_pos = 0; variable
75 prod_pos = bpf_ringbuf_query(&ringbuf, BPF_RB_PROD_POS); in test_ringbuf()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dringbuf.c214 unsigned long cons_pos, prod_pos; in ringbuf_process_ring() local
221 prod_pos = smp_load_acquire(r->producer_pos); in ringbuf_process_ring()
222 while (cons_pos < prod_pos) { in ringbuf_process_ring()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dringbuf.c119 CHECK(skel->bss->prod_pos != 3 * rec_sz, in test_ringbuf()
121 3L * rec_sz, skel->bss->prod_pos); in test_ringbuf()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c297 unsigned long cons_pos, prod_pos; in ringbuf_custom_process_ring() local
304 prod_pos = smp_load_acquire(r->producer_pos); in ringbuf_custom_process_ring()
305 while (cons_pos < prod_pos) { in ringbuf_custom_process_ring()