https://github.com/torvalds/linux
Revision 83f9135bddffded9f1716519b6c147bcf046c87e authored by Jens Axboe on 02 April 2006, 21:05:09 UTC, committed by Jens Axboe on 02 April 2006, 21:05:09 UTC
Hopefully this will make Andrew a little more happy.

Signed-off-by: Jens Axboe <axboe@suse.de>
1 parent 4f6f0bd
Raw File
Tip revision: 83f9135bddffded9f1716519b6c147bcf046c87e authored by Jens Axboe on 02 April 2006, 21:05:09 UTC
[PATCH] splice: add comments documenting more of the code
Tip revision: 83f9135
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";
  }
}
back to top