anyone remember a script for determining max kstack allocation?

Mike Galbraith mikeg en weiden.de
Jue Ene 27 01:45:56 CST 2000


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 en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



Más información sobre la lista de distribución Ayuda