Sven Schnelle
500158df87
tracing: Ensure trace buffer is at least 4096 bytes large
...
[ Upstream commit 7acf3a127bb7c65ff39099afd78960e77b2ca5de ]
Booting the kernel with 'trace_buf_size=1' give a warning at
boot during the ftrace selftests:
[ 0.892809] Running postponed tracer tests:
[ 0.892893] Testing tracer function:
[ 0.901899] Callback from call_rcu_tasks_trace() invoked.
[ 0.983829] Callback from call_rcu_tasks_rude() invoked.
[ 1.072003] .. bad ring buffer .. corrupted trace buffer ..
[ 1.091944] Callback from call_rcu_tasks() invoked.
[ 1.097695] PASSED
[ 1.097701] Testing dynamic ftrace: .. filter failed count=0 ..FAILED!
[ 1.353474] ------------[ cut here ]------------
[ 1.353478] WARNING: CPU: 0 PID: 1 at kernel/trace/trace.c:1951 run_tracer_selftest+0x13c/0x1b0
Therefore enforce a minimum of 4096 bytes to make the selftest pass.
Link: https://lkml.kernel.org/r/20220214134456.1751749-1-svens@linux.ibm.com
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-03-16 13:21:47 +01:00
..
2021-09-30 10:09:24 +02:00
2021-07-14 16:53:08 +02:00
2021-02-10 09:25:29 +01:00
2019-08-01 14:16:21 -07:00
2022-02-23 11:59:56 +01:00
2021-01-19 18:26:12 +01:00
2019-07-31 19:03:35 +02:00
2021-07-28 13:31:00 +02:00
2019-04-03 11:02:24 +02:00
2021-06-23 14:41:28 +02:00
2019-10-12 20:44:07 -04:00
2019-08-31 12:19:38 -04:00
2020-10-01 13:17:29 +02:00
2019-10-21 19:38:28 -04:00
2020-01-09 10:20:00 +01:00
2022-03-08 19:07:50 +01:00
2022-03-02 11:41:11 +01:00
2021-12-01 09:23:34 +01:00
2019-07-30 21:50:03 -04:00
2021-10-27 09:54:29 +02:00
2020-12-08 10:40:28 +01:00
2019-05-25 23:04:30 -04:00
2022-03-08 19:07:50 +01:00
2020-10-07 08:01:27 +02:00
2020-10-01 13:18:14 +02:00
2019-10-12 20:48:06 -04:00
2019-05-25 23:04:42 -04:00
2021-09-22 12:26:43 +02:00
2021-09-22 12:26:43 +02:00
2020-02-11 04:35:07 -08:00
2020-01-14 20:08:22 +01:00
2020-11-10 12:37:28 +01:00
2020-01-14 20:08:22 +01:00
2020-02-24 08:36:30 +01:00
2019-04-05 09:26:43 -04:00
2021-12-01 09:23:29 +01:00
2022-03-16 13:21:47 +01:00
2021-12-01 09:23:29 +01:00
2021-12-17 10:12:24 +01:00