]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - kernel/trace/ftrace.c
ftrace: Decrement count for dyn_ftrace_total_info file
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 27 Jun 2017 15:04:40 +0000 (11:04 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 27 Jun 2017 17:30:27 +0000 (13:30 -0400)
commit83dd14933e33a45e9b366c572e15505982b46845
treea2de08e0d1c143ee76d639c1d5317ab561d70c9d
parent6a9c981b1e9657ca5866d10aa38b8a4fe1159138
ftrace: Decrement count for dyn_ftrace_total_info file

The dyn_ftrace_total_info file is used to show how many functions have been
converted into nops and can be used by ftrace. The problem is that it does
not get decremented when functions are removed (init boot code being freed,
and modules being freed). That means the number is very inaccurate everytime
functions are removed from the ftrace tables. Decrement it when functions
are removed.

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