ia64/linux-2.6.18-xen.hg

view scripts/profile2linkerlist.pl @ 893:f994bfe9b93b

linux/blktap2: reduce TLB flush scope

c/s 885 added very coarse TLB flushing. Since these flushes always
follow single page updates, single page flushes (when available) are
sufficient.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 04 10:32:57 2009 +0100 (2009-06-04)
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 }