tracing: Reset iterator in t_start()
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 24 Jun 2009 01:53:44 +0000 (09:53 +0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 24 Jun 2009 09:02:51 +0000 (11:02 +0200)
commitf129e965bef40c6153e4fe505f1e408286213424
treebd198daa61a79a52e1a6e06ff338c815b1516405
parent2961bf345fd1b736c3db46cad0f69855f67fbe9c
tracing: Reset iterator in t_start()

The iterator is m->private, but it's not reset to trace_types in
t_start(). If the output is larger than PAGE_SIZE and t_start()
is called the 2nd time, things will go wrong.

Reviewed-by: Liming Wang <liming.wang@windriver.com>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4A418728.5020506@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c