Linux / Arch / Riscv
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 221 files with 22,482 lines of code.
    • 2 very long files (2,093 lines of code)
    • 6 long files (3,636 lines of code)
    • 20 medium size files (6,276 lines of codeclsfd_ftr_w_mp_ins)
    • 34 small files (4,809 lines of code)
    • 159 very small files (5,668 lines of code)
9% | 16% | 27% | 21% | 25%
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
c16% | 18% | 28% | 23% | 13%
h0% | 12% | 24% | 13% | 49%
S0% | 16% | 30% | 29% | 22%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
net69% | 25% | 0% | 4% | 0%
kvm0% | 53% | 11% | 20% | 14%
mm0% | 31% | 29% | 26% | 12%
kernel0% | 6% | 44% | 31% | 17%
include0% | 0% | 28% | 15% | 56%
lib0% | 0% | 35% | 17% | 47%
errata0% | 0% | 0% | 0% | 100%
boot0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
1062 27
1031 29
bpf_jit.h
in net
788 139
vcpu.c
in kvm
617 44
init.c
in mm
600 34
mmu.c
in kvm
580 33
S
entry.S
in kernel
536 -
515 10
pgtable.h
in include/asm
491 66
sbi.c
in kernel
459 40
asm-offsets.c
in kernel
438 1
S
head.S
in kernel
402 -
373 -
module.c
in kernel
343 23
cmpxchg.h
in include/asm
339 -
339 8
kgdb.c
in kernel
330 14
326 5
perf_event.c
in kernel
324 16
atomic.h
in include/asm
293 8
csr.h
in include/asm
261 -
kprobes.c
in kernel/probes
253 19
setup.c
in kernel
239 9
uaccess.h
in include/asm
221 3
fault.c
in mm
218 7
signal.c
in kernel
217 8
S
uaccess.S
in lib
208 -
ptrace.c
in kernel
202 11
193 -
traps.c
in kernel
192 11
smp.c
in kernel
188 17
vdso.c
in kernel
186 7
184 17
S
mcount-dyn.S
in kernel
180 -
178 12
parse_asm.h
in include/asm
174 -
173 10
kvm_host.h
in include/asm
171 3
sbi.h
in include/asm
152 6
150 4
150 8
ftrace.c
in kernel
143 12
vcpu_fp.c
in kvm
142 8
cacheinfo.c
in kernel
136 7
smpboot.c
in kernel
135 7
132 4
simulate-insn.c
in kernel/probes
132 6
ptrace.h
in include/asm
126 11
126 -
uprobes.c
in kernel/probes
125 13
Files With Most Units (Top 50)
File# lines# units
bpf_jit.h
in net
788 139
pgtable.h
in include/asm
491 66
vcpu.c
in kvm
617 44
sbi.c
in kernel
459 40
init.c
in mm
600 34
mmu.c
in kvm
580 33
1031 29
1062 27
module.c
in kernel
343 23
kprobes.c
in kernel/probes
253 19
184 17
smp.c
in kernel
188 17
perf_event.c
in kernel
324 16
kgdb.c
in kernel
330 14
uprobes.c
in kernel/probes
125 13
178 12
ftrace.c
in kernel
143 12
ptrace.h
in include/asm
126 11
ptrace.c
in kernel
202 11
traps.c
in kernel
192 11
515 10
173 10
spinlock.h
in include/asm
100 9
bitops.h
in include/asm
96 9
timex.h
in include/asm
66 9
setup.c
in kernel
239 9
pgtable-64.h
in include/asm
60 8
mmio.h
in include/asm
95 8
atomic.h
in include/asm
293 8
main.c
in kvm
90 8
vcpu_fp.c
in kvm
142 8
150 8
79 8
339 8
cpu_ops_sbi.c
in kernel
89 8
stacktrace.c
in kernel
113 8
signal.c
in kernel
217 8
switch_to.h
in include/asm
66 7
irqflags.h
in include/asm
33 7
syscall.h
in include/asm
51 7
set_memory.h
in include/asm
45 7
fault.c
in mm
218 7
process.c
in kernel
113 7
smpboot.c
in kernel
135 7
vdso.c
in kernel
186 7
cacheinfo.c
in kernel
136 7
smp.h
in include/asm
60 6
sbi.h
in include/asm
152 6
simulate-insn.c
in kernel/probes
132 6
patch.c
in kernel
95 6
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