tracing: Allow for max buffer data size trace_marker writes
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 12 Dec 2023 18:19:01 +0000 (13:19 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 19 Dec 2023 04:14:16 +0000 (23:14 -0500)
commit8ec90be7f15fac42992ea821be929d3b06cd0fd9
treedcee7408f18e2350e9e9fae55cc226d3004d0704
parent0b9036efd83d4adefab197a1ec98c496c9df44f0
tracing: Allow for max buffer data size trace_marker writes

Allow a trace write to be as big as the ring buffer tracing data will
allow. Currently, it only allows writes of 1KB in size, but there's no
reason that it cannot allow what the ring buffer can hold.

Link: https://lore.kernel.org/linux-trace-kernel/20231212131901.5f501e72@gandalf.local.home
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/linux/ring_buffer.h
kernel/trace/ring_buffer.c
kernel/trace/trace.c