Linux / Arch / Arc
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 146 files with 14,789 lines of code.
    • 1 very long files (1,125 lines of code)
    • 3 long files (1,869 lines of code)
    • 15 medium size files (4,400 lines of codeclsfd_ftr_w_mp_ins)
    • 28 small files (3,909 lines of code)
    • 99 very small files (3,486 lines of code)
7% | 12% | 29% | 26% | 23%
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
c14% | 17% | 39% | 15% | 12%
h0% | 11% | 10% | 35% | 42%
S0% | 0% | 36% | 42% | 20%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
kernel16% | 9% | 44% | 18% | 11%
mm0% | 37% | 38% | 12% | 10%
include0% | 11% | 10% | 35% | 42%
plat-axs10x0% | 0% | 100% | 0% | 0%
lib0% | 0% | 0% | 56% | 43%
plat-hsdk0% | 0% | 0% | 100% | 0%
plat-sim0% | 0% | 0% | 0% | 100%
plat-tb10x0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
unwind.c
in kernel
1125 16
cache.c
in mm
707 44
perf_event.c
in kernel
602 24
uaccess.h
in include/asm
560 3
setup.c
in kernel
493 16
disasm.c
in kernel
424 4
tlb.c
in mm
420 30
S
314 -
S
tlbex.S
in mm
310 -
S
entry.S
in kernel
273 -
arcregs.h
in include/asm
272 2
kprobes.c
in kernel
260 19
mcip.c
in kernel
254 17
signal.c
in kernel
252 7
smp.c
in kernel
237 21
spinlock.h
in include/asm
233 18
axs10x.c
in plat-axs10x
229 5
ptrace.c
in kernel
223 8
unaligned.c
in kernel
206 3
S
entry-arcv2.S
in kernel
196 -
185 -
atomic64-arcv2.h
in include/asm
176 5
platform.c
in plat-hsdk
173 5
entry.h
in include/asm
169 -
169 7
io.h
in include/asm
168 7
entry-arcv2.h
in include/asm
159 -
kgdb.c
in kernel
154 14
process.c
in kernel
147 6
S
memcmp.S
in lib
146 -
stacktrace.c
in kernel
145 10
S
head.S
in kernel
144 -
futex.h
in include/asm
137 1
unwind.h
in include/asm
130 4
entry-compact.h
in include/asm
130 -
S
vmlinux.lds.S
in kernel
129 -
fault.c
in mm
125 2
123 -
121 -
irqflags-compact.h
in include/asm
119 7
bitops.h
in include/asm
118 9
init.c
in mm
118 8
intc-arcv2.c
in kernel
112 5
cmpxchg.h
in include/asm
107 -
irqflags-arcv2.h
in include/asm
103 9
ptrace.h
in include/asm
103 2
dsp-impl.h
in include/asm
103 4
jump_label.c
in kernel
100 7
pgtable-levels.h
in include/asm
98 -
module.c
in kernel
98 5
Files With Most Units (Top 50)
File# lines# units
cache.c
in mm
707 44
tlb.c
in mm
420 30
perf_event.c
in kernel
602 24
smp.c
in kernel
237 21
kprobes.c
in kernel
260 19
spinlock.h
in include/asm
233 18
mcip.c
in kernel
254 17
unwind.c
in kernel
1125 16
setup.c
in kernel
493 16
kgdb.c
in kernel
154 14
stacktrace.c
in kernel
145 10
bitops.h
in include/asm
118 9
irqflags-arcv2.h
in include/asm
103 9
init.c
in mm
118 8
ptrace.c
in kernel
223 8
io.h
in include/asm
168 7
irqflags-compact.h
in include/asm
119 7
traps.c
in kernel
86 7
jump_label.c
in kernel
100 7
signal.c
in kernel
252 7
169 7
process.c
in kernel
147 6
atomic64-arcv2.h
in include/asm
176 5
platform.c
in plat-hsdk
173 5
axs10x.c
in plat-axs10x
229 5
module.c
in kernel
98 5
intc-arcv2.c
in kernel
112 5
84 5
unwind.h
in include/asm
130 4
dsp-impl.h
in include/asm
103 4
hugepage.h
in include/asm
43 4
dma.c
in mm
46 4
disasm.c
in kernel
424 4
pgalloc.h
in include/asm
44 3
uaccess.h
in include/asm
560 3
mmu_context.h
in include/asm
57 3
mmu-arcv2.h
in include/asm
67 3
fpu.c
in kernel
41 3
38 3
reset.c
in kernel
19 3
unaligned.c
in kernel
206 3
jump_label.h
in include/asm
42 2
arcregs.h
in include/asm
272 2
fb.h
in include/asm
15 2
disasm.h
in include/asm
86 2
ptrace.h
in include/asm
103 2
pgtable-bits-arcv2.h
in include/asm
88 2
delay.h
in include/asm
26 2
21 2
65 2
Files With Long Lines (Top 0)

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

File# lines# units# long lines