Linux / Drivers / Pci
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 188 files with 91,934 lines of code.
    • 21 very long files (35,040 lines of code)
    • 38 long files (28,084 lines of code)
    • 63 medium size files (21,947 lines of codeclsfd_ftr_w_mp_ins)
    • 33 small files (4,962 lines of code)
    • 33 very small files (1,901 lines of code)
38% | 30% | 23% | 5% | 2%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
c39% | 30% | 22% | 5% | 1%
h0% | 30% | 45% | 9% | 14%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT65% | 13% | 14% | 3% | 1%
controller29% | 32% | 31% | 5% | 1%
hotplug30% | 42% | 19% | 3% | 4%
switch100% | 0% | 0% | 0% | 0%
endpoint33% | 37% | 23% | 5% | 0%
pcie0% | 46% | 33% | 20% | 0%
msi0% | 73% | 0% | 15% | 10%
Longest Files (Top 50)
File# lines# units
pci.c
in root
3847 253
quirks.c
in root
3699 200
pci-hyperv.c
in controller
2371 75
probe.c
in root
2169 85
pci-tegra.c
in controller
2111 75
cpqphp_ctrl.c
in hotplug
1797 27
pcie-tegra194.c
in controller/dwc
1780 55
ibmphp_res.c
in hotplug
1692 18
1536 63
switchtec.c
in switch
1482 54
pcie-qcom.c
in controller/dwc
1283 32
ibmphp_pci.c
in hotplug
1260 10
pci-aardvark.c
in controller
1230 39
pcie-brcmstb.c
in controller
1211 45
pci-epf-ntb.c
in endpoint/functions
1201 36
1164 68
pcie-iproc.c
in controller
1088 37
1052 56
cpqphp_pci.c
in hotplug
1032 17
pci-imx6.c
in controller/dwc
1023 28
pci-acpi.c
in root
1012 47
aer.c
in pcie
997 49
pci-keystone.c
in controller/dwc
994 41
ibmphp_core.c
in hotplug
971 29
cpqphp_core.c
in hotplug
962 20
pci-mvebu.c
in controller
959 32
aspm.c
in pcie
936 43
928 30
916 33
pcie-mediatek.c
in controller
914 31
ibmphp_ebda.c
in hotplug
865 24
shpchp_hpc.c
in hotplug
838 34
iov.c
in root
798 47
797 30
pcie-rcar-host.c
in controller
786 36
pci-epf-test.c
in endpoint/functions
760 20
752 35
pci-dra7xx.c
in controller/dwc
751 32
pnv_php.c
in hotplug
744 32
vmd.c
in controller
731 34
ibmphp_hpc.c
in hotplug
730 22
msi.c
in msi
725 49
pciehp_hpc.c
in hotplug
721 41
acpiphp_glue.c
in hotplug
669 33
pcie-altera.c
in controller
649 33
pcie-apple.c
in controller
637 27
pcie-xilinx-nwl.c
in controller
631 24
pci-v3-semi.c
in controller
629 9
pci.h
in root
625 77
pcie-designware-ep.c
in controller/dwc
621 30
Files With Most Units (Top 50)
File# lines# units
pci.c
in root
3847 253
quirks.c
in root
3699 200
probe.c
in root
2169 85
pci.h
in root
625 77
pci-tegra.c
in controller
2111 75
pci-hyperv.c
in controller
2371 75
1164 68
1536 63
1052 56
pcie-tegra194.c
in controller/dwc
1780 55
switchtec.c
in switch
1482 54
msi.c
in msi
725 49
aer.c
in pcie
997 49
iov.c
in root
798 47
pci-acpi.c
in root
1012 47
pcie-brcmstb.c
in controller
1211 45
aspm.c
in pcie
936 43
pciehp_hpc.c
in hotplug
721 41
pci-keystone.c
in controller/dwc
994 41
pci-aardvark.c
in controller
1230 39
pcie-iproc.c
in controller
1088 37
pcie-rcar-host.c
in controller
786 36
pci-epf-ntb.c
in endpoint/functions
1201 36
752 35
shpchp_hpc.c
in hotplug
838 34
vmd.c
in controller
731 34
acpiphp_glue.c
in hotplug
669 33
pcie-altera.c
in controller
649 33
916 33
pnv_php.c
in hotplug
744 32
pci-mvebu.c
in controller
959 32
pcie-designware.c
in controller/dwc
578 32
pcie-qcom.c
in controller/dwc
1283 32
pci-dra7xx.c
in controller/dwc
751 32
pcie-mediatek.c
in controller
914 31
928 30
797 30
pcie-designware-ep.c
in controller/dwc
621 30
ibmphp_core.c
in hotplug
971 29
pcie-kirin.c
in controller/dwc
616 28
pci-imx6.c
in controller/dwc
1023 28
vpd.c
in root
420 27
cpqphp_ctrl.c
in hotplug
1797 27
pcie-intel-gw.c
in controller/dwc
354 27
pcie-apple.c
in controller
637 27
access.c
in root
413 25
pcie-mt7621.c
in controller
414 25
pci-epc-core.c
in endpoint
469 25
ibmphp_ebda.c
in hotplug
865 24
pci-xgene.c
in controller
497 24
Files With Long Lines (Top 19)

There are 19 files with lines longer than 120 characters. In total, there are 58 long lines.

File# lines# units# long lines
ibmphp_res.c
in hotplug
1692 18 12
ibmphp_pci.c
in hotplug
1260 10 11
quirks.c
in root
3699 200 10
cpqphp_pci.c
in hotplug
1032 17 6
probe.c
in root
2169 85 3
cpqphp.h
in hotplug
562 22 2
ibmphp_ebda.c
in hotplug
865 24 2
1536 63 1
access.c
in root
413 25 1
pci.c
in root
3847 253 1
vpd.c
in root
420 27 1
ibmphp_hpc.c
in hotplug
730 22 1
pciehp_hpc.c
in hotplug
721 41 1
acpiphp_core.c
in hotplug
158 12 1
shpchp_core.c
in hotplug
252 14 1
cpqphp_ctrl.c
in hotplug
1797 27 1
pcie-designware-host.c
in controller/dwc
462 20 1
p2pdma.c
in root
610 24 1
dpc.c
in pcie
298 15 1