Linux / Arch / Openrisc
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 82 files with 7,045 lines of code.
    • 2 very long files (2,482 lines of code)
    • 0 long files (0 lines of code)
    • 5 medium size files (1,489 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (1,004 lines of code)
    • 68 very small files (2,070 lines of code)
35% | 0% | 21% | 14% | 29%
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
S90% | 0% | 0% | 0% | 9%
c0% | 0% | 37% | 24% | 37%
h0% | 0% | 31% | 21% | 47%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
kernel57% | 0% | 20% | 7% | 15%
include0% | 0% | 31% | 21% | 47%
mm0% | 0% | 0% | 58% | 41%
lib0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
S
head.S
in kernel
1463 -
S
entry.S
in kernel
1019 -
spr_defs.h
in include/asm
393 -
traps.c
in kernel
358 14
setup.c
in kernel
290 10
smp.c
in kernel
229 27
pgtable.h
in include/asm
219 22
uaccess.h
in include/asm
190 2
signal.c
in kernel
182 6
fault.c
in mm
151 1
process.c
in kernel
136 10
cmpxchg.h
in include/asm
124 6
init.c
in mm
118 4
atomic.h
in include/asm
103 1
ptrace.c
in kernel
100 6
atomic.h
in include/asm/bitops
99 6
tlb.c
in mm
95 8
time.c
in kernel
95 9
futex.h
in include/asm
89 -
S
string.S
in lib
87 -
S
vmlinux.lds.S
in kernel
85 -
memcpy.c
in lib
78 -
S
memset.S
in lib
77 -
dma.c
in kernel
71 2
ptrace.h
in include/asm
70 1
66 1
stacktrace.c
in kernel
65 2
thread_info.h
in include/asm
56 -
sync-timer.c
in kernel
55 2
unwinder.c
in kernel
51 3
page.h
in include/asm
48 -
module.c
in kernel
46 1
pgalloc.h
in include/asm
42 1
syscall.h
in include/asm
42 1
delay.c
in lib
36 5
tlbflush.h
in include/asm
35 2
cache.c
in mm
33 4
cacheflush.h
in include/asm
32 2
asm-offsets.c
in kernel
31 1
processor.h
in include/asm
29 -
fixmap.h
in include/asm
28 2
or32_ksyms.c
in kernel
28 -
bitops.h
in include/asm
23 -
spr.h
in include/asm
22 2
elf.h
in include/uapi/asm
21 -
irq.c
in kernel
21 3
cpuinfo.h
in include/asm
15 -
fls.h
in include/asm/bitops
15 1
ffs.h
in include/asm/bitops
15 1
__fls.h
in include/asm/bitops
15 1
Files With Most Units (Top 38)
File# lines# units
smp.c
in kernel
229 27
pgtable.h
in include/asm
219 22
traps.c
in kernel
358 14
process.c
in kernel
136 10
setup.c
in kernel
290 10
time.c
in kernel
95 9
tlb.c
in mm
95 8
cmpxchg.h
in include/asm
124 6
atomic.h
in include/asm/bitops
99 6
ptrace.c
in kernel
100 6
signal.c
in kernel
182 6
delay.c
in lib
36 5
init.c
in mm
118 4
cache.c
in mm
33 4
irq.c
in kernel
21 3
unwinder.c
in kernel
51 3
cacheflush.h
in include/asm
32 2
tlbflush.h
in include/asm
35 2
uaccess.h
in include/asm
190 2
fixmap.h
in include/asm
28 2
spr.h
in include/asm
22 2
sync-timer.c
in kernel
55 2
dma.c
in kernel
71 2
stacktrace.c
in kernel
65 2
pgalloc.h
in include/asm
42 1
fls.h
in include/asm/bitops
15 1
ffs.h
in include/asm/bitops
15 1
__fls.h
in include/asm/bitops
15 1
__ffs.h
in include/asm/bitops
15 1
timex.h
in include/asm
13 1
ptrace.h
in include/asm
70 1
syscall.h
in include/asm
42 1
atomic.h
in include/asm
103 1
66 1
fault.c
in mm
151 1
asm-offsets.c
in kernel
31 1
module.c
in kernel
46 1
prom.c
in kernel
10 1
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there is only one long line.

File# lines# units# long lines
processor.h
in include/asm
29 - 1