Linux / Arch / Xtensa
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 173 files with 19,814 lines of code.
    • 1 very long files (1,722 lines of code)
    • 3 long files (1,715 lines of code)
    • 23 medium size files (7,320 lines of codeclsfd_ftr_w_mp_ins)
    • 31 small files (4,769 lines of code)
    • 115 very small files (4,288 lines of code)
8% | 8% | 36% | 24% | 21%
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
S28% | 20% | 36% | 11% | 3%
c0% | 7% | 50% | 28% | 12%
h0% | 0% | 25% | 30% | 44%
ld0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
kernel21% | 15% | 43% | 12% | 7%
lib0% | 29% | 34% | 35% | 0%
variants0% | 0% | 69% | 4% | 25%
platforms0% | 0% | 60% | 16% | 22%
mm0% | 0% | 42% | 40% | 17%
include0% | 0% | 4% | 44% | 50%
boot0% | 0% | 0% | 47% | 52%
Longest Files (Top 50)
File# lines# units
S
entry.S
in kernel
1722 -
S
vectors.S
in kernel
672 -
S
memcopy.S
in lib
524 -
setup.c
in kernel
519 17
network.c
in platforms/iss
473 22
smp.c
in kernel
461 48
ptrace.c
in kernel
457 19
S
align.S
in kernel
401 -
core.h
in variants/de212/include/variant
397 -
core.h
in variants/csp/include/variant
384 -
traps.c
in kernel
369 14
perf_event.c
in kernel
343 20
S
330 -
S
vmlinux.lds.S
in kernel
322 -
signal.c
in kernel
319 4
S
misc.S
in mm
308 -
S
head.S
in kernel
307 -
core.h
in variants/dc233c/include/variant
300 -
simdisk.c
in platforms/iss
292 13
S
283 -
core.h
in variants/dc232b/include/variant
273 -
236 16
pgtable.h
in include/asm
233 13
tlb.c
in mm
215 12
core.h
in variants/fsf/include/variant
210 -
S
coprocessor.S
in kernel
204 -
setup.c
in platforms/xtfpga
203 8
atomic.h
in include/asm
199 -
199 -
S
bootstrap.S
in boot/boot-redboot
198 -
uaccess.h
in include/asm
191 2
cache.c
in mm
187 8
process.c
in kernel
186 8
stacktrace.c
in kernel
177 8
termbits.h
in include/uapi/asm
176 -
checksum.h
in include/asm
174 9
168 1
time.c
in kernel
166 12
cmpxchg.h
in include/asm
163 3
asmmacro.h
in include/asm
163 -
fault.c
in mm
161 1
console.c
in platforms/iss
159 14
initialize_mmu.h
in include/asm
158 -
init.c
in mm
152 6
module.c
in kernel
151 1
irq.c
in kernel
150 8
bitops.h
in include/asm
147 6
futex.h
in include/asm
143 1
S
memset.S
in lib
141 -
processor.h
in include/asm
140 3
Files With Most Units (Top 50)
File# lines# units
smp.c
in kernel
461 48
network.c
in platforms/iss
473 22
perf_event.c
in kernel
343 20
tlbflush.h
in include/asm
136 19
ptrace.c
in kernel
457 19
setup.c
in kernel
519 17
236 16
console.c
in platforms/iss
159 14
traps.c
in kernel
369 14
simdisk.c
in platforms/iss
292 13
pgtable.h
in include/asm
233 13
tlb.c
in mm
215 12
time.c
in kernel
166 12
simcall.h
in platforms/iss/include/platform
84 11
checksum.h
in include/asm
174 9
setup.c
in platforms/xt2000
111 8
setup.c
in platforms/xtfpga
203 8
mmu_context.h
in include/asm
93 8
cache.c
in mm
187 8
process.c
in kernel
186 8
irq.c
in kernel
150 8
stacktrace.c
in kernel
177 8
irqflags.h
in include/asm
62 7
syscall.h
in include/asm
52 7
bitops.h
in include/asm
147 6
init.c
in mm
152 6
33 6
lcd.c
in platforms/xtfpga
65 5
cacheflush.h
in include/asm
109 5
highmem.h
in include/asm
55 5
delay.h
in include/asm
45 5
setup.c
in platforms/iss
56 4
timex.h
in include/asm
39 4
mmu.c
in mm
75 4
pci-dma.c
in kernel
69 4
79 4
jump_label.c
in kernel
78 4
signal.c
in kernel
319 4
lcd.h
in platforms/xtfpga/include/platform
18 3
processor.h
in include/asm
140 3
cmpxchg.h
in include/asm
163 3
68 3
85 3
syscall.c
in kernel
62 3
zmem.c
in boot/lib
60 2
swab.h
in include/uapi/asm
33 2
page.h
in include/asm
111 2
nommu_context.h
in include/asm
7 2
jump_label.h
in include/asm
42 2
pgalloc.h
in include/asm
43 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