summaryrefslogtreecommitdiffhomepage
path: root/Makefile.custom
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-06-10 00:54:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-06-10 00:54:27 +0000
commitd4fea900bdb92d7bba71348a40cb00b6748a8ecc (patch)
tree9f09ec44b1c7ee387e5bab1c499361ae7bc08573 /Makefile.custom
parent77e44d60e698c2164f610072e9f7e2bacefdd589 (diff)
add script which measures stack consumption.
Current top users: 0x08052f52 uncompress []: 393312 0x080c8a58 input_tab []: 82104 0x08092d5b ifaddrlist []: 32828 0x08056163 loadfont_main []: 32796 0x0806e508 colon []: 16532 0x08056095 do_loadfont []: 16400 0x0806da70 place_cursor []: 16388 0x080792e8 login_main []: 9176 393 kb of stack??? OMG...
Diffstat (limited to 'Makefile.custom')
-rw-r--r--Makefile.custom6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.custom b/Makefile.custom
index d0aff3799..cf3d14321 100644
--- a/Makefile.custom
+++ b/Makefile.custom
@@ -79,9 +79,13 @@ baseline: busybox_unstripped
objsizes: busybox_unstripped
$(srctree)/scripts/objsizes
+.PHONY: stksizes
+stksizes: busybox_unstripped
+ $(CROSS_COMPILE)objdump -d busybox_unstripped | $(srctree)/scripts/checkstack.pl $(ARCH)
+
.PHONY: bigdata
bigdata: busybox_unstripped
- nm --size-sort busybox_unstripped | grep -vi ' [tr] ' | tail -20
+ $(CROSS_COMPILE)nm --size-sort busybox_unstripped | grep -vi ' [tr] '
# Documentation Targets
.PHONY: doc