Revision 6847e154e3cd74fca6084124c097980a7634285a authored by Linus Torvalds on 14 July 2009, 01:18:52 UTC, committed by Linus Torvalds on 14 July 2009, 01:18:52 UTC
1 parent 1cf2968
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
#
while (<>) {
my $line = $_;
$_ =~ /\W*[0-9]+\W*([a-zA-Z\_0-9]+)\W*[0-9]+/;
if ( ($line =~ /unknown/) || ($line =~ /total/)) {
} else {
print "*(.text.$1)\n";
}
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...