Re: function_graph selftest fails with !DYNAMIC

From: Steven Rostedt
Date: Fri Nov 11 2011 - 19:20:57 EST


On Fri, 2011-11-11 at 22:25 +0530, Rabin Vincent wrote:
> On Fri, Nov 04, 2011 at 09:44:29AM -0400, Steven Rostedt wrote:
> > On Wed, 2011-11-02 at 20:32 +0530, Rabin Vincent wrote:
> > > The function_graph selftest fails when CONFIG_DYNAMIC_FTRACE is not set
> > > (tested on x86-64) on current kernels:
> > >
> > > [ 0.300124] Testing tracer function: PASSED
> > > [ 0.446092] Testing tracer function_graph: .. no entries found ..FAILED!
> > >
> > > Bisecting goes back to this commit:
> > >
> > > 2b499381bc50ede01b3d8eab164ca2fad00655f0 is the first bad commit
> >
> > Your bisect is wrong. I ran it though ktest.pl and it gave me this
> > bisect commit:
>
> Odd. 2b499381bc50ede really doesn't work for me. 2b499381bc50ede^
> does, so the bisect to 2b499381bc50ede seems correct for my config.
>
> It appears I'm seeing a different problem, because ...

Hmm, strange, I'll take a look at this on Monday. Thanks.

-- Steve

>
> > The simple fix is:
> >
> > --- a/kernel/trace/ftrace.c
> > +++ b/kernel/trace/ftrace.c
> > @@ -151,7 +151,6 @@ void clear_ftrace_function(void)
> > ftrace_pid_function = ftrace_stub;
> > }
> >
> > -#undef CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST
> > #ifndef CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST
> > /*
> > * For those archs that do not test ftrace_trace_stop in their
>
> ... this doesn't seem to fix it. I've test 3.2-rc1 with this patch
> applied, and the self-test failure is still seen.
>
> Maybe there's some difference between our configs? I've attached mine.
> I run it with the "native linux KVM tool".


--
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/