diff options
author | Steven Rostedt (Google) <rostedt@goodmis.org> | 2023-02-07 12:28:51 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2023-02-07 12:49:56 -0500 |
commit | c4846480831ea526bcab0ca0bf6364bfa6ed4227 (patch) | |
tree | 642a94f96d1622881b1c4fcbff5ab0e5a3114f81 /kernel/trace/trace.h | |
parent | cb1f98c5e5742273bca39410d504430793ab701a (diff) | |
download | lwn-c4846480831ea526bcab0ca0bf6364bfa6ed4227.tar.gz lwn-c4846480831ea526bcab0ca0bf6364bfa6ed4227.zip |
tracing: Add enabling of events to boot instances
Add the format of:
trace_instance=foo,sched:sched_switch,irq_handler_entry,initcall
That will create the "foo" instance and enable the sched_switch event
(here were the "sched" system is explicitly specified), the
irq_handler_entry event, and all events under the system initcall.
Link: https://lkml.kernel.org/r/20230207173026.386114535@goodmis.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Ross Zwisler <zwisler@google.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index d16929dd0f08..f10bf804dd2b 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -1334,6 +1334,8 @@ DECLARE_PER_CPU(int, trace_buffered_event_cnt); void trace_buffered_event_disable(void); void trace_buffered_event_enable(void); +void early_enable_events(struct trace_array *tr, char *buf, bool disable_first); + static inline void __trace_event_discard_commit(struct trace_buffer *buffer, struct ring_buffer_event *event) |