]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/probe: Change traceprobe_set_print_fmt() to take a type
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 19 Aug 2021 04:13:27 +0000 (00:13 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 19 Aug 2021 13:08:29 +0000 (09:08 -0400)
commitc4cbeef36ec829a33fec34e14291bf142c4ed045
tree17286a3b23b9a607c8c2c15044b55f3a3df5fffb
parenta9a49536367bdded9b9398b7549154e0ecd40e48
tracing/probe: Change traceprobe_set_print_fmt() to take a type

Instead of a boolean "is_return" have traceprobe_set_print_fmt() take a
type (currently just PROBE_PRINT_NORMAL and PROBE_PRINT_RETURN). This will
simplify adding different types. For example, the development of the
event_probe, will need its own type as it prints an event, and not an IP.

Link: https://lkml.kernel.org/r/20210819041842.104626301@goodmis.org
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c
kernel/trace/trace_probe.c
kernel/trace/trace_probe.h
kernel/trace/trace_uprobe.c