summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorManinder Singh <maninder1.s@samsung.com>2020-05-08 16:33:17 +0530
committerMasahiro Yamada <masahiroy@kernel.org>2020-05-26 00:03:16 +0900
commit6ce16f2bc879fb8943d2165f81862c6f89ec1b77 (patch)
tree5b8b71ecdf55a73035938526475b6927a6e93b05 /scripts
parent3311eeebae94b37a21b37af4410bb5e2fe3dc0c0 (diff)
downloadlwn-6ce16f2bc879fb8943d2165f81862c6f89ec1b77.tar.gz
lwn-6ce16f2bc879fb8943d2165f81862c6f89ec1b77.zip
scripts/checkstack.pl: fix arm sp regex
if objdump has below entries; c01ed608 <X>: c01ed614: e24ddff7 sub sp, sp, #120 ; 0x78 c01f0d50 <Y>: c01f0d50: e24dd094 sub sp, sp, #140 ; 0x8c scripts fails to read stack usage. so making regex $re for ARM similar to aarch64 Co-developed-by: Vaneet Narang <v.narang@samsung.com> Signed-off-by: Vaneet Narang <v.narang@samsung.com> Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkstack.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
index bc07e19f2786..d2c38584ece6 100755
--- a/scripts/checkstack.pl
+++ b/scripts/checkstack.pl
@@ -60,7 +60,7 @@ my (@stack, $re, $dre, $sub, $x, $xs, $funcre, $min_stack);
$dre = qr/^.*sub.*sp, sp, #(0x$x{1,8})/o;
} elsif ($arch eq 'arm') {
#c0008ffc: e24dd064 sub sp, sp, #100 ; 0x64
- $re = qr/.*sub.*sp, sp, #(([0-9]{2}|[3-9])[0-9]{2})/o;
+ $re = qr/.*sub.*sp, sp, #([0-9]{1,4})/o;
$sub = \&arm_push_handling;
} elsif ($arch =~ /^x86(_64)?$/ || $arch =~ /^i[3456]86$/) {
#c0105234: 81 ec ac 05 00 00 sub $0x5ac,%esp