summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-06-28 11:57:03 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-06-28 11:57:03 -0400
commit4ec78467858739c0119569c0610676aa50dfa8fb (patch)
tree20a876bb0d3a92bfc2015722cb68fbcd71c88c94 /kernel/trace
parent3b58a3c72f484393c65995a551902945f5a18c70 (diff)
downloadop-kernel-dev-4ec78467858739c0119569c0610676aa50dfa8fb.zip
op-kernel-dev-4ec78467858739c0119569c0610676aa50dfa8fb.tar.gz
ftrace: Decrement count for dyn_ftrace_total_info for init functions
Init boot up functions may be traced, but they are also freed when the kernel finishes booting. These are removed from the ftrace tables, and the debug variable for dyn_ftrace_total_info needs to reflect that as well. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/ftrace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 2c79630..e392f75 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -5825,6 +5825,7 @@ void __init ftrace_free_init_mem(void)
if (!rec)
continue;
pg->index--;
+ ftrace_update_tot_cnt--;
if (!pg->index) {
*last_pg = pg->next;
order = get_count_order(pg->size / ENTRIES_PER_PAGE);
OpenPOWER on IntegriCloud