Steven Rostedt (Google)
f3dc260cd5
tracing: Have large events show up as '[LINE TOO BIG]' instead of nothing
[ Upstream commit b55b0a0d7c4aa2dac3579aa7e6802d1f57445096 ]
If a large event was added to the ring buffer that is larger than what the
trace_seq can handle, it just drops the output:
~# cat /sys/kernel/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 2/2 #P:8
#
# _-----=> irqs-off/BH-disabled
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / _-=> migrate-disable
# |||| / delay
# TASK-PID CPU# ||||| TIMESTAMP FUNCTION
# | | | ||||| | |
<...>-859 [001] ..... 141.118951: tracing_mark_write <...>-859 [001] ..... 141.148201: tracing_mark_write: 78901234
Instead, catch this case and add some context:
~# cat /sys/kernel/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 2/2 #P:8
#
# _-----=> irqs-off/BH-disabled
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / _-=> migrate-disable
# |||| / delay
# TASK-PID CPU# ||||| TIMESTAMP FUNCTION
# | | | ||||| | |
<...>-852 [001] ..... 121.550551: tracing_mark_write[LINE TOO BIG]
<...>-852 [001] ..... 121.550581: tracing_mark_write: 78901234
This now emulates the same output as trace_pipe.
Link: https://lore.kernel.org/linux-trace-kernel/20231209171058.78c1a026@gandalf.local.home
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-20 11:51:43 +01:00
..
2024-01-01 12:42:23 +00:00
2023-12-13 18:45:22 +01:00
2023-09-05 11:01:47 -07:00
2023-11-28 17:19:47 +00:00
2023-11-28 17:20:13 +00:00
2023-08-23 10:32:39 +02:00
2023-12-20 17:02:01 +01:00
2023-11-20 11:58:53 +01:00
2023-08-18 10:18:58 -07:00
2023-11-28 17:19:59 +00:00
2023-06-09 23:29:50 +10:00
2023-11-20 11:59:25 +01:00
2023-12-03 07:33:06 +01:00
2023-11-20 11:59:37 +01:00
2023-11-28 17:20:02 +00:00
2023-10-11 12:58:14 +02:00
2024-01-10 17:16:56 +01:00
2023-12-03 07:33:02 +01:00
2023-12-13 18:44:56 +01:00
2024-01-20 11:51:43 +01:00
2023-08-30 08:17:35 -07:00
2022-02-03 11:20:34 -08:00
2022-08-22 18:50:06 -04:00
2022-04-25 14:37:28 +02:00
2023-11-28 17:19:56 +00:00
2023-08-15 18:16:14 -04:00
2023-07-21 12:17:25 -04:00
2023-08-15 18:16:14 -04:00
2023-10-13 18:34:46 +02:00
2022-09-26 19:46:09 -07:00
2023-08-08 16:48:47 -04:00
2022-09-26 10:13:13 -07:00
2023-03-14 19:32:38 -07:00
2023-06-05 09:57:20 +02:00
2023-01-13 11:48:15 +01:00
2023-12-13 18:44:56 +01:00
2023-09-29 17:20:48 -07:00
2023-12-20 17:01:51 +01:00
2023-04-18 16:39:34 -07:00
2023-12-20 17:01:51 +01:00
2022-07-05 13:32:59 -07:00
2023-02-08 13:36:22 +01:00
2023-12-03 07:33:06 +01:00
2022-09-07 21:53:50 +02:00
2023-05-28 16:20:21 +09:00
2022-07-15 18:21:49 +00:00
2023-04-08 13:45:37 -07:00
2023-08-21 13:37:28 -07:00
2023-03-24 11:01:29 +01:00
2022-12-01 15:53:05 -08:00
2022-11-12 18:47:36 -08:00
2023-08-29 17:32:32 -07:00
2022-11-15 00:42:02 -08:00
2023-08-25 15:00:36 -07:00
2024-01-05 15:19:41 +01:00
2022-03-31 10:36:55 +02:00
2023-06-09 17:44:17 -07:00
2023-08-24 16:25:13 -07:00
2023-08-30 09:16:56 -07:00
2022-09-11 21:55:06 -07:00
2023-11-28 17:19:40 +00:00
2023-03-24 20:10:59 -07:00
2023-12-13 18:45:31 +01:00
2023-06-08 12:27:20 -07:00
2023-08-24 16:25:14 -07:00
2023-08-18 10:18:59 -07:00
2022-09-11 21:55:12 -07:00
2023-06-28 15:51:08 -07:00
2023-04-08 13:45:38 -07:00
2023-08-21 11:29:12 -07:00
2023-11-28 17:19:42 +00:00
2023-09-15 11:28:08 +02:00
2023-07-10 12:47:01 -07:00
2023-08-21 13:37:59 -07:00
2023-08-21 13:37:59 -07:00
2023-09-19 13:21:33 -07:00
2022-09-11 21:55:12 -07:00
2023-04-16 14:23:07 +02:00
2023-11-28 17:20:04 +00:00
2023-08-18 10:18:55 -07:00
2024-01-10 17:16:58 +01:00
2022-12-27 12:52:12 +01:00
2023-07-14 15:02:57 -07:00
2022-11-09 18:06:35 +00:00
2023-08-17 12:32:15 -07:00
2023-08-18 10:18:50 -07:00
2023-11-28 17:19:36 +00:00
2023-05-15 13:45:00 +02:00
2023-07-13 15:21:50 +02:00
2023-04-20 11:36:35 +02:00
2022-02-25 09:36:06 +01:00
2022-10-17 16:41:16 +02:00
2022-04-05 09:59:38 +02:00
2022-05-24 11:11:13 -07:00
2023-08-02 15:01:51 -07:00
2023-12-03 07:33:06 +01:00
2022-09-08 16:56:45 -07:00
2023-06-28 16:05:21 -07:00
2023-09-19 13:21:32 -07:00
2022-08-29 12:47:15 +01:00
2023-11-28 17:20:08 +00:00
2023-02-18 14:34:36 -05:00
2022-04-29 14:38:03 -07:00
2023-08-15 15:26:17 -07:00
2023-06-29 15:19:43 -07:00
2023-02-02 22:50:04 -08:00
2022-11-30 20:16:49 -04:00
2022-05-19 23:25:47 -04:00
2023-04-13 11:49:35 -07:00
2023-06-08 15:43:09 -04:00
2023-11-28 17:19:40 +00:00
2023-06-19 16:25:28 -07:00
2023-06-09 17:44:21 -07:00
2023-11-28 17:19:57 +00:00
2023-08-07 15:57:22 -10:00
2023-12-13 18:45:24 +01:00