ksym_tracer: Remove trace_stat
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 30 Dec 2009 06:24:03 +0000 (14:24 +0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Dec 2009 06:50:50 +0000 (07:50 +0100)
commit53ab668064edaeef99c0ee22799483d45f4c81f6
tree1aa92f9e5bbddb61cbc3d5683180dc64abe341fc
parente6d9491bf8ba6728cc86aeabbc688d20ec0563b5
ksym_tracer: Remove trace_stat

trace_stat is problematic. Don't use it, use seqfile instead.

This fixes a race that reading the stat file is not protected by
any lock, which can lead to use after free.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: K.Prasad <prasad@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4B3AF203.40200@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_ksym.c