“bd8e68ace110941f375f5d566b0cd99fe80634b8”上不存在“tools/perf/git@gitcode.net:openeuler/kernel.git”
profile2linkerlist.pl 375 字节
#!/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/);
}
反馈
建议
客服 返回
顶部