summaryrefslogtreecommitdiff
path: root/kernel/backtracetest.c
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <rostedt@goodmis.org>2022-10-21 04:00:56 +0300
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-11-24 03:08:30 +0300
commita01fdc897fa56ffb596d0a0cd7ea2ab3bd8398c5 (patch)
tree451d14431799d6c4ba1d91079f00153d02a5f851 /kernel/backtracetest.c
parent8230f27b1ccc4b8976c137e3d6d690f9d4ffca8d (diff)
downloadlinux-a01fdc897fa56ffb596d0a0cd7ea2ab3bd8398c5.tar.xz
tracing: Add trace_trigger kernel command line option
Allow triggers to be enabled at kernel boot up. For example: trace_trigger="sched_switch.stacktrace if prev_state == 2" The above will enable the stacktrace trigger on top of the sched_switch event and only trigger if its prev_state is 2 (TASK_UNINTERRUPTIBLE). Then at boot up, a stacktrace will trigger and be recorded in the tracing ring buffer every time the sched_switch happens where the previous state is TASK_INTERRUPTIBLE. Another useful trigger would be "traceoff" which can stop tracing on an event if a field of the event matches a certain value defined by the filter ("if" statement). Link: https://lore.kernel.org/linux-trace-kernel/20221020210056.0d8d0a5b@gandalf.local.home Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/backtracetest.c')
0 files changed, 0 insertions, 0 deletions