Revision 21ca543efc12674fddb22ddf4ea4906427f4e982 authored by Ilya Dryomov on 04 November 2011, 13:41:02 UTC, committed by Chris Mason on 06 November 2011, 08:11:21 UTC
Signed-off-by: Chris Mason <chris.mason@oracle.com>
1 parent 9510dc4
profile2linkerlist.pl
#!/usr/bin/perl
#
# Takes a (sorted) output of readprofile and turns it into a list suitable for
# linker scripts
#
# usage:
# readprofile | sort -rn | perl profile2linkerlist.pl > functionlist
#
use strict;
while (<>) {
my $line = $_;
$_ =~ /\W*[0-9]+\W*([a-zA-Z\_0-9]+)\W*[0-9]+/;
print "*(.text.$1)\n"
unless ($line =~ /unknown/) || ($line =~ /total/);
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...