OSDN Git Service

ftrace: Add a ftrace_free_mem() function for modules to use
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 20 Jun 2017 14:44:58 +0000 (10:44 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 4 Oct 2017 18:20:52 +0000 (14:20 -0400)
commit6cafbe159416822f6d3dfd711bf4c39050c650ba
tree65cde074656c11c0019402a1d17044f6fa22797b
parent5819eaddf35b24d628ddfa4fbb5f8d4026e44b96
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>
include/linux/ftrace.h
kernel/trace/ftrace.c