Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: v6-new-sysctl-…
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.375 kB
#!/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/);
}
Jump to Line
Something went wrong with that request. Please try again.