• Li Zefan's avatar
    trace_stat: Fix missing entry in stat file · 97d53202
    Li Zefan authored
    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: default avatarLi 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: default avatarIngo Molnar <mingo@elte.hu>
    97d53202
trace_stat.c 8.17 KB