diff options
author | Ziqian SUN (Zamir) <zsun@redhat.com> | 2017-09-11 08:26:35 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-09-19 18:36:01 +0200 |
commit | c7b3ae0bd2ca658c7a71c49901d08c590294fac9 (patch) | |
tree | 6e33bb7c8a1a01d7c63b513129b1097d1ba73ae6 /kernel/trace/trace_mmiotrace.c | |
parent | tracing: Erase irqsoff trace with empty write (diff) | |
download | linux-c7b3ae0bd2ca658c7a71c49901d08c590294fac9.tar.xz linux-c7b3ae0bd2ca658c7a71c49901d08c590294fac9.zip |
tracing: Ignore mmiotrace from kernel commandline
The mmiotrace tracer cannot be enabled with ftrace=mmiotrace in kernel
commandline. With this patch, noboot is added to the tracer struct,
and when system boot with a tracer that has noboot=true, it will print
out a warning message and continue booting.
Link: http://lkml.kernel.org/r/1505111195-31942-1-git-send-email-zsun@redhat.com
Signed-off-by: Ziqian SUN (Zamir) <zsun@redhat.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_mmiotrace.c')
-rw-r--r-- | kernel/trace/trace_mmiotrace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace_mmiotrace.c b/kernel/trace/trace_mmiotrace.c index cd7480d0a201..dca78fc48439 100644 --- a/kernel/trace/trace_mmiotrace.c +++ b/kernel/trace/trace_mmiotrace.c @@ -282,6 +282,7 @@ static struct tracer mmio_tracer __read_mostly = .close = mmio_close, .read = mmio_read, .print_line = mmio_print_line, + .noboot = true, }; __init static int init_mmio_trace(void) |