Sven Schnelle
2f8ee5379b
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 12:49:01 +01:00
..
2021-10-06 10:23:40 +02:00
2018-12-17 09:38:33 +01:00
2021-10-27 09:34:01 +02:00
2020-05-20 08:15:37 +02:00
2016-10-12 10:23:41 -07:00
2016-04-02 01:09:12 +02:00
2021-07-28 09:14:28 +02:00
2021-06-30 08:49:17 -04:00
2020-10-01 20:40:05 +02:00
2016-05-17 16:26:30 -07:00
2018-05-16 10:08:43 +02:00
2021-07-20 16:21:11 +02:00
2020-06-30 15:38:45 -04:00
2021-12-08 08:45:03 +01:00
2018-07-11 16:26:43 +02:00
2021-10-27 09:34:01 +02:00
2020-08-26 10:29:03 +02:00
2016-03-18 16:39:11 -04:00
2019-07-10 09:55:28 +02:00
2018-08-03 07:55:12 +02:00
2016-06-20 09:54:22 -04:00
2016-03-08 11:23:57 -05:00
2016-09-02 12:47:55 -04:00
2016-06-20 09:46:12 -04:00
2018-03-28 18:39:23 +02:00
2018-03-28 18:39:23 +02:00
2020-01-14 20:04:26 +01:00
2020-11-10 10:24:02 +01:00
2020-01-14 20:04:26 +01:00
2020-02-28 15:42:21 +01:00
2016-09-29 10:25:23 +02:00
2019-02-20 10:18:32 +01:00
2022-03-16 12:49:01 +01:00
2021-12-08 08:45:03 +01:00
2021-12-22 09:05:13 +01:00
2016-04-19 12:16:06 -04:00