Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Duser_ringbuf.c24 static const long c_ringbuf_size = 1 << 12; /* 1 small page */ variable
25 static const long c_max_entries = c_ringbuf_size / c_sample_size;
80 err = bpf_map__set_max_entries(skel->maps.user_ringbuf, c_ringbuf_size); in open_load_ringbuf_skel()
84 err = bpf_map__set_max_entries(skel->maps.kernel_ringbuf, c_ringbuf_size); in open_load_ringbuf_skel()
273 __u32 size = c_ringbuf_size; in test_user_ringbuf_post_larger_than_ringbuf_sz()
318 sample = user_ring_buffer__reserve(ringbuf, c_ringbuf_size - BPF_RINGBUF_HDR_SZ); in test_user_ringbuf_sample_full_ring_buffer()