Skip to content

Commit

Permalink
export_report: sort SECTION 2 output
Browse files Browse the repository at this point in the history
Sort SECTION 2 modules by name.  Within those module listings, sort
the symbol providers by name, and remove the count, as it is
misleading; its the kernel-wide count of uses of that symbol, not the
count pertaining to the module being outlined.  (this can be seen by
grepping the output for a single symbol).  The count is still used to
sort the symbols.

Signed-off-by: Jim Cromie <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
jimc authored and michal42 committed May 24, 2011
1 parent de7b0b4 commit bdabc7a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/export_report.pl
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ sub alphabetically {
sub print_depends_on {
my ($href) = @_;
print "\n";
while (my ($mod, $list) = each %$href) {
for my $mod (sort keys %$href) {
my $list = $href->{$mod};
print "\t$mod:\n";
foreach my $sym (sort numerically @{$list}) {
my ($symbol, $no) = split /\s+/, $sym;
printf("\t\t%-25s\t%-25d\n", $symbol, $no);
printf("\t\t%-25s\n", $symbol);
}
print "\n";
}
Expand Down Expand Up @@ -166,7 +167,8 @@ sub collectcfiles {
it uses. Each listed symbol reports the number of modules using it\n");
print "~"x80 , "\n";
while (my ($thismod, $list) = each %MODULE) {
for my $thismod (sort keys %MODULE) {
my $list = $MODULE{$thismod};
my %depends;
$thismod =~ s/\.mod\.c/.ko/;
print "\t\t\t$thismod\n";
Expand Down

0 comments on commit bdabc7a

Please sign in to comment.