Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0296e425 authored by Li Zefan's avatar Li Zefan Committed by Ingo Molnar
Browse files

ftrace: Fix the output of profile



The first entry of the ftrace profile was always skipped when
reading trace_stat/functionX.

Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4A443D59.4080307@cn.fujitsu.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 1155de47
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -291,7 +291,9 @@ function_stat_next(void *v, int idx)
	pg = (struct ftrace_profile_page *)((unsigned long)rec & PAGE_MASK);

 again:
	if (idx != 0)
		rec++;

	if ((void *)rec >= (void *)&pg->records[pg->index]) {
		pg = pg->next;
		if (!pg)