URL
https://opencores.org/ocsvn/or1k_soc_on_altera_embedded_dev_kit/or1k_soc_on_altera_embedded_dev_kit/trunk
Subversion Repositories or1k_soc_on_altera_embedded_dev_kit
[/] [or1k_soc_on_altera_embedded_dev_kit/] [trunk/] [linux-2.6/] [linux-2.6.24/] [scripts/] [profile2linkerlist.pl] - Rev 3
Compare with Previous | Blame | View Log
#!/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"; } }