aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-05-28 20:56:36 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-28 20:56:36 -0700
commit3a76313bfbbd344cd4588da4314901882a609ecf (patch)
treeca2a9dedc0fc1c751ae0fe8cf4db3c76c4aa9fd8 /Makefile
parent969d891190f3d95b2f7108c0e2c8c4082f4c9e1c (diff)
downloadhistory-3a76313bfbbd344cd4588da4314901882a609ecf.tar.gz
[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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 35c84be2cb14bf..be9654a95662db 100644
--- a/Makefile
+++ b/Makefile
@@ -1065,6 +1065,11 @@ buildcheck:
endif #ifeq ($(config-targets),1)
endif #ifeq ($(mixed-targets),1)
+.PHONY: checkstack
+checkstack:
+ $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \
+ $(PERL) scripts/checkstack.pl $(ARCH)
+
# FIXME Should go into a make.lib or something
# ===========================================================================