From: Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org>
To: karim@opersys.com, Ingo Oeser <ioe-lkml@rameria.de>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Average instruction length in x86-built kernel?
Date: Sun, 31 Jul 2005 04:19:00 +0200 [thread overview]
Message-ID: <E1Dz3Pp-0000zu-6N@be1.lrz> (raw)
In-Reply-To: <4w5OQ-6Z9-25@gated-at.bofh.it>
Karim Yaghmour <karim@opersys.com> wrote:
> Here's a script that does what I was looking for:
<snip>
#!/bin/bash
for a in "$@"
do
objdump -d "$a" -j .text
done | perl -ne'
BEGIN{%h=();$b=0};
END{if($b){$h{$b}++};print map("$_: $h{$_}\n", sort(keys(%h)))};
if(/\tnop $/){$h{nop}++}
elsif(/^[\s0-9a-f]{8}:\t([^\t]+) (\t?)/){
$b+=split(" ",$1);if($2){$h{$b}++;$b=0}}'
--
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.
next parent reply other threads:[~2005-07-31 2:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4vKU4-3sU-21@gated-at.bofh.it>
[not found] ` <4w02Q-7e6-21@gated-at.bofh.it>
[not found] ` <4w5OQ-6Z9-25@gated-at.bofh.it>
2005-07-31 2:19 ` Bodo Eggert [this message]
2005-08-01 6:25 ` Jan Engelhardt
2005-07-29 21:32 Karim Yaghmour
2005-07-30 13:49 ` Ingo Oeser
2005-07-30 19:57 ` Karim Yaghmour
2005-08-01 7:35 ` David Weinehall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1Dz3Pp-0000zu-6N@be1.lrz \
--to=harvested.in.lkml@posting.7eggert.dyndns.org \
--cc=7eggert@gmx.de \
--cc=ioe-lkml@rameria.de \
--cc=karim@opersys.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®