mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 13:11:14 +00:00
ftrace: Pass ftrace_ops as third parameter to function trace callback
Currently the function trace callback receives only the ip and parent_ip of the function that it traced. It would be more powerful to also return the ops that registered the function as well. This allows the same function to act differently depending on what ftrace_ops registered it. Link: http://lkml.kernel.org/r/20120612225424.267254552@goodmis.org Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
6e0f17be03
commit
2f5f6ad939
11 changed files with 113 additions and 46 deletions
|
@ -111,7 +111,7 @@ static inline void check_stack(void)
|
|||
}
|
||||
|
||||
static void
|
||||
stack_trace_call(unsigned long ip, unsigned long parent_ip)
|
||||
stack_trace_call(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *op)
|
||||
{
|
||||
int cpu;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue