summaryrefslogtreecommitdiff
path: root/scripts/checkstack.pl
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-10-14 13:16:20 +0100
committerMark Brown <broonie@kernel.org>2026-10-14 13:16:20 +0100
commit94fab2700a76ed5687e6b8ad19d4da45b2f1139d (patch)
tree6abdf50380499c772857c8dbbe01f1322ec9287e /scripts/checkstack.pl
parentd4397cb9e7aca777ea5a1b2208f286955b775cd5 (diff)
parentbe9f9add2032f1370fec166e4e91ade5b5cc1042 (diff)
downloadlinux-next-94fab2700a76ed5687e6b8ad19d4da45b2f1139d.tar.gz
linux-next-94fab2700a76ed5687e6b8ad19d4da45b2f1139d.zip
Merge branch 'mm-nonmm-stable' of https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Diffstat (limited to 'scripts/checkstack.pl')
-rwxr-xr-xscripts/checkstack.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
index 14ce31f732ee..f8011e789a9b 100755
--- a/scripts/checkstack.pl
+++ b/scripts/checkstack.pl
@@ -66,8 +66,10 @@ my (@stack, $re, $dre, $sub, $x, $xs, $funcre, $min_stack);
#c0105234: 81 ec ac 05 00 00 sub $0x5ac,%esp
# or
# 2f60: 48 81 ec e8 05 00 00 sub $0x5e8,%rsp
- $re = qr/^.*[as][du][db] \$(0x$x{1,8}),\%(e|r)sp$/o;
- $dre = qr/^.*[as][du][db] (%.*),\%(e|r)sp$/o;
+ # or
+ # 0: 48 81 ec e8 05 00 00 subq $0x5e8, %rsp
+ $re = qr/^.*[as][du][db][ql]?\s+\$(0x$x{1,8}),\s*\%(e|r)sp/o;
+ $dre = qr/^.*[as][du][db][ql]?\s+(%.*),\s*\%(e|r)sp/o;
} elsif ($arch eq 'm68k') {
# 2b6c: 4e56 fb70 linkw %fp,#-1168
# 1df770: defc ffe4 addaw #-28,%sp