• Andrew Morton's avatar
    [PATCH] Add `make checkstack' target · 3a76313b
    Andrew Morton authored
    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: default avatarJörn Engel <joern@wohnheim.fh-wedel.de>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    3a76313b
Makefile 35.7 KB