]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: probeevent: Add $argN for accessing function args
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 25 Apr 2018 12:21:26 +0000 (21:21 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 11 Oct 2018 02:19:11 +0000 (22:19 -0400)
commitd9d4d98febe53bbb7634aa9ab5c412f7bba667a0
tree06ab7627ff3bec7afcba894432a5798babd3e0bc
parentee367121857604a1914a720a01a93da35cc456ab
tracing: probeevent: Add $argN for accessing function args

Add $argN special fetch variable for accessing function
arguments. This allows user to trace the Nth argument easily
at the function entry.

Note that this returns most probably assignment of registers
and stacks. In some case, it may not work well. If you need
to access correct registers or stacks you should use perf-probe.

Link: http://lkml.kernel.org/r/152465888632.26224.3412465701570253696.stgit@devbox
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Documentation/trace/kprobetrace.rst
kernel/trace/trace.c
kernel/trace/trace_kprobe.c
kernel/trace/trace_probe.c
kernel/trace/trace_probe.h
kernel/trace/trace_uprobe.c