lkml.org 
[lkml]   [2011]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/3] sort SECTION 2 output of scripts/export_report.pl
    Date
    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 <jim.cromie@gmail.com>
    ---
    scripts/export_report.pl | 8 +++++---
    1 files changed, 5 insertions(+), 3 deletions(-)

    diff --git a/scripts/export_report.pl b/scripts/export_report.pl
    index f97899c..48398a1 100644
    --- a/scripts/export_report.pl
    +++ b/scripts/export_report.pl
    @@ -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";
    }
    @@ -166,7 +167,8 @@ modules. Each module lists the modules, and the symbols from that module that
    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";
    --
    1.7.4.4


    \
     
     \ /
      Last update: 2011-05-23 20:47    [W:0.023 / U:119.148 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site