ftrace: Add freeing algorithm to free ftrace_mod_maps
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 5 Sep 2017 23:20:16 +0000 (19:20 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 5 Oct 2017 21:57:34 +0000 (17:57 -0400)
commit6aa69784b43eb5f69120339938c50a97a433049f
tree22765bcb977bf54a66b313f3c175a16ade1a2d64
parentaba4b5c22cbac296f4081a0476d0c55828f135b4
ftrace: Add freeing algorithm to free ftrace_mod_maps

The ftrace_mod_map is a descriptor to save module init function names in
case they were traced, and the trace output needs to reference the function
name from the function address. But after the function is unloaded, it
the maps should be freed, as the rest of the function names are as well.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c