Linux / Arch / Csky
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 156 files with 10,567 lines of code.
    • 1 very long files (1,066 lines of code)
    • 0 long files (0 lines of code)
    • 10 medium size files (2,725 lines of codeclsfd_ftr_w_mp_ins)
    • 19 small files (2,795 lines of code)
    • 126 very small files (3,981 lines of code)
10% | 0% | 25% | 26% | 37%
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
c18% | 0% | 33% | 25% | 22%
S0% | 0% | 32% | 32% | 35%
h0% | 0% | 8% | 24% | 67%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
kernel24% | 0% | 38% | 12% | 24%
abiv10% | 0% | 53% | 13% | 33%
abiv20% | 0% | 26% | 37% | 36%
mm0% | 0% | 0% | 67% | 32%
include0% | 0% | 0% | 24% | 75%
lib0% | 0% | 0% | 83% | 16%
Longest Files (Top 50)
File# lines# units
perf_event.c
in kernel
1066 77
ptrace.c
in kernel
396 21
S
memcpy.S
in abiv1
317 -
simulate-insn.c
in kernel/probes
306 2
kprobes.c
in kernel/probes
279 22
alignment.c
in abiv1
253 10
entry.h
in abiv2/inc/abi
250 -
smp.c
in kernel
248 20
S
entry.S
in kernel
242 -
fpu.c
in abiv2
220 4
traps.c
in kernel
214 12
fault.c
in mm
200 10
pgtable.h
in include/asm
197 18
191 2
uaccess.h
in include/asm
186 3
S
mcount.S
in abiv2
181 -
signal.c
in kernel
171 7
tlb.c
in mm
162 6
init.c
in mm
155 7
ftrace.c
in kernel
153 12
S
strcmp.S
in abiv2
146 -
entry.h
in abiv1/inc/abi
140 -
S
memcmp.S
in abiv2
130 -
stacktrace.c
in kernel
125 10
tcm.c
in mm
123 3
ckmmu.h
in abiv2/inc/abi
114 17
108 14
uprobes.c
in kernel/probes
106 12
S
strcpy.S
in abiv2
104 -
futex.h
in include/asm
103 -
setup.c
in kernel
96 4
S
memmove.S
in abiv2
94 -
asid.c
in mm
94 5
S
vmlinux.lds.S
in kernel
94 -
93 11
S
memcpy.S
in abiv2
92 -
gettimeofday.h
in include/asm/vdso
90 6
S
strlen.S
in abiv2
83 -
module.c
in kernel
80 3
process.c
in kernel
79 5
vdso.c
in kernel
78 2
ckmmu.h
in abiv1/inc/abi
77 17
74 5
S
memset.S
in abiv2
73 -
thread_info.h
in include/asm
72 -
cmpxchg.h
in include/asm
69 -
ptrace.h
in include/asm
69 9
spinlock.h
in include/asm
68 6
asm-offsets.c
in kernel
67 1
66 5
Files With Most Units (Top 50)
File# lines# units
perf_event.c
in kernel
1066 77
kprobes.c
in kernel/probes
279 22
ptrace.c
in kernel
396 21
smp.c
in kernel
248 20
pgtable.h
in include/asm
197 18
ckmmu.h
in abiv2/inc/abi
114 17
ckmmu.h
in abiv1/inc/abi
77 17
108 14
ftrace.c
in kernel
153 12
uprobes.c
in kernel/probes
106 12
traps.c
in kernel
214 12
93 11
fault.c
in mm
200 10
stacktrace.c
in kernel
125 10
alignment.c
in abiv1
253 10
ptrace.h
in include/asm
69 9
init.c
in mm
155 7
signal.c
in kernel
171 7
spinlock.h
in include/asm
68 6
gettimeofday.h
in include/asm/vdso
90 6
irqflags.h
in include/asm
38 6
tlb.c
in mm
162 6
74 5
asid.c
in mm
94 5
process.c
in kernel
79 5
66 5
bitops.h
in include/asm
51 4
fpu.c
in abiv2
220 4
delay.c
in lib
31 4
vgettimeofday.c
in kernel/vdso
22 4
setup.c
in kernel
96 4
perf_regs.c
in kernel
29 4
uaccess.h
in include/asm
186 3
cacheflush.c
in abiv2
57 3
tcm.c
in mm
123 3
33 3
module.c
in kernel
80 3
power.c
in kernel
23 3
cpu-probe.c
in kernel
55 3
page.h
in abiv1/inc/abi
21 3
cacheflush.h
in abiv1/inc/abi
45 3
cacheflush.c
in abiv1
51 3
pgalloc.h
in include/asm
56 2
switch_to.h
in include/asm
26 2
pci.h
in include/asm
21 2
checksum.h
in include/asm
40 2
page.h
in abiv2/inc/abi
10 2
reg_ops.h
in abiv2/inc/abi
12 2
191 2
28 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