Re: [PATCH] Don't profile branches in arm's boot decompressor

From: Steven Rostedt
Date: Fri Feb 27 2009 - 16:40:21 EST



On Fri, 27 Feb 2009, Daniel Walker wrote:

> On Fri, 2009-02-27 at 22:09 +0100, Uwe Kleine-K?nig wrote:
> > This fixes many compile errors for arch/arm/boot/compressed/misc.c of
> > the type:
> >
> > arch/arm/boot/compressed/misc.c:127: error: section attribute cannot be specified for local variables
>
> Why do you think this error showed up just in that one file? It looks
> like the branch tracer puts section tags on non-globals all over the
> kernel..

The problem was with the -Dstatic= in the CFLAGS of the boot parameters.
Since the branch profiler requires a static variable in the section, this
would simply fail. That was the issue, and the solution was to disable the
branch profiler for the boot code. No need for it there anyway.

-- Steve

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