diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-12-30 01:23:19 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-30 01:50:49 -0500 |
commit | 3d13ec2efdb5843ad91e57b60d50b44d922cf063 (patch) | |
tree | 35eb9a0ce4571bded972c28bc00526d9f51819dd /kernel/trace | |
parent | 88f7a890d74137ab0d126a5d65679cd620f1a289 (diff) |
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>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace_ksym.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_ksym.c b/kernel/trace/trace_ksym.c index 340b6ff193e0..160a8d8b37a2 100644 --- a/kernel/trace/trace_ksym.c +++ b/kernel/trace/trace_ksym.c | |||
@@ -299,8 +299,8 @@ static ssize_t ksym_trace_filter_write(struct file *file, | |||
299 | * 2: echo 0 > ksym_trace_filter | 299 | * 2: echo 0 > ksym_trace_filter |
300 | * 3: echo "*:---" > ksym_trace_filter | 300 | * 3: echo "*:---" > ksym_trace_filter |
301 | */ | 301 | */ |
302 | if (!buf[0] || !strcmp(buf, "0") || | 302 | if (!input_string[0] || !strcmp(input_string, "0") || |
303 | !strcmp(buf, "*:---")) { | 303 | !strcmp(input_string, "*:---")) { |
304 | __ksym_trace_reset(); | 304 | __ksym_trace_reset(); |
305 | ret = 0; | 305 | ret = 0; |
306 | goto out; | 306 | goto out; |