diff options
author | George G. Davis <george_davis@mentor.com> | 2019-06-03 10:30:39 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-06-04 13:33:10 -0400 |
commit | 4f45d62a52297b10ded963412a158685647ecdec (patch) | |
tree | 58e39c5463a6c98f48c09385cc2ac2739771604a | |
parent | a6e0487709ded7cd1ba0c390d9771e5cb76a8453 (diff) |
scripts/checkstack.pl: Fix arm64 wrong or unknown architecture
The following error occurs for the `make ARCH=arm64 checkstack` case:
aarch64-linux-gnu-objdump -d vmlinux $(find . -name '*.ko') | \
perl ./scripts/checkstack.pl arm64
wrong or unknown architecture "arm64"
As suggested by Masahiro Yamada, fix the above error using regular
expressions in the same way it was fixed for the `ARCH=x86` case via
commit fda9f9903be6 ("scripts/checkstack.pl: automatically handle
32-bit and 64-bit mode for ARCH=x86").
Suggested-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: George G. Davis <george_davis@mentor.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rwxr-xr-x | scripts/checkstack.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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); | |||
46 | $x = "[0-9a-f]"; # hex character | 46 | $x = "[0-9a-f]"; # hex character |
47 | $xs = "[0-9a-f ]"; # hex character or space | 47 | $xs = "[0-9a-f ]"; # hex character or space |
48 | $funcre = qr/^$x* <(.*)>:$/; | 48 | $funcre = qr/^$x* <(.*)>:$/; |
49 | if ($arch eq 'aarch64') { | 49 | if ($arch =~ '^(aarch|arm)64$') { |
50 | #ffffffc0006325cc: a9bb7bfd stp x29, x30, [sp, #-80]! | 50 | #ffffffc0006325cc: a9bb7bfd stp x29, x30, [sp, #-80]! |
51 | #a110: d11643ff sub sp, sp, #0x590 | 51 | #a110: d11643ff sub sp, sp, #0x590 |
52 | $re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o; | 52 | $re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o; |