Linux / Arch / Sh
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 607 files with 63,007 lines of code.
    • 3 very long files (3,436 lines of code)
    • 15 long files (9,107 lines of code)
    • 69 medium size files (21,055 lines of codeclsfd_ftr_w_mp_ins)
    • 104 small files (14,047 lines of code)
    • 416 very small files (15,362 lines of code)
5% | 14% | 33% | 22% | 24%
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
c7% | 18% | 36% | 20% | 17%
S0% | 15% | 47% | 21% | 16%
h0% | 0% | 14% | 30% | 54%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
kernel8% | 19% | 45% | 14% | 12%
boards10% | 16% | 20% | 29% | 23%
lib0% | 28% | 38% | 20% | 13%
mm0% | 15% | 30% | 20% | 33%
drivers0% | 0% | 47% | 38% | 14%
include0% | 0% | 11% | 31% | 57%
math-emu0% | 0% | 87% | 0% | 12%
boot0% | 0% | 0% | 53% | 46%
cchips0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
setup.c
in boards/mach-ecovec24
1223 13
setup-sh7757.c
in kernel/cpu/sh4a
1109 7
setup-sh7724.c
in kernel/cpu/sh4a
1104 7
softfloat.c
in kernel/cpu/sh4
793 33
setup.c
in boards/mach-se/7724
785 5
dwarf.c
in kernel
731 16
setup-sh7786.c
in kernel/cpu/sh4a
701 8
627 -
setup-sh7722.c
in kernel/cpu/sh4a
587 4
traps_32.c
in kernel
570 13
566 -
pmb.c
in mm
565 33
setup-sh7723.c
in kernel/cpu/sh4a
548 4
disassemble.c
in kernel
540 2
setup.c
in boards/mach-migor
536 5
setup.c
in boards/mach-kfr2r09
530 8
setup-sh7734.c
in kernel/cpu/sh4a
525 5
setup-sh7785.c
in kernel/cpu/sh4a
503 7
494 7
setup-sh7269.c
in kernel/cpu/sh2a
488 4
setup-sh7770.c
in kernel/cpu/sh4a
482 6
setup-sh7264.c
in kernel/cpu/sh2a
473 5
setup.c
in boards/mach-ap325rxa
468 6
fpu.c
in kernel/cpu/sh2a
458 12
S
entry.S
in kernel/cpu/sh3
450 -
pcie-sh7786.h
in drivers/pci
447 -
setup-sh7780.c
in kernel/cpu/sh4a
413 6
math.c
in math-emu
412 18
pcie-sh7786.c
in drivers/pci
403 13
ptrace_32.c
in kernel
390 18
setup-sh7343.c
in kernel/cpu/sh4a
384 3
setup-sh7763.c
in kernel/cpu/sh4a
380 6
S
368 -
355 -
S
entry.S
in kernel/cpu/sh2
354 -
signal_32.c
in kernel
348 8
S
344 -
smp.c
in kernel
344 35
fpu.c
in kernel/cpu/sh4
333 6
setup-sh7366.c
in kernel/cpu/sh4a
333 4
setup-shx3.c
in kernel/cpu/sh4a
331 7
setup-sh7201.c
in kernel/cpu/sh2a
329 4
setup.c
in boards/mach-highlander
327 7
S
head_32.S
in kernel
324 -
fault.c
in mm
319 5
318 6
S
sleep.S
in kernel/cpu/shmobile
318 -
dwarf.h
in include/asm
315 4
kprobes.c
in kernel
308 19
setup-sh7203.c
in kernel/cpu/sh2a
297 4
Files With Most Units (Top 50)
File# lines# units
smp.c
in kernel
344 35
pmb.c
in mm
565 33
softfloat.c
in kernel/cpu/sh4
793 33
dma-sh.c
in drivers/dma
269 22
iomap.c
in kernel
127 22
cache.c
in mm
272 20
kprobes.c
in kernel
308 19
math.c
in math-emu
412 18
ptrace_32.c
in kernel
390 18
perf_event.c
in kernel
238 17
dma-api.c
in drivers/dma
291 16
of-generic.c
in boards
131 16
dwarf.c
in kernel
731 16
nommu.c
in mm
71 15
init.c
in mm
292 14
140 14
ftrace.c
in kernel
198 14
sq.c
in kernel/cpu/sh4
276 14
pcie-sh7786.c
in drivers/pci
403 13
io_noioport.h
in include/asm
69 13
setup.c
in boards/mach-ecovec24
1223 13
traps_32.c
in kernel
570 13
setup-sh7750.c
in kernel/cpu/sh4
291 12
fpu.c
in kernel/cpu/sh2a
458 12
254 12
207 11
220 11
spinlock-cas.h
in include/asm
57 10
sh_bios.c
in kernel
108 10
irq.c
in kernel
160 10
init.c
in kernel/cpu
214 10
reboot.c
in kernel
71 10
kgdb.c
in kernel
253 10
dma-sysfs.c
in drivers/dma
124 9
watchdog.h
in include/asm
64 9
spinlock-llsc.h
in include/asm
148 9
ptrace.h
in include/asm
83 9
checksum_32.h
in include/asm
130 9
lcd_wqvga.c
in boards/mach-kfr2r09
173 9
setup.c
in boards/mach-sdk7786
185 9
smp-shx3.c
in kernel/cpu/sh4a
105 9
setup.c
in kernel
247 9
setup.c
in boards/mach-kfr2r09
530 8
110 8
signal_32.c
in kernel
348 8
clock-sh4-202.c
in kernel/cpu/sh4
117 8
ubc.c
in kernel/cpu/sh4a
88 8
setup-sh7786.c
in kernel/cpu/sh4a
701 8
push-switch.c
in drivers
102 7
dmabrg.c
in drivers/dma
114 7
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there is only one long line.

File# lines# units# long lines
barrier.h
in include/asm
21 - 1