Linux / Arch / Hexagon
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 103 files with 7,043 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (521 lines of code)
    • 6 medium size files (1,765 lines of codeclsfd_ftr_w_mp_ins)
    • 16 small files (2,342 lines of code)
    • 80 very small files (2,415 lines of code)
0% | 7% | 25% | 33% | 34%
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
S0% | 20% | 41% | 13% | 24%
h0% | 0% | 18% | 40% | 41%
c0% | 0% | 13% | 48% | 37%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lib0% | 43% | 23% | 10% | 22%
kernel0% | 0% | 37% | 36% | 26%
include0% | 0% | 18% | 40% | 41%
mm0% | 0% | 0% | 38% | 61%
Longest Files (Top 50)
File# lines# units
S
memcpy.S
in lib
521 -
411 -
S
vm_entry.S
in kernel
353 -
traps.c
in kernel
303 16
S
memset.S
in lib
290 -
io.h
in include/asm
207 22
pgtable.h
in include/asm
201 22
registers.h
in include/uapi/asm
189 -
S
head.S
in kernel
189 -
hexagon_vm.h
in include/asm
185 18
signal.c
in kernel
176 6
164 -
bitops.h
in include/asm
157 18
smp.c
in kernel
156 15
time.c
in kernel
146 10
kgdb.c
in kernel
137 7
elf.h
in include/asm
136 -
ptrace.c
in kernel
127 6
126 4
atomic.h
in include/asm
118 3
spinlock.h
in include/asm
116 9
114 4
module.c
in kernel
106 2
init.c
in mm
97 5
process.c
in kernel
97 7
cache.c
in mm
93 6
92 -
futex.h
in include/asm
90 1
setup.c
in kernel
80 4
page.h
in include/asm
77 1
S
vm_switch.S
in kernel
75 -
72 -
vm_events.c
in kernel
70 3
processor.h
in include/asm
69 -
S
vm_ops.S
in kernel
69 -
asm-offsets.c
in kernel
68 1
S
divsi3.S
in lib
65 -
thread_info.h
in include/asm
62 -
user.h
in include/uapi/asm
59 -
S
vmlinux.lds.S
in kernel
54 -
52 -
vdso.c
in kernel
52 2
pgalloc.h
in include/asm
45 2
vm_mmu.h
in include/asm
44 -
S
modsi3.S
in lib
44 -
io.c
in lib
41 4
cmpxchg.h
in include/asm
40 1
mem-layout.h
in include/asm
39 -
irq_cpu.c
in kernel
39 6
syscall.h
in include/asm
36 5
Files With Most Units (Top 41)
File# lines# units
pgtable.h
in include/asm
201 22
io.h
in include/asm
207 22
bitops.h
in include/asm
157 18
hexagon_vm.h
in include/asm
185 18
traps.c
in kernel
303 16
smp.c
in kernel
156 15
time.c
in kernel
146 10
spinlock.h
in include/asm
116 9
irqflags.h
in include/asm
33 7
process.c
in kernel
97 7
kgdb.c
in kernel
137 7
34 6
cache.c
in mm
93 6
ptrace.c
in kernel
127 6
irq_cpu.c
in kernel
39 6
signal.c
in kernel
176 6
syscall.h
in include/asm
36 5
init.c
in mm
97 5
io.c
in lib
41 4
126 4
114 4
setup.c
in kernel
80 4
atomic.h
in include/asm
118 3
vm_events.c
in kernel
70 3
reset.c
in kernel
15 3
pgalloc.h
in include/asm
45 2
mmu_context.h
in include/asm
29 2
24 2
module.c
in kernel
106 2
vdso.c
in kernel
52 2
dma.c
in kernel
30 2
page.h
in include/asm
77 1
cacheflush.h
in include/asm
23 1
cmpxchg.h
in include/asm
40 1
futex.h
in include/asm
90 1
kgdb.h
in include/asm
13 1
timex.h
in include/asm
12 1
suspend.h
in include/asm
7 1
26 1
asm-offsets.c
in kernel
68 1
stacktrace.c
in kernel
32 1
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