Re: [PATCH 1/7] ftrace: Change filter/notrace set functions toreturn exit code

From: Frederic Weisbecker
Date: Thu Jan 19 2012 - 11:31:32 EST


On Wed, Jan 18, 2012 at 07:44:29PM +0100, Jiri Olsa wrote:
> 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.
>
> Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx>

Acked-by: Frederic Weisbecker <fweisbec@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/