Selaa lähdekoodia

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>
Steven Rostedt (VMware) 8 vuotta sitten
vanhempi
commit
4ec7846785
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      kernel/trace/ftrace.c

+ 1 - 0
kernel/trace/ftrace.c

@@ -5825,6 +5825,7 @@ void __init ftrace_free_init_mem(void)
 		if (!rec)
 		if (!rec)
 			continue;
 			continue;
 		pg->index--;
 		pg->index--;
+		ftrace_update_tot_cnt--;
 		if (!pg->index) {
 		if (!pg->index) {
 			*last_pg = pg->next;
 			*last_pg = pg->next;
 			order = get_count_order(pg->size / ENTRIES_PER_PAGE);
 			order = get_count_order(pg->size / ENTRIES_PER_PAGE);