tracing: probeevent: Introduce new argument fetching code
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 25 Apr 2018 12:18:03 +0000 (21:18 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 11 Oct 2018 02:19:07 +0000 (22:19 -0400)
commit533059281ee594f9fbb9e58042aaec77083ef251
tree92019727bc72f3253f5e9de7152ced000cc4f27b
parent7bfbc63eda08b8158c040d6882c807f62b0750bb
tracing: probeevent: Introduce new argument fetching code

Replace {k,u}probe event argument fetching framework with switch-case based.
Currently that is implemented with structures, macros and chain of
function-pointers, which is more complicated than necessary and may get a
performance penalty by retpoline.

This simplify that with an array of "fetch_insn" (opcode and oprands), and
make process_fetch_insn() just interprets it. No function pointers are used.

Link: http://lkml.kernel.org/r/152465868340.26224.2551120475197839464.stgit@devbox
Signed-off-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_probe_tmpl.h [new file with mode: 0644]
kernel/trace/trace_uprobe.c