Lines Matching +full:0 +full:- +full:9
2 # SPDX-License-Identifier: GPL-2.0
9 # s390 port and big speedup by Arnd Bergmann <arnd@bergmann-dalldorf.de>
21 # objdump -d vmlinux | scripts/checkstack.pl [arch]
44 $arch = `uname -m`;
53 $x = "[0-9a-f]"; # hex character
54 $xs = "[0-9a-f ]"; # hex character or space
57 #ffffffc0006325cc: a9bb7bfd stp x29, x30, [sp, #-80]!
58 #a110: d11643ff sub sp, sp, #0x590
59 $re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o;
60 $dre = qr/^.*sub.*sp, sp, #(0x$x{1,8})/o;
62 #c0008ffc: e24dd064 sub sp, sp, #100 ; 0x64
63 $re = qr/.*sub.*sp, sp, #([0-9]{1,4})/o;
66 #c0105234: 81 ec ac 05 00 00 sub $0x5ac,%esp
68 # 2f60: 48 81 ec e8 05 00 00 sub $0x5e8,%rsp
69 $re = qr/^.*[as][du][db] \$(0x$x{1,8}),\%(e|r)sp$/o;
72 #e0000000044011fc: 01 0f fc 8c adds r12=-384,r12
73 $re = qr/.*adds.*r12=-(([0-9]{2}|[3-9])[0-9]{2}),r12/o;
75 # 2b6c: 4e56 fb70 linkw %fp,#-1168
76 # 1df770: defc ffe4 addaw #-28,%sp
77 $re = qr/.*(?:linkw %fp,|addaw )#-([0-9]{1,4})(?:,%sp)?$/o;
79 #8800402c: 67bdfff0 daddiu sp,sp,-16
80 $re = qr/.*daddiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
82 #88003254: 27bdffe0 addiu sp,sp,-32
83 $re = qr/.*addiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
85 #25a8: defffb04 addi sp,sp,-20
86 $re = qr/.*addi.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
88 # c000043c: 9c 21 fe f0 l.addi r1,r1,-272
89 $re = qr/.*l\.addi.*r1,r1,-(([0-9]{2}|[3-9])[0-9]{2})/o;
93 # powerpc : 94 21 ff 30 stwu r1,-208(r1)
94 # ppc64(le) : 81 ff 21 f8 stdu r1,-128(r1)
95 $re = qr/.*st[dw]u.*r1,-($x{1,8})\(r1\)/o;
97 # 11160: a7 fb ff 60 aghi %r15,-160
99 # 100092: e3 f0 ff c8 ff 71 lay %r15,-56(%r15)
100 $re = qr/.*(?:lay|ag?hi).*\%r15,-([0-9]+)(?:\(\%r15\))?$/o;
102 # f0019d10: 9d e3 bf 90 save %sp, -112, %sp
103 $re = qr/.*save.*%sp, -(([0-9]{2}|[3-9])[0-9]{2}), %sp/o;
105 #ffffffff8036e868: c2010113 addi sp,sp,-992
106 $re = qr/.*addi.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
120 my $size = 0;
136 $total_size = 0;
145 $addr = "0x$1";
147 my $padlen = 56 - length($intro);
148 while ($padlen > 0) {
150 $padlen -= 8;
153 $total_size = 0;
159 if ($lastslash != -1) {
165 $size = hex($size) if ($size =~ /^0x/);
167 if ($size > 0xf0000000) {
168 $size = - $size;
169 $size += 0x80000000;
170 $size += 0x80000000;
172 next if ($size > 0x10000000);
179 $size = hex($size) if ($size =~ /^0x/);
193 print sort { ($b =~ /:\t*(\d+)$/)[0] <=> ($a =~ /:\t*(\d+)$/)[0] } @stack;