ia64/linux-2.6.18-xen.hg

view scripts/profile2linkerlist.pl @ 912:dd42cdb0ab89

[IA64] Build blktap2 driver by default in x86 builds.

add CONFIG_XEN_BLKDEV_TAP2=y to buildconfigs/linux-defconfig_xen_ia64.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 12:09:16 2009 +0900 (2009-06-29)
parents 831230e53067
children
line source
1 #!/usr/bin/perl
3 #
4 # Takes a (sorted) output of readprofile and turns it into a list suitable for
5 # linker scripts
6 #
7 # usage:
8 # readprofile | sort -rn | perl profile2linkerlist.pl > functionlist
9 #
11 while (<>) {
12 my $line = $_;
14 $_ =~ /\W*[0-9]+\W*([a-zA-Z\_0-9]+)\W*[0-9]+/;
16 if ( ($line =~ /unknown/) || ($line =~ /total/)) {
18 } else {
19 print "*(.text.$1)\n";
20 }
21 }