aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-06-20 10:44:58 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-10-04 14:20:52 -0400
commit6cafbe159416822f6d3dfd711bf4c39050c650ba (patch)
tree65cde074656c11c0019402a1d17044f6fa22797b /include/linux/ftrace.h
parenttracing: Reimplement log2 (diff)
downloadwireguard-linux-6cafbe159416822f6d3dfd711bf4c39050c650ba.tar.xz
wireguard-linux-6cafbe159416822f6d3dfd711bf4c39050c650ba.zip
ftrace: Add a ftrace_free_mem() function for modules to use
In order to be able to trace module init functions, the module code needs to tell ftrace what is being freed when the init sections are freed. Use the code that the main init calls to tell ftrace to free the main init sections. This requires passing in a start and end address to free. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 2e028854bac7..47fc404ad233 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -151,8 +151,10 @@ struct ftrace_ops_hash {
};
void ftrace_free_init_mem(void);
+void ftrace_free_mem(void *start, void *end);
#else
static inline void ftrace_free_init_mem(void) { }
+static inline void ftrace_free_mem(void *start, void *end) { }
#endif
/*