From: "George G. Davis" <george_davis@mentor.com>
To: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Andy Whitcroft <apw@canonical.com>, Joe Perches <joe@perches.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will.deacon@arm.com>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
Michal Marek <michal.lkml@markovi.net>,
Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [RFC][PATCH] Makefile: Fix checkstack.pl arm64 wrong or unknown architecture
Date: Fri, 31 May 2019 13:45:06 -0400 [thread overview]
Message-ID: <20190531174506.GC10644@mam-gdavis-lt> (raw)
In-Reply-To: <CAK7LNASq8eW0D8fpbxFGhAgR5D158emTR2quCD5ufyC+kK-2GQ@mail.gmail.com>
Hello Masahiro,
On Sat, Jun 01, 2019 at 02:22:36AM +0900, Masahiro Yamada wrote:
// CUT
> As far as I understood, checkstack.pl is supposed to
> understand both ARCH= and 'uname -m'.
>
>
> For example, the following commit supports x86, x86_64, i386,
> by using regular expression.
>
> commit fda9f9903be6c3b590472c175c514b0834bb3c83
> Author: Konstantin Khlebnikov <koct9i@gmail.com>
> Date: Fri Aug 8 14:23:35 2014 -0700
>
> scripts/checkstack.pl: automatically handle 32-bit and 64-bit mode
> for ARCH=x86
>
> This patch adds support for ARCH=x86 into checkstack.
>
>
>
> Following this pattern, does this work for you?
>
> diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
> index 122aef5e4e14..371bd17a4983 100755
> --- a/scripts/checkstack.pl
> +++ b/scripts/checkstack.pl
> @@ -46,7 +46,7 @@ my (@stack, $re, $dre, $x, $xs, $funcre);
> $x = "[0-9a-f]"; # hex character
> $xs = "[0-9a-f ]"; # hex character or space
> $funcre = qr/^$x* <(.*)>:$/;
> - if ($arch eq 'aarch64') {
> + if ($arch =~ '^(aarch|arm)64$') {
Yes, that works, thanks!
Will you submit a fix or would you like me to resubmit with the above suggested
fix?
Thanks again!
> #ffffffc0006325cc: a9bb7bfd stp x29,
> x30, [sp, #-80]!
> #a110: d11643ff sub sp, sp, #0x590
> $re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o;
>
>
>
> --
> Best Regards
> Masahiro Yamada
--
Regards,
George
next prev parent reply other threads:[~2019-05-31 17:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-31 15:26 [RFC][PATCH] Makefile: Fix checkstack.pl arm64 wrong or unknown architecture George G. Davis
2019-05-31 16:02 ` Masahiro Yamada
2019-05-31 16:39 ` George G. Davis
2019-05-31 17:22 ` Masahiro Yamada
2019-05-31 17:45 ` George G. Davis [this message]
2019-06-01 2:09 ` Masahiro Yamada
2019-06-03 14:34 ` George G. Davis
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=20190531174506.GC10644@mam-gdavis-lt \
--to=george_davis@mentor.com \
--cc=apw@canonical.com \
--cc=catalin.marinas@arm.com \
--cc=joe@perches.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.lkml@markovi.net \
--cc=will.deacon@arm.com \
--cc=yamada.masahiro@socionext.com \
/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