Messages in this thread | | | From | Bodo Eggert <> | Subject | Re: Average instruction length in x86-built kernel? | Date | Sun, 31 Jul 2005 04:19:00 +0200 |
| |
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. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |