lkml.org 
[lkml]   [2012]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/7] ftrace: Change filter/notrace set functions to return exit code
    On Sat, Jan 28, 2012 at 07:43:23PM +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@redhat.com>

    Acked-by: Frederic Weisbecker <fweisbec@gmail.com>


    \
     
     \ /
      Last update: 2012-01-30 06:45    [W:0.020 / U:121.320 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site