Skip to content
Snippets Groups Projects
Select Git revision
  • 794fe7891d77fb9ee095313c60805a8ed609e2a7
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

profile2linkerlist.pl

Blame
  • profile2linkerlist.pl 375 B
    #!/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/);
    }