]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/probes: Have process_fetch_insn() take a void * instead of pt_regs
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 19 Aug 2021 04:13:28 +0000 (00:13 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 19 Aug 2021 13:09:03 +0000 (09:09 -0400)
commit369320d47e15d3c2b7a8f256644f762f4f85fe37
tree005e8b98190cbb79cc3a10deebbc8174f540f2c0
parentc4cbeef36ec829a33fec34e14291bf142c4ed045
tracing/probes: Have process_fetch_insn() take a void * instead of pt_regs

In preparation to allow event probes to use the process_fetch_insn()
callback in trace_probe_tmpl.h, change the data passed to it from a
pointer to pt_regs, as the event probe will not be using regs, and make it
a void pointer instead.

Update the process_fetch_insn() callers for kprobe and uprobe events to
have the regs defined in the function and just typecast the void pointer
parameter.

Link: https://lkml.kernel.org/r/20210819041842.291622924@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_tmpl.h
kernel/trace/trace_uprobe.c