Linux / Arch / Powerpc
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 1,430 files with 311,524 lines of code.
    • 48 very long files (81,496 lines of code)
    • 113 long files (77,408 lines of code)
    • 272 medium size files (85,993 lines of codeclsfd_ftr_w_mp_ins)
    • 262 small files (37,451 lines of code)
    • 735 very small files (29,176 lines of code)
26% | 24% | 27% | 12% | 9%
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
c31% | 26% | 25% | 10% | 5%
S26% | 26% | 33% | 8% | 6%
h2% | 18% | 32% | 20% | 26%
lds0% | 0% | 0% | 0% | 100%
sed0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
kvm53% | 19% | 21% | 4% | 1%
kernel31% | 34% | 21% | 7% | 4%
platforms20% | 23% | 33% | 14% | 7%
xmon88% | 0% | 6% | 2% | 2%
perf35% | 14% | 35% | 8% | 5%
mm20% | 22% | 36% | 11% | 9%
lib26% | 37% | 23% | 5% | 6%
sysdev17% | 29% | 23% | 23% | 6%
include2% | 21% | 33% | 18% | 24%
crypto0% | 43% | 38% | 13% | 4%
net0% | 81% | 10% | 6% | 2%
math-emu0% | 30% | 15% | 4% | 49%
kexec0% | 33% | 48% | 13% | 4%
boot0% | 7% | 21% | 29% | 41%
purgatory0% | 0% | 0% | 100% | 0%
Longest Files (Top 50)
File# lines# units
ppc-opc.c
in xmon
5453 -
4501 141
xmon.c
in xmon
3748 95
sstep.c
in lib
3109 50
2824 -
2765 -
prom_init.c
in kernel
2486 68
feature.c
in platforms/powermac
2478 43
pci-ioda.c
in platforms/powernv
2332 89
file.c
in platforms/cell/spufs
2041 105
cputable.c
in kernel
2032 4
powerpc.c
in kvm
2025 90
booke.c
in kvm
1680 93
1583 59
1576 79
process.c
in kernel
1569 93
traps.c
in kernel
1559 41
1545 51
pci.c
in platforms/4xx
1517 48
mpic.c
in sysdev
1444 75
lpar.c
in platforms/pseries
1439 68
1420 56
hash_utils.c
in mm/book3s64
1410 58
mpic.c
in kvm
1406 56
1369 -
switch.c
in platforms/cell/spufs
1301 123
1241 56
hv-24x7.c
in perf
1235 45
imc-pmu.c
in perf
1223 59
reg.h
in include/asm
1214 5
iommu.c
in platforms/pseries
1208 42
eeh-powernv.c
in platforms/powernv
1160 38
common.c
in sysdev/xive
1139 75
smp.c
in kernel
1137 72
low_i2c.c
in platforms/powermac
1127 49
fadump.c
in kernel
1127 54
1122 -
pci-common.c
in kernel
1119 54
1115 43
eeh.c
in kernel
1115 42
vio.c
in platforms/pseries
1114 46
radix_tlb.c
in mm/book3s64
1111 75
S
tlb_low_64e.S
in mm/nohash
1084 -
1083 -
1077 13
S
head_44x.S
in kernel
1060 -
repository.c
in platforms/ps3
1050 69
1023 25
pgtable.h
in include/asm/book3s/64
963 110
957 39
Files With Most Units (Top 50)
File# lines# units
4501 141
switch.c
in platforms/cell/spufs
1301 123
pgtable.h
in include/asm/book3s/64
963 110
file.c
in platforms/cell/spufs
2041 105
xmon.c
in xmon
3748 95
booke.c
in kvm
1680 93
process.c
in kernel
1569 93
powerpc.c
in kvm
2025 90
pci-ioda.c
in platforms/powernv
2332 89
1576 79
common.c
in sysdev/xive
1139 75
mpic.c
in sysdev
1444 75
radix_tlb.c
in mm/book3s64
1111 75
smp.c
in kernel
1137 72
repository.c
in platforms/ps3
1050 69
lpar.c
in platforms/pseries
1439 68
book3s.c
in kvm
896 68
prom_init.c
in kernel
2486 68
kvm_ppc.h
in include/asm
762 61
1583 59
imc-pmu.c
in perf
1223 59
hash_utils.c
in mm/book3s64
1410 58
1241 56
1420 56
mpic.c
in kvm
1406 56
fadump.c
in kernel
1127 54
pci-common.c
in kernel
1119 54
time.c
in kernel
744 54
1545 51
numa.c
in mm
957 51
sstep.c
in lib
3109 50
dt_cpu_ftrs.c
in kernel
841 50
security.c
in kernel
618 50
low_i2c.c
in platforms/powermac
1127 49
sysfs.c
in kernel
871 49
pci.c
in platforms/4xx
1517 48
pfunc_core.c
in platforms/powermac
802 47
vio.c
in platforms/pseries
1114 46
radix_pgtable.c
in mm/book3s64
816 45
hv-24x7.c
in perf
1235 45
io.h
in include/asm
638 44
feature.c
in platforms/powermac
2478 43
pgtable.h
in include/asm/book3s/32
370 43
1115 43
iommu.c
in kernel
832 43
iommu.c
in platforms/pseries
1208 42
opal.c
in platforms/powernv
824 42
eeh.c
in kernel
1115 42
traps.c
in kernel
1559 41
plpar_wrappers.h
in include/asm
269 40
Files With Long Lines (Top 9)

There are 9 files with lines longer than 120 characters. In total, there are 12 long lines.

File# lines# units# long lines
S
651 - 3
ppc-opcode.h
in include/asm
581 - 2
math_efp.c
in math-emu
749 4 1
lpar.c
in platforms/pseries
1439 68 1
opal-fadump.c
in platforms/powernv
460 17 1
vas-window.c
in platforms/powernv
876 35 1
asm-prototypes.h
in include/asm
107 3 1
ppc-opc.c
in xmon
5453 - 1
eeh_driver.c
in kernel
744 27 1