1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-20 13:24:11 +00:00
Steven Rostedt (Google) 6f42249fec tracing: Limit trace_seq size to just 8K and not depend on architecture PAGE_SIZE
The trace_seq buffer is used to print out entire events. It's typically
set to PAGE_SIZE * 2 as there's some events that can be quite large.

As a side effect, writes to trace_marker is limited by both the size of the
trace_seq buffer as well as the ring buffer's sub-buffer size (which is a
power of PAGE_SIZE). By limiting the trace_seq size, it also limits the
size of the largest string written to trace_marker.

trace_seq does not need to be dependent on PAGE_SIZE like the ring buffer
sub-buffers need to be. Hard code it to 8K which is PAGE_SIZE * 2 on most
architectures. This will also limit the size of trace_marker on those
architectures with greater than 4K PAGE_SIZE.

Link: https://lore.kernel.org/all/20240302111244.3a1674be@gandalf.local.home/
Link: https://lore.kernel.org/linux-trace-kernel/20240304191342.56fb1087@gandalf.local.home

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Sachin Sant <sachinp@linux.ibm.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2024-03-06 13:27:00 -05:00
..
2024-01-18 11:37:24 -08:00
2024-01-18 15:16:57 -08:00
2024-01-11 14:19:23 -08:00
2024-01-02 17:54:05 +01:00
2023-12-22 12:45:52 +01:00
2024-01-10 16:43:55 -08:00
2023-12-22 11:12:55 +00:00
2024-01-10 16:13:57 -08:00
2024-01-18 16:22:43 -08:00
2023-12-20 19:26:32 -05:00
2024-01-11 13:58:04 -08:00
2024-01-11 13:58:04 -08:00
2023-12-02 22:24:36 +00:00
2023-12-15 16:25:55 -08:00
2023-12-20 14:48:13 -08:00
2024-01-18 15:16:57 -08:00
2024-01-18 15:16:57 -08:00
2024-01-18 09:48:40 -08:00
2023-12-20 07:39:52 -05:00
2023-12-12 14:24:14 +01:00
2024-01-08 09:36:55 +09:00
2024-01-19 11:59:11 -08:00
2024-01-02 11:25:28 +01:00
2024-01-18 21:10:43 +01:00
2024-01-02 12:46:10 +00:00
2024-01-11 14:19:23 -08:00
2024-01-18 15:28:15 -08:00
2023-12-20 19:26:31 -05:00
2023-12-20 19:26:31 -05:00
2023-12-20 19:26:31 -05:00
2023-12-20 19:26:30 -05:00
2024-01-10 16:43:55 -08:00
2024-01-18 15:16:57 -08:00
2024-01-10 08:45:22 -08:00
2024-01-10 18:00:18 -08:00
2024-01-10 16:43:55 -08:00
2024-01-04 10:47:56 -05:00
2023-12-20 19:26:30 -05:00
2024-01-02 13:16:29 -05:00
2024-01-12 11:55:28 -08:00
2024-01-15 12:10:41 -06:00
2024-01-15 12:10:41 -06:00
2023-12-20 19:26:31 -05:00
2023-12-20 19:26:31 -05:00
2023-12-20 19:26:31 -05:00
2023-12-20 19:26:31 -05:00
2024-01-09 15:00:09 +01:00
2023-12-20 19:26:30 -05:00
2023-12-27 11:49:56 -05:00
2023-12-20 19:26:32 -05:00
2023-12-27 11:49:56 -05:00
2023-12-20 19:26:31 -05:00
2023-12-20 19:26:32 -05:00
2023-12-20 19:26:32 -05:00
2023-12-20 19:26:32 -05:00
2024-02-15 12:17:28 -05:00
2023-12-08 12:02:38 +01:00
2023-12-20 19:26:31 -05:00
2024-01-21 18:09:30 +00:00
2024-01-21 10:21:43 -08:00
2024-01-19 11:59:11 -08:00
2023-12-29 11:58:32 -08:00
2023-12-28 05:02:42 -08:00
2023-12-20 19:26:31 -05:00
2023-12-20 19:26:31 -05:00
2023-12-08 12:02:37 +01:00
2024-01-18 11:37:24 -08:00
2023-12-20 19:26:30 -05:00
2024-01-10 16:43:55 -08:00
2023-12-06 16:12:48 -08:00
2023-12-29 11:58:24 -08:00
2024-01-10 16:43:55 -08:00
2024-01-19 09:10:23 -08:00