diff options
author | Jiri Olsa <jolsa@redhat.com> | 2012-01-02 10:04:14 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2012-02-03 09:48:18 -0500 |
commit | ac483c446b67870444c9eeaf8325d3d2af9b91bc (patch) | |
tree | e2765af4acf86ce986856b2963036138ae077d58 /kernel/irq | |
parent | 623ec991ce0e8cd5791bad656c162fa837635907 (diff) |
ftrace: Change filter/notrace set functions to return exit code
Currently the ftrace_set_filter and ftrace_set_notrace functions
do not return any return code. So there's no way for ftrace_ops
user to tell wether the filter was correctly applied.
The set_ftrace_filter interface returns error in case the filter
did not match:
# echo krava > set_ftrace_filter
bash: echo: write error: Invalid argument
Changing both ftrace_set_filter and ftrace_set_notrace functions
to return zero if the filter was applied correctly or -E* values
in case of error.
Link: http://lkml.kernel.org/r/1325495060-6402-2-git-send-email-jolsa@redhat.com
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/irq')
0 files changed, 0 insertions, 0 deletions