From: Steven Rostedt <rostedt@goodmis.org>
To: Uwe Kleine-K??nig <u.kleine-koenig@pengutronix.de>
Cc: linux-kernel@vger.kernel.org,
Steven Rostedt <rostedt@rostedt.homelinux.com>,
Ingo Molnar <mingo@elte.hu>
Subject: Re: [PATCH] Don't profile branches in arm's boot decompressor
Date: Fri, 27 Feb 2009 16:44:03 -0500 [thread overview]
Message-ID: <20090227214403.GD25589@goodmis.org> (raw)
In-Reply-To: <1235768983-4830-1-git-send-email-u.kleine-koenig@pengutronix.de>
Thanks Uwe!
On Fri, Feb 27, 2009 at 10:09:43PM +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
>
> Fix was suggested by Steven Rostedt in #linux-rt.
>
> Signed-off-by: Uwe Kleine-K??nig <u.kleine-koenig@pengutronix.de>
> Cc: Steven Rostedt <rostedt@home.goodmis.org>
> Cc: Ingo Molnar <mingo@elte.hu>
>
> ---
> arch/arm/boot/compressed/Makefile | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile
> index fbe5eef..0bcc98c 100644
> --- a/arch/arm/boot/compressed/Makefile
> +++ b/arch/arm/boot/compressed/Makefile
> @@ -89,7 +89,7 @@ LDFLAGS_vmlinux += -p --no-undefined -X \
>
> # Don't allow any static data in misc.o, which
> # would otherwise mess up our GOT table
> -CFLAGS_misc.o := -Dstatic=
> +CFLAGS_misc.o := -Dstatic= -DDISABLE_BRANCH_PROFILING
Could you also add a comment saying something to the effect:
# The branch profiler requires static variables.
# No need to profile the boot up code, so simply disable it.
Thanks,
-- Steve
>
> $(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.o \
> $(addprefix $(obj)/, $(OBJS)) FORCE
> --
> tg: (db50eec..) t/ftrace/fix-PROFILE_ALL_BRANCHES (depends on: tip/master)
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2009-02-27 21:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-27 21:09 [PATCH] Don't profile branches in arm's boot decompressor Uwe Kleine-König
2009-02-27 21:19 ` Daniel Walker
2009-02-27 21:28 ` Uwe Kleine-König
2009-02-27 21:38 ` Daniel Walker
2009-02-27 21:40 ` Steven Rostedt
2009-02-27 21:44 ` Steven Rostedt [this message]
2009-02-28 6:12 ` Uwe Kleine-König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090227214403.GD25589@goodmis.org \
--to=rostedt@goodmis.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@rostedt.homelinux.com \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox