Skip to content

Commit aab1f80

Browse files
hcahcaAlexander Gordeev
authored andcommitted
scripts/checkstack.pl: match all stack sizes for s390
For some unknown reason the regular expression for checkstack only matches three digit numbers starting with the number "3", or any higher number. Which means that it skips any stack sizes smaller than 304 bytes. This makes the checkstack script a bit less useful than it could be. Change the script to match any number. To be filtered out stack sizes can be configured with the min_stack variable, which omits any stack frame sizes smaller than 100 bytes by default. Tested-by: Alexander Gordeev <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Alexander Gordeev <[email protected]>
1 parent 0a9ace1 commit aab1f80

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/checkstack.pl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@
9797
# 11160: a7 fb ff 60 aghi %r15,-160
9898
# or
9999
# 100092: e3 f0 ff c8 ff 71 lay %r15,-56(%r15)
100-
$re = qr/.*(?:lay|ag?hi).*\%r15,-(([0-9]{2}|[3-9])[0-9]{2})
101-
(?:\(\%r15\))?$/ox;
100+
$re = qr/.*(?:lay|ag?hi).*\%r15,-([0-9]+)(?:\(\%r15\))?$/o;
102101
} elsif ($arch eq 'sparc' || $arch eq 'sparc64') {
103102
# f0019d10: 9d e3 bf 90 save %sp, -112, %sp
104103
$re = qr/.*save.*%sp, -(([0-9]{2}|[3-9])[0-9]{2}), %sp/o;

0 commit comments

Comments
 (0)