[PATCH] Add `make checkstack' target
commit3a76313bfbbd344cd4588da4314901882a609ecf
authorAndrew Morton <akpm@osdl.org>
Sat, 29 May 2004 03:56:36 +0000 (28 20:56 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 29 May 2004 03:56:36 +0000 (28 20:56 -0700)
treeca2a9dedc0fc1c751ae0fe8cf4db3c76c4aa9fd8
parent969d891190f3d95b2f7108c0e2c8c4082f4c9e1c
[PATCH] Add `make checkstack' target

Jorn Engel <joern@wohnheim.fh-wedel.de>

Adds a `make checkstack' target.  This disassembles and parses vmlinux and
*.ko, generating a sorted list of stack hogs, eg:

0xc0100663 huft_build:                                  1456
0xc01022d3 huft_build:                                  1456
0xc0103127 inflate_dynamic:                             1328
0xc0101487 inflate_dynamic:                             1324
0xc010131f inflate_fixed:                               1168
0xc0102fb7 inflate_fixed:                               1168
0x00000003 sha512_transform:                            984
0xc024aee3 Vpd:                                         952
0x00000003 twofish_setkey:                              804
0x000060c3 isd200_action:                               792
0x0000e6cb nfsd4_proc_compound:                         760
0xc0249087 SkPnmiGetStruct:                             712
....

Supported architectures are alleged to be arm, x86, ia64, mips, mips64, ppc,
ppc64 and s390x.

Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Makefile
scripts/checkstack.pl [new file with mode: 0644]