Searched refs:BPF_RINGBUF_HDR_SZ (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/kernel/bpf/ |
H A D | ringbuf.c | 417 len = round_up(size + BPF_RINGBUF_HDR_SZ, 8); in __bpf_ringbuf_reserve() 440 tmp_size = round_up(tmp_size + BPF_RINGBUF_HDR_SZ, 8); in __bpf_ringbuf_reserve() 467 return (void *)hdr + BPF_RINGBUF_HDR_SZ; in __bpf_ringbuf_reserve() 496 hdr = sample - BPF_RINGBUF_HDR_SZ; in bpf_ringbuf_commit() 697 total_len = round_up(sample_len + BPF_RINGBUF_HDR_SZ, 8); in __bpf_user_ringbuf_peek() 726 (uintptr_t)((cons_pos + BPF_RINGBUF_HDR_SZ) & rb->mask)); in __bpf_user_ringbuf_peek() 734 u32 rounded_size = round_up(size + BPF_RINGBUF_HDR_SZ, 8); in __bpf_user_ringbuf_sample_release()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | ringbuf.c | 222 len += BPF_RINGBUF_HDR_SZ; in roundup_len() 252 sample = (void *)len_ptr + BPF_RINGBUF_HDR_SZ; in ringbuf_process_ring() 459 hdr_offset = rb->mask + 1 + (sample - rb->data) - BPF_RINGBUF_HDR_SZ; in user_ringbuf_commit() 503 total_size = (size + BPF_RINGBUF_HDR_SZ + 7) / 8 * 8; in user_ring_buffer__reserve() 520 return (void *)rb->data + ((prod_pos + BPF_RINGBUF_HDR_SZ) & rb->mask); in user_ring_buffer__reserve()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | user_ringbuf.c | 22 static const long c_sample_size = sizeof(struct sample) + BPF_RINGBUF_HDR_SZ; 221 memset(data_ptr, 0, BPF_RINGBUF_HDR_SZ); in manually_write_test_invalid_sample() 225 smp_store_release(producer_pos_ptr, producer_pos + BPF_RINGBUF_HDR_SZ); in manually_write_test_invalid_sample() 317 sample = user_ring_buffer__reserve(ringbuf, c_ringbuf_size - BPF_RINGBUF_HDR_SZ); in test_user_ringbuf_sample_full_ring_buffer()
|
H A D | ringbuf.c | 88 const size_t rec_sz = BPF_RINGBUF_HDR_SZ + sizeof(struct sample); in ringbuf_subtest()
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf.h | 6042 BPF_RINGBUF_HDR_SZ = 8, enumerator
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 6042 BPF_RINGBUF_HDR_SZ = 8, enumerator
|