[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20081024080525.GA21322@cs181140183.pp.htv.fi>
Date: Fri, 24 Oct 2008 11:05:25 +0300
From: Adrian Bunk <bunk@...nel.org>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: LKML <linux-kernel@...r.kernel.org>, Ingo Molnar <mingo@...e.hu>,
Thomas Gleixner <tglx@...utronix.de>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Sam Ravnborg <sam@...nborg.org>, linux-kbuild@...r.kernel.org
Subject: Re: [PATCH] ftrace: handle generic arch calls
On Tue, Oct 21, 2008 at 09:35:26AM -0400, Steven Rostedt wrote:
>
> The recordmcount script requires that the actual arch is passed in.
> This works well when ARCH=i386 or ARCH=x86_64 but does not handle the
> case of ARCH=x86.
>
> This patch adds a parameter to the function to pass in the number of
> bits of the architecture. So that it can determine if x86 should be
> run for x86_64 or i386 archs.
>...
> --- linux-compile.git.orig/scripts/recordmcount.pl 2008-10-21 09:25:45.000000000 -0400
> +++ linux-compile.git/scripts/recordmcount.pl 2008-10-21 09:28:36.000000000 -0400
>...
> @@ -129,6 +130,14 @@ my $function_regex; # Find the name of a
> # (return offset and func name)
> my $mcount_regex; # Find the call site to mcount (return offset)
>
> +if ($arch eq "x86") {
> + if ($bits == 64) {
> + $arch = "x86_64";
> + } else {
> + $arch = "xi386";
>...
After fixing the obvious typo here the 32bit build worked for me.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists