Messages in this thread | | | Date | Thu, 27 Jan 2000 05:25:06 +0100 (CET) | From | Mike Galbraith <> | Subject | Re: anyone remember a script for determining max kstack allocation? |
| |
On Wed, 26 Jan 2000, Purtell, Andrew wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Some time ago I remember someone floated a pointer on l.k. to a script which > (at least for x86) would determine the largest cumulative activation record > using objdump. Does anyone remember this creature and where it can be found?
(activation record == prologue?)
You mean this script right?
#!/bin/sh # cd /usr/src/linux or wherever you keep the source objdump --disassemble vmlinux modules/*.o | \ sed -ne '/>:/{s/[<>:]*//g; h; }; /sub.*$0x[^,][^,][^,].*,%esp/{ s/.*$0x\([^,]*\).*/\1/; G; s/\(.*\)\n.* \(.*\)/\1 \2/; p; }; /sub.*%.*,%esp/{ G; s/\(.*\)\n\(.*\)/Dynamic \2 \1/; p; }; ' | \ sort
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |