Commit 9c49fd30 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Michal Marek

profile2linkerlist: fix perl warnings

Turn on strict checking.
Simplify code by using "unless" statement.
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Acked-by: default avatarWANG Cong <amwang@redhat.com>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent 86d08e56
......@@ -7,15 +7,13 @@
# 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]+/;
if ( ($line =~ /unknown/) || ($line =~ /total/)) {
} else {
print "*(.text.$1)\n";
}
print "*(.text.$1)\n"
unless ($line =~ /unknown/) || ($line =~ /total/);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment