Linux / Arch / Mips
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,351 files with 219,901 lines of code.
    • 30 very long files (56,604 lines of code)
    • 62 long files (41,464 lines of code)
    • 189 medium size files (56,729 lines of codeclsfd_ftr_w_mp_ins)
    • 230 small files (33,530 lines of code)
    • 840 very small files (31,574 lines of code)
25% | 18% | 25% | 15% | 14%
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
h34% | 17% | 21% | 10% | 16%
c20% | 17% | 29% | 18% | 13%
S0% | 39% | 27% | 19% | 13%
pl0% | 100% | 0% | 0% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
include35% | 18% | 20% | 9% | 15%
kernel32% | 19% | 24% | 15% | 8%
kvm68% | 0% | 22% | 6% | 2%
mm35% | 11% | 30% | 13% | 8%
math-emu35% | 0% | 11% | 31% | 21%
cavium-octeon19% | 26% | 32% | 15% | 5%
net46% | 49% | 0% | 3% | 0%
pci12% | 5% | 45% | 24% | 11%
alchemy0% | 62% | 19% | 11% | 6%
lib0% | 57% | 12% | 6% | 23%
bcm47xx0% | 61% | 23% | 0% | 14%
crypto0% | 50% | 35% | 14% | 0%
txx90% | 28% | 47% | 10% | 12%
loongson640% | 33% | 10% | 45% | 10%
bcm63xx0% | 21% | 42% | 22% | 13%
dec0% | 29% | 13% | 21% | 34%
ar70% | 35% | 37% | 18% | 7%
vr41xx0% | 37% | 13% | 19% | 29%
ath790% | 53% | 21% | 22% | 2%
boot0% | 35% | 32% | 0% | 32%
lantiq0% | 0% | 65% | 18% | 16%
sni0% | 0% | 85% | 7% | 7%
sibyte0% | 0% | 44% | 50% | 4%
sgi-ip220% | 0% | 52% | 23% | 24%
ath250% | 0% | 60% | 31% | 7%
sgi-ip270% | 0% | 33% | 36% | 30%
pic320% | 0% | 49% | 12% | 37%
mti-malta0% | 0% | 39% | 47% | 12%
jazz0% | 0% | 57% | 22% | 19%
sgi-ip320% | 0% | 42% | 27% | 29%
ralink0% | 0% | 20% | 43% | 36%
fw0% | 0% | 27% | 13% | 58%
loongson320% | 0% | 36% | 43% | 19%
rb5320% | 0% | 34% | 37% | 27%
sgi-ip300% | 0% | 38% | 17% | 44%
loongson2ef0% | 0% | 11% | 42% | 46%
vdso0% | 0% | 43% | 0% | 56%
tools0% | 0% | 72% | 0% | 27%
generic0% | 0% | 0% | 61% | 38%
bmips0% | 0% | 0% | 75% | 24%
n640% | 0% | 0% | 93% | 6%
cobalt0% | 0% | 0% | 0% | 100%
power0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cvmx-mio-defs.h
in include/asm/octeon
4232 -
cvmx-npei-defs.h
in include/asm/octeon
3788 -
cvmx-lmcx-defs.h
in include/asm/octeon
2838 4
cvmx-pip-defs.h
in include/asm/octeon
2610 -
cvmx-npi-defs.h
in include/asm/octeon
2447 -
vz.c
in kvm
2379 77
cp1emu.c
in math-emu
2348 15
octeon-irq.c
in cavium-octeon
2309 115
mipsregs.h
in include/asm
2258 10
cvmx-gmxx-defs.h
in include/asm/octeon
2177 29
cvmx-pko-defs.h
in include/asm/octeon
2119 -
cvmx-pci-defs.h
in include/asm/octeon
1949 -
tlbex.c
in mm
1929 50
1802 33
traps.c
in kernel
1780 65
cvmx-agl-defs.h
in include/asm/octeon
1656 -
cpu-probe.c
in kernel
1645 50
1607 38
cvmx-sriox-defs.h
in include/asm/octeon
1538 -
c-r4k.c
in mm
1455 66
cvmx-ipd-defs.h
in include/asm/octeon
1391 -
1335 39
1254 34
cvmx-fpa-defs.h
in include/asm/octeon
1200 -
mips.c
in kvm
1196 62
ar71xx_regs.h
in include/asm/mach-ath79
1107 -
emulate.c
in kvm
1094 26
unaligned.c
in kernel
1084 5
bcm63xx_regs.h
in include/asm/mach-bcm63xx
1044 -
ptrace.c
in kernel
1033 32
au1000.h
in include/asm/mach-au1x00
977 12
967 -
cvmx-pow-defs.h
in include/asm/octeon
947 -
bcm63xx_cpu.h
in include/asm/mach-bcm63xx
946 4
cvmx-pow.h
in include/asm/octeon
915 22
inst.h
in include/uapi/asm
900 -
octeon-platform.c
in cavium-octeon
886 24
cvmx-iob-defs.h
in include/asm/octeon
840 -
setup.c
in cavium-octeon
836 31
clock.c
in alchemy/common
819 36
cvmx-dpi-defs.h
in include/asm/octeon
813 1
db1200.c
in alchemy/devboards
772 24
setup.c
in txx9/generic
765 40
irq.c
in alchemy/common
765 33
cvmx-pcsx-defs.h
in include/asm/octeon
763 17
smp.c
in loongson64
748 33
board_bcm963xx.c
in bcm63xx/boards
742 4
unaligned-emul.h
in include/asm
735 -
731 18
cvmx-helper.c
in cavium-octeon/executive
719 20
Files With Most Units (Top 50)
File# lines# units
octeon-irq.c
in cavium-octeon
2309 115
vz.c
in kvm
2379 77
c-r4k.c
in mm
1455 66
traps.c
in kernel
1780 65
mips.c
in kvm
1196 62
pgtable.h
in include/asm
526 59
tlbex.c
in mm
1929 50
cpu-probe.c
in kernel
1645 50
gpio-au1000.h
in include/asm/mach-au1x00
381 42
setup.c
in txx9/generic
765 40
1335 39
1607 38
uasm.c
in mm
548 36
smp.c
in kernel
476 36
clock.c
in alchemy/common
819 36
1254 34
smp.c
in loongson64
748 33
icu.c
in vr41xx/common
564 33
1802 33
irq.c
in alchemy/common
765 33
ptrace.c
in kernel
1033 32
setup.c
in cavium-octeon
836 31
553 31
cvmx-gmxx-defs.h
in include/asm/octeon
2177 29
setup.c
in kernel
521 28
signal.c
in kernel
657 28
697 27
process.c
in kernel
619 27
emulate.c
in kvm
1094 26
smp.c
in cavium-octeon
361 25
au1000_dma.h
in include/asm/mach-au1x00
293 25
octeon-platform.c
in cavium-octeon
886 24
ath79.h
in include/asm/mach-ath79
137 24
clk.c
in bcm63xx
422 24
db1200.c
in alchemy/devboards
772 24
cvmx-fau.h
in include/asm/octeon
238 23
cvmx.h
in include/asm/octeon
278 23
303 23
jazzdma.c
in jazz
417 23
usb.c
in alchemy/common
506 23
358 22
cvmx-pow.h
in include/asm/octeon
915 22
hpet.c
in loongson64
199 22
vpe.c
in kernel
625 22
ip22-gio.c
in sgi-ip22
328 21
relocs.c
in boot/tools
517 21
ip32-irq.c
in sgi-ip32
327 21
smp-bmips.c
in kernel
446 21
kprobes.c
in kernel
334 21
cvmx-helper.c
in cavium-octeon/executive
719 20
Files With Long Lines (Top 20)

There are 20 files with lines longer than 120 characters. In total, there are 74 long lines.

File# lines# units# long lines
bcm1480_l2c.h
in include/asm/sibyte
88 - 13
cvmx-sriox-defs.h
in include/asm/octeon
1538 - 11
bcm1480_mc.h
in include/asm/sibyte
688 - 8
bonito64.h
in include/asm/mips-boards
282 - 5
irq.c
in sibyte/bcm1480
223 10 5
cvmx-lmcx-defs.h
in include/asm/octeon
2838 4 4
cvmx-ciu2-defs.h
in include/asm/octeon
19 - 4
cvmx-asxx-defs.h
in include/asm/octeon
510 - 4
cvmx-gmxx-defs.h
in include/asm/octeon
2177 29 4
cvmx-pemx-defs.h
in include/asm/octeon
600 - 3
cvmx-l2c.c
in cavium-octeon/executive
624 20 2
bcm1480_scd.h
in include/asm/sibyte
153 - 2
cvmx-pescx-defs.h
in include/asm/octeon
534 - 2
1254 34 1
jmr3927.h
in include/asm/txx9
106 - 1
pgtable-32.h
in include/asm
141 5 1
cvmx-uctlx-defs.h
in include/asm/octeon
344 - 1
cvmx-srxx-defs.h
in include/asm/octeon
105 - 1
cvmx-stxx-defs.h
in include/asm/octeon
284 - 1
ip27-klnuma.c
in sgi-ip27
84 5 1