Skip to content

Commit

Permalink
ftrace: Decrement count for dyn_ftrace_total_info for init functions
Browse files Browse the repository at this point in the history
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) <[email protected]>
  • Loading branch information
rostedt committed Jun 28, 2017
1 parent 3b58a3c commit 4ec7846
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4ec7846

Please sign in to comment.