|
@@ -18,8 +18,10 @@
|
|
|
|
|
|
#ifdef CC_USING_FENTRY
|
|
#ifdef CC_USING_FENTRY
|
|
# define function_hook __fentry__
|
|
# define function_hook __fentry__
|
|
|
|
+EXPORT_SYMBOL(__fentry__)
|
|
#else
|
|
#else
|
|
# define function_hook mcount
|
|
# define function_hook mcount
|
|
|
|
+EXPORT_SYMBOL(mcount)
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/* All cases save the original rbp (8 bytes) */
|
|
/* All cases save the original rbp (8 bytes) */
|
|
@@ -295,7 +297,6 @@ trace:
|
|
jmp fgraph_trace
|
|
jmp fgraph_trace
|
|
END(function_hook)
|
|
END(function_hook)
|
|
#endif /* CONFIG_DYNAMIC_FTRACE */
|
|
#endif /* CONFIG_DYNAMIC_FTRACE */
|
|
-EXPORT_SYMBOL(function_hook)
|
|
|
|
#endif /* CONFIG_FUNCTION_TRACER */
|
|
#endif /* CONFIG_FUNCTION_TRACER */
|
|
|
|
|
|
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
|
|
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
|