trace_stat: Fix missing entry in stat file
authorLi Zefan <lizf@cn.fujitsu.com>
Mon, 17 Aug 2009 08:52:53 +0000 (16:52 +0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 17 Aug 2009 09:25:09 +0000 (11:25 +0200)
commit97d53202a5670a08b79c8ef2e4fff1c1ee21317c
tree5ba925559a3031a833c5803d05a0a43e13ea1866
parentba8b3a40ba7e06d00c27508f090803af90e8dbbf
trace_stat: Fix missing entry in stat file

One entry is missing in the output of a stat file.

The cause is, when stat_seq_start() is called the 2nd time, we
should start from the (pos-1)th elem in the rbtree but not pos,
because pos == 0 is the header.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4A891A65.70009@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_stat.c