Home
last modified time | relevance | path

Searched refs:consumer_pos (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/tools/lib/bpf/
Dringbuf.c28 unsigned long *consumer_pos; member
44 if (r->consumer_pos) { in ringbuf_unmap_ring()
45 munmap(r->consumer_pos, rb->page_size); in ringbuf_unmap_ring()
46 r->consumer_pos = NULL; in ringbuf_unmap_ring()
108 r->consumer_pos = tmp; in ring_buffer__add()
214 cons_pos = smp_load_acquire(r->consumer_pos); in ringbuf_process_ring()
234 smp_store_release(r->consumer_pos, in ringbuf_process_ring()
241 smp_store_release(r->consumer_pos, cons_pos); in ringbuf_process_ring()
/kernel/linux/linux-5.10/kernel/bpf/
Dringbuf.c18 (offsetof(struct bpf_ringbuf, consumer_pos) >> PAGE_SHIFT)
45 unsigned long consumer_pos __aligned(PAGE_SIZE);
146 rb->consumer_pos = 0; in bpf_ringbuf_alloc()
267 cons_pos = smp_load_acquire(&rb->consumer_pos); in ringbuf_avail_data_sz()
337 cons_pos = smp_load_acquire(&rb->consumer_pos); in __bpf_ringbuf_reserve()
409 cons_pos = smp_load_acquire(&rb->consumer_pos) & rb->mask; in bpf_ringbuf_commit()
483 return smp_load_acquire(&rb->consumer_pos); in BPF_CALL_2()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c204 __u64 *consumer_pos; member
254 r->consumer_pos = tmp; in ringbuf_custom_setup()
301 cons_pos = smp_load_acquire(r->consumer_pos); in ringbuf_custom_process_ring()
319 smp_store_release(r->consumer_pos, cons_pos); in ringbuf_custom_process_ring()