ksym_tracer: Fix to allow writing newline to ksym_trace_filter
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 30 Dec 2009 06:23:19 +0000 (14:23 +0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Dec 2009 06:50:49 +0000 (07:50 +0100)
commit3d13ec2efdb5843ad91e57b60d50b44d922cf063
tree35eb9a0ce4571bded972c28bc00526d9f51819dd
parent88f7a890d74137ab0d126a5d65679cd620f1a289
ksym_tracer: Fix to allow writing newline to ksym_trace_filter

It used to work, but now doesn't:

 # echo > ksym_filter
 bash: echo: write error: Invalid argument

It's caused by d954fbf0ff6b5fdfb32350e85a2f15d3db976506
("tracing: Fix wrong usage of strstrip in trace_ksyms").

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: <4B3AF1D7.5040400@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_ksym.c