diff options
author | Tom Zanussi <zanussi@kernel.org> | 2020-01-29 19:59:29 +0100 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-01-30 15:46:28 +0100 |
commit | 2a588dd1d5d649a183a2ff6fa1b80e870cf821d8 (patch) | |
tree | 83d0475dab8fe4c51337012e4e8518e260642cc8 /kernel/stacktrace.c | |
parent | tracing: Add synth event generation test module (diff) | |
download | linux-2a588dd1d5d649a183a2ff6fa1b80e870cf821d8.tar.xz linux-2a588dd1d5d649a183a2ff6fa1b80e870cf821d8.zip |
tracing: Add kprobe event command generation functions
Add functions used to generate kprobe event commands, built on top of
the dynevent_cmd interface.
kprobe_event_gen_cmd_start() is used to create a kprobe event command
using a variable arg list, and kretprobe_event_gen_cmd_start() does
the same for kretprobe event commands. kprobe_event_add_fields() can
be used to add single fields one by one or as a group. Once all
desired fields are added, kprobe_event_gen_cmd_end() or
kretprobe_event_gen_cmd_end() respectively are used to actually
execute the command and create the event.
Link: http://lkml.kernel.org/r/95cc4696502bb6017f9126f306a45ad19b4cc14f.1580323897.git.zanussi@kernel.org
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/stacktrace.c')
0 files changed, 0 insertions, 0 deletions