Commit 9cdb79ba authored by Steven Rostedt (VMware)'s avatar Steven Rostedt (VMware) Committed by sanglipeng
Browse files

tracing/probes: Have process_fetch_insn() take a void * instead of pt_regs

stable inclusion
from stable-v5.10.192
commit 265a979dedb123aba2480112cf0288ebf348de84
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I933RF

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=265a979dedb123aba2480112cf0288ebf348de84

--------------------------------

[ Upstream commit 8565a45d ]

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: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Stable-dep-of: e38e2c6a ("tracing/probes: Fix to update dynamic data counter if fetcharg uses it")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent c08ca664
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment