ftrace: Return EINVAL when writing invalid val to set_ftrace_filter
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 8 Dec 2009 03:15:11 +0000 (11:15 +0800)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 13 Dec 2009 17:37:25 +0000 (18:37 +0100)
commit311d16da575f53c3367099579736c1d233efe0dc
tree6fea069fc00f50afac428021989d037f0bb0162f
parent3b8e4273814a7f9e9a74ece517d9206fea919aaa
ftrace: Return EINVAL when writing invalid val to set_ftrace_filter

Currently it doesn't warn user on invald value:

 # echo nonexist_symbol > set_ftrace_filter
or:
 # echo 'nonexist_symbol:mod:fuse' > set_ftrace_filter

Better make it return failure.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <4B1DC4BF.2070003@cn.fujitsu.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
kernel/trace/ftrace.c