]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ftrace: Decrement count for dyn_ftrace_total_info for init functions
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 28 Jun 2017 15:57:03 +0000 (11:57 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 28 Jun 2017 15:57:03 +0000 (11:57 -0400)
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>
kernel/trace/ftrace.c

index 2c79630cd267412f118832797b0f463eaa346a81..e392f750a1cf57232dba5baec23923d2f422eb07 100644 (file)
@@ -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);