summaryrefslogtreecommitdiffstats
path: root/include/media/demux.h
diff options
context:
space:
mode:
authorTzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>2023-12-19 19:54:17 +0100
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-12-20 13:54:55 +0100
commit2808e31ec12e5fbe2ae25acc027fcdc67b1fb7f0 (patch)
tree6cb99ab8b959cfaf58798bfcec933995f8dca01e /include/media/demux.h
parentring-buffer: Page size per ring buffer (diff)
downloadlinux-2808e31ec12e5fbe2ae25acc027fcdc67b1fb7f0.tar.xz
linux-2808e31ec12e5fbe2ae25acc027fcdc67b1fb7f0.zip
ring-buffer: Add interface for configuring trace sub buffer size
The trace ring buffer sub page size can be configured, per trace instance. A new ftrace file "buffer_subbuf_order" is added to get and set the size of the ring buffer sub page for current trace instance. The size must be an order of system page size, that's why the new interface works with system page order, instead of absolute page size: 0 means the ring buffer sub page is equal to 1 system page and so forth: 0 - 1 system page 1 - 2 system pages 2 - 4 system pages ... The ring buffer sub page size is limited between 1 and 128 system pages. The default value is 1 system page. New ring buffer APIs are introduced: ring_buffer_subbuf_order_set() ring_buffer_subbuf_order_get() ring_buffer_subbuf_size_get() Link: https://lore.kernel.org/linux-trace-devel/20211213094825.61876-4-tz.stoyanov@gmail.com Link: https://lore.kernel.org/linux-trace-kernel/20231219185628.298324722@goodmis.org Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Vincent Donnefort <vdonnefort@google.com> Cc: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'include/media/demux.h')
0 files changed, 0 insertions, 0 deletions