Re: anyone remember a script for determining max kstack allocation?

From: Mike Galbraith (mikeg@weiden.de)
Date: Wed Jan 26 2000 - 23:25:06 EST


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/



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:17 EST