lkml.org 
[lkml]   [2000]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.156 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site