Commit d562aca3 authored by Sven Schnelle's avatar Sven Schnelle Committed by Helge Deller

parisc/ftrace: Add ARCH_SUPPORTS_FTRACE_OPS support

Pass ftrace_ops to ftrace functions to ftrace_trace_function().
Signed-off-by: default avatarSven Schnelle <svens@stackframe.org>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent dcb8cfbd
...@@ -8,6 +8,7 @@ extern void mcount(void); ...@@ -8,6 +8,7 @@ extern void mcount(void);
#define MCOUNT_ADDR ((unsigned long)mcount) #define MCOUNT_ADDR ((unsigned long)mcount)
#define MCOUNT_INSN_SIZE 4 #define MCOUNT_INSN_SIZE 4
#define CC_USING_NOP_MCOUNT #define CC_USING_NOP_MCOUNT
#define ARCH_SUPPORTS_FTRACE_OPS 1
extern unsigned long sys_call_table[]; extern unsigned long sys_call_table[];
extern unsigned long return_address(unsigned int); extern unsigned long return_address(unsigned int);
......
...@@ -53,8 +53,12 @@ void notrace __hot ftrace_function_trampoline(unsigned long parent, ...@@ -53,8 +53,12 @@ void notrace __hot ftrace_function_trampoline(unsigned long parent,
#ifndef CONFIG_DYNAMIC_FTRACE #ifndef CONFIG_DYNAMIC_FTRACE
extern ftrace_func_t ftrace_trace_function; extern ftrace_func_t ftrace_trace_function;
#endif #endif
if (ftrace_trace_function != ftrace_stub) extern struct ftrace_ops *function_trace_op;
ftrace_trace_function(self_addr, parent, NULL, NULL);
if (function_trace_op->flags & FTRACE_OPS_FL_ENABLED &&
ftrace_trace_function != ftrace_stub)
ftrace_trace_function(self_addr, parent,
function_trace_op, NULL);
#ifdef CONFIG_FUNCTION_GRAPH_TRACER #ifdef CONFIG_FUNCTION_GRAPH_TRACER
if (ftrace_graph_return != (trace_func_graph_ret_t) ftrace_stub || if (ftrace_graph_return != (trace_func_graph_ret_t) ftrace_stub ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment