Home
last modified time | relevance | path

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

/linux-6.12.1/kernel/
Drelay.c476 size_t subbuf_size, in relay_open() argument
485 if (!(subbuf_size && n_subbufs)) in relay_open()
487 if (subbuf_size > UINT_MAX / n_subbufs) in relay_open()
504 chan->subbuf_size = subbuf_size; in relay_open()
505 chan->alloc_size = PAGE_ALIGN(subbuf_size * n_subbufs); in relay_open()
664 if (unlikely(length > buf->chan->subbuf_size)) in relay_switch_subbuf()
667 if (buf->offset != buf->chan->subbuf_size + 1) { in relay_switch_subbuf()
668 buf->prev_padding = buf->chan->subbuf_size - buf->offset; in relay_switch_subbuf()
674 buf->chan->subbuf_size - in relay_switch_subbuf()
677 buf->early_bytes += buf->chan->subbuf_size - in relay_switch_subbuf()
[all …]
/linux-6.12.1/include/linux/
Drelay.h62 size_t subbuf_size; /* sub-buffer size */ member
158 size_t subbuf_size,
198 if (unlikely(buf->offset + length > chan->subbuf_size)) in relay_write()
224 if (unlikely(buf->offset + length > buf->chan->subbuf_size)) in __relay_write()
247 if (unlikely(buf->offset + length > buf->chan->subbuf_size)) { in relay_reserve()
271 BUG_ON(length >= buf->chan->subbuf_size - 1); in subbuf_start_reserve()
/linux-6.12.1/tools/testing/selftests/ring-buffer/
Dmap_test.c126 int subbuf_size; in FIXTURE_VARIANT() local
130 .subbuf_size = 4, in FIXTURE_VARIANT_ADD()
134 .subbuf_size = 8, in FIXTURE_VARIANT_ADD()
161 tracefs_write_int(TRACEFS_ROOT"/buffer_subbuf_size_kb", variant->subbuf_size); in FIXTURE_SETUP()
221 data_len = desc->meta->subbuf_size * desc->meta->nr_subbufs; in TEST_F()
230 data_len -= desc->meta->subbuf_size; in TEST_F()
237 meta_len += desc->meta->subbuf_size * 2; in TEST_F()
/linux-6.12.1/kernel/trace/
Dring_buffer.c57 __u32 subbuf_size; member
554 unsigned int subbuf_size; member
598 (unsigned int)buffer->subbuf_size, in ring_buffer_print_page_header()
1521 rb_range_align_subbuf(unsigned long addr, int subbuf_size, int nr_subbufs) in rb_range_align_subbuf() argument
1525 return ALIGN(addr, subbuf_size); in rb_range_align_subbuf()
1533 int subbuf_size = buffer->subbuf_size + BUF_PAGE_HDR_SIZE; in rb_range_meta() local
1556 ptr = rb_range_align_subbuf(ptr, subbuf_size, nr_subbufs); in rb_range_meta()
1557 ptr += subbuf_size * nr_subbufs; in rb_range_meta()
1566 ptr = rb_range_align_subbuf(ptr, subbuf_size, nr_subbufs); in rb_range_meta()
1567 ptr += subbuf_size * nr_subbufs; in rb_range_meta()
[all …]
/linux-6.12.1/Documentation/trace/
Dring-buffer-map.rst30 reader_offset = meta->meta_page_size + reader_id * meta->subbuf_size;
88 data_len = meta->subbuf_size * meta->nr_subbufs;
97 reader = data + meta->subbuf_size * reader_id;
/linux-6.12.1/include/uapi/linux/
Dtrace_mmap.h27 __u32 subbuf_size; member
/linux-6.12.1/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_log.c525 size_t n_subbufs, subbuf_size; in guc_log_relay_create() local
535 subbuf_size = log->vma->size - intel_guc_log_section_size_capture(log); in guc_log_relay_create()
550 subbuf_size, n_subbufs, in guc_log_relay_create()
559 GEM_BUG_ON(guc_log_relay_chan->subbuf_size < subbuf_size); in guc_log_relay_create()
/linux-6.12.1/Documentation/filesystems/
Drelay.rst166 relay_open(base_filename, parent, subbuf_size, n_subbufs,