Re: [PATCH 1/1] ftrace: fix function graph tracer

From: Rajesh Bhagat
Date: Fri Mar 16 2012 - 01:06:09 EST


Hello Steve,

Sorry this is the first time im doing this, so i just copied the patch
in gmail.
Please find the correct patch attached to this email, with 0
checkpatch.pl errors.

[bhagatr@linux git]$ vi 0001-ftrace-fix-function-graph-tracer.patch
(reverse-i-search)`':
[bhagatr@linux git]$ ./linux-2.6/scripts/checkpatch.pl
0001-ftrace-fix-function-graph-tracer.patch
total: 0 errors, 0 warnings, 9 lines checked

I will also try to send a V2 of this patch, as soon my "git
send-email" is up and running.

- Rajesh

On Tue, Mar 13, 2012 at 7:06 PM, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>
>
> > Signed-off-by: Rajesh Bhagat <rajesh.lnx@xxxxxxxxx>
> > ---
> >  kernel/trace/ftrace.c |    3 ++-
> >  1 files changed, 2 insertions(+), 1 deletions(-)
> > diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
> > index 683d559..dc2de98 100644
> > --- a/kernel/trace/ftrace.c
> > +++ b/kernel/trace/ftrace.c
> > @@ -219,7 +219,8 @@ static void update_ftrace_function(void)
> >  #else
> >     __ftrace_trace_function = func;
> >  #endif
> > -   ftrace_trace_function = ftrace_test_stop_func;
> > +   ftrace_trace_function =
> > +       (func == ftrace_stub) ? func : ftrace_test_stop_func;
> >  #endif
> >  }
>
> BTW, this patch has major whitespace issues. It does not apply.
>
> -- Steve
>
>

Attachment: 0001-ftrace-fix-function-graph-tracer.patch
Description: Binary data