summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <rostedt@goodmis.org>2023-02-07 12:28:51 -0500
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-02-07 12:49:56 -0500
commitc4846480831ea526bcab0ca0bf6364bfa6ed4227 (patch)
tree642a94f96d1622881b1c4fcbff5ab0e5a3114f81 /kernel/trace/trace.c
parentcb1f98c5e5742273bca39410d504430793ab701a (diff)
downloadlinux-stable-c4846480831ea526bcab0ca0bf6364bfa6ed4227.tar.gz
linux-stable-c4846480831ea526bcab0ca0bf6364bfa6ed4227.tar.bz2
linux-stable-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.c')
-rw-r--r--kernel/trace/trace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 863716fcca49..5b16af9e7d30 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -10188,6 +10188,10 @@ __init static void enable_instances(void)
}
/* Allow user space to delete it */
trace_array_put(tr);
+
+ while ((tok = strsep(&curr_str, ","))) {
+ early_enable_events(tr, tok, true);
+ }
}
}