Linux / Arch / Arm64
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 493 files with 88,378 lines of code.
    • 10 very long files (14,469 lines of code)
    • 41 long files (29,035 lines of code)
    • 73 medium size files (21,230 lines of codeclsfd_ftr_w_mp_ins)
    • 89 small files (12,864 lines of code)
    • 280 very small files (10,780 lines of code)
16% | 32% | 24% | 14% | 12%
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
c27% | 30% | 24% | 11% | 7%
h4% | 35% | 21% | 18% | 21%
S0% | 35% | 27% | 22% | 14%
pl0% | 60% | 39% | 0% | 0%
awk0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
kvm26% | 33% | 22% | 11% | 5%
kernel20% | 28% | 27% | 11% | 11%
lib30% | 0% | 18% | 32% | 18%
mm23% | 13% | 45% | 7% | 9%
include6% | 15% | 27% | 21% | 29%
boot0% | 100% | 0% | 0% | 0%
crypto0% | 46% | 24% | 23% | 6%
net0% | 86% | 0% | 13% | 0%
xen0% | 0% | 0% | 100% | 0%
hyperv0% | 0% | 0% | 0% | 100%
tools0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cpufeature.c
in kernel
2239 89
2051 117
vgic-its.c
in kvm/vgic
1889 87
ptrace.c
in kernel
1494 69
arm.c
in kvm
1447 96
insn.c
in lib
1173 48
mmu.c
in mm
1074 59
mmu.c
in kvm
1053 59
perf_event.c
in kernel
1036 75
sysreg.h
in include/asm
1013 -
983 66
imx8ulp-pinfunc.h
in boot/dts/freescale
967 -
pgtable.c
in kvm/hyp
916 60
mt2712-pinfunc.h
in boot/dts/mediatek
905 -
890 20
878 -
S
entry.S
in kernel
876 -
unistd32.h
in include/asm
853 -
vgic-v3-sr.c
in kvm/hyp
853 56
fpsimd.c
in kernel
821 70
aes-glue.c
in crypto
810 30
vgic-mmio-v3.c
in kvm/vgic
796 40
S
head.S
in kernel
794 -
traps.c
in kernel
793 57
imx8mp-pinfunc.h
in boot/dts/freescale
788 -
guest.c
in kvm
775 37
vgic-mmio.c
in kvm/vgic
762 50
699 -
697 26
smp.c
in kernel
682 44
pgtable.h
in include/asm
678 72
signal.c
in kernel
658 21
649 39
imx8mn-pinfunc.h
in boot/dts/freescale
634 -
imx8mm-pinfunc.h
in boot/dts/freescale
633 -
632 13
S
aes-modes.S
in crypto
631 -
S
631 -
624 62
fault.c
in mm
616 34
mt8167-pinfunc.h
in boot/dts/mediatek
613 -
imx8mq-pinfunc.h
in boot/dts/freescale
610 -
vgic.c
in kvm/vgic
599 37
mem_protect.c
in kvm/hyp/nvhe
592 47
581 21
mt8516-pinfunc.h
in boot/dts/mediatek
538 -
mt8173-pinfunc.h
in boot/dts/mediatek
531 -
kvm_host.h
in include/asm
521 14
assembler.h
in include/asm
514 -
vgic-v3.c
in kvm/vgic
509 23
Files With Most Units (Top 50)
File# lines# units
2051 117
arm.c
in kvm
1447 96
cpufeature.c
in kernel
2239 89
vgic-its.c
in kvm/vgic
1889 87
perf_event.c
in kernel
1036 75
pgtable.h
in include/asm
678 72
fpsimd.c
in kernel
821 70
ptrace.c
in kernel
1494 69
983 66
624 62
pgtable.c
in kvm/hyp
916 60
mmu.c
in kvm
1053 59
mmu.c
in mm
1074 59
traps.c
in kernel
793 57
vgic-v3-sr.c
in kvm/hyp
853 56
vgic-mmio.c
in kvm/vgic
762 50
insn.c
in lib
1173 48
kvm_emulate.h
in include/asm
352 47
mem_protect.c
in kvm/hyp/nvhe
592 47
smp.c
in kernel
682 44
cpufeature.h
in include/asm
442 43
proton-pack.c
in kernel
503 41
vgic-mmio-v3.c
in kvm/vgic
796 40
649 39
vgic.c
in kvm/vgic
599 37
guest.c
in kvm
775 37
316 36
fault.c
in mm
616 34
process.c
in kernel
437 31
aes-glue.c
in crypto
810 30
fpsimd.h
in include/asm
173 27
hyp-main.c
in kvm/hyp/nvhe
205 26
697 26
vgic-v3.c
in kvm/vgic
509 23
sys_regs.c
in kvm/hyp/nvhe
287 23
mte.c
in kernel
328 22
581 21
signal.c
in kernel
658 21
890 20
psci.c
in kvm
383 20
switch.h
in kvm/hyp/include/hyp
317 20
358 20
kprobes.c
in kernel/probes
297 20
473 20
uaccess.h
in include/asm
329 19
vgic-v2.c
in kvm/vgic
334 19
vgic-init.c
in kvm/vgic
346 18
vgic-mmio-v2.c
in kvm/vgic
422 18
arch_gicv3.h
in include/asm
118 17
396 16
Files With Long Lines (Top 3)

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

File# lines# units# long lines
cpufeature.c
in kernel
2239 89 11
pgtable-prot.h
in include/asm
73 - 1
170 - 1