Lines Matching defs:size
133 * data size to allow simple reading of samples that wrap around the
139 pr_warn("ringbuf: ring buffer size (%u) is too big\n", info.max_entries);
447 * region as twice the total size of the ring buffer to allow the
453 pr_warn("user ringbuf: ring buf size (%u) is too big\n", info.max_entries);
541 void *user_ring_buffer__reserve(struct user_ring_buffer *rb, __u32 size)
549 if (size & (BPF_RINGBUF_BUSY_BIT | BPF_RINGBUF_DISCARD_BIT))
561 /* Round up total size to a multiple of 8. */
562 total_size = (size + BPF_RINGBUF_HDR_SZ + 7) / 8 * 8;
571 hdr->len = size | BPF_RINGBUF_BUSY_BIT;
592 void *user_ring_buffer__reserve_blocking(struct user_ring_buffer *rb, __u32 size, int timeout_ms)
612 sample = user_ring_buffer__reserve(rb, size);
645 return user_ring_buffer__reserve(rb, size);