https://github.com/torvalds/linux
Revision db9256c00329035463625cbe709d2d24e97abad4 authored by Takashi Iwai on 05 February 2010, 18:56:55 UTC, committed by Takashi Iwai on 05 February 2010, 18:56:55 UTC
2 parent s f3f1e14 + 9492837
Raw File
Tip revision: db9256c00329035463625cbe709d2d24e97abad4 authored by Takashi Iwai on 05 February 2010, 18:56:55 UTC
Merge branch 'fix/hda' into for-linus
Tip revision: db9256c
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