diff options
| author | Jiri Olsa <[email protected]> | 2012-01-02 10:04:14 +0100 |
|---|---|---|
| committer | Steven Rostedt <[email protected]> | 2012-02-03 09:48:18 -0500 |
| commit | ac483c446b67870444c9eeaf8325d3d2af9b91bc (patch) | |
| tree | e2765af4acf86ce986856b2963036138ae077d58 /lib/mpi/mpi-internal.h | |
| 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/[email protected]
Acked-by: Frederic Weisbecker <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions