ftrace: return an error when setting a nonexistent tracer
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 4 Oct 2008 20:04:44 +0000 (22:04 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Oct 2008 08:39:22 +0000 (10:39 +0200)
commitc2931e05ec5965597cbfb79ad332d4a29aeceb23
treee1825834156ab83e7c5ed1bbd33c958e5da78b39
parent3ea2e6d71aafe35b8aaf89ed711a283815acfae6
ftrace: return an error when setting a nonexistent tracer

When one try to set a nonexistent tracer, no error is returned
as if the name of the tracer was correct.
We should return -EINVAL.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c