Linux / Samples
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 172 files with 26,848 lines of code.
    • 4 very long files (5,393 lines of code)
    • 4 long files (2,609 lines of code)
    • 23 medium size files (7,254 lines of codeclsfd_ftr_w_mp_ins)
    • 43 small files (6,294 lines of code)
    • 98 very small files (5,298 lines of code)
20% | 9% | 27% | 23% | 19%
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
c20% | 10% | 27% | 22% | 19%
h0% | 0% | 18% | 54% | 27%
ld0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
bpf18% | 8% | 25% | 26% | 20%
vfio-mdev73% | 20% | 0% | 5% | <1%
v4l0% | 100% | 0% | 0% | 0%
qmi0% | 0% | 100% | 0% | 0%
nitro_enclaves0% | 0% | 100% | 0% | 0%
seccomp0% | 0% | 56% | 18% | 25%
mei0% | 0% | 100% | 0% | 0%
uhid0% | 0% | 100% | 0% | 0%
configfs0% | 0% | 100% | 0% | 0%
timers0% | 0% | 100% | 0% | 0%
vfs0% | 0% | 69% | 0% | 30%
landlock0% | 0% | 100% | 0% | 0%
kfifo0% | 0% | 0% | 83% | 16%
ftrace0% | 0% | 0% | 45% | 54%
connector0% | 0% | 0% | 100% | 0%
auxdisplay0% | 0% | 0% | 100% | 0%
kobject0% | 0% | 0% | 67% | 32%
trace_events0% | 0% | 0% | 59% | 40%
hidraw0% | 0% | 0% | 100% | 0%
fanotify0% | 0% | 0% | 100% | 0%
livepatch0% | 0% | 0% | 22% | 77%
kprobes0% | 0% | 0% | 0% | 100%
acrn0% | 0% | 0% | 0% | 100%
pidfd0% | 0% | 0% | 0% | 100%
binderfs0% | 0% | 0% | 0% | 100%
kmemleak0% | 0% | 0% | 0% | 100%
rpmsg0% | 0% | 0% | 0% | 100%
hw_breakpoint0% | 0% | 0% | 0% | 100%
coresight0% | 0% | 0% | 0% | 100%
trace_printk0% | 0% | 0% | 0% | 100%
kdb0% | 0% | 0% | 0% | 100%
watchdog0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
1671 45
1418 40
mbochs.c
in vfio-mdev
1213 37
mtty.c
in vfio-mdev
1091 24
xsk_fwd.c
in bpf
769 3
667 11
mdpy.c
in vfio-mdev
636 21
537 27
497 9
497 15
ne_ioctl_sample.c
in nitro_enclaves
482 9
463 7
429 16
hbm.c
in bpf
411 6
407 21
361 8
337 11
323 8
288 10
263 6
user-trap.c
in seccomp
261 6
244 12
244 8
239 8
236 -
229 5
227 6
207 11
bpf-helper.h
in seccomp
205 -
sandboxer.c
in landlock
203 6
201 2
190 7
189 4
ucon.c
in connector
187 3
187 1
182 5
182 6
mdpy-fb.c
in vfio-mdev
181 5
180 7
180 6
180 6
168 12
kset-example.c
in kobject
166 10
165 6
164 5
158 -
157 4
154 5
154 4
154 3
Files With Most Units (Top 50)
File# lines# units
1671 45
1418 40
mbochs.c
in vfio-mdev
1213 37
537 27
mtty.c
in vfio-mdev
1091 24
mdpy.c
in vfio-mdev
636 21
407 21
429 16
497 15
168 12
244 12
337 11
207 11
667 11
288 10
kset-example.c
in kobject
166 10
ne_ioctl_sample.c
in nitro_enclaves
482 9
497 9
76 9
323 8
96 8
trace-events-sample.c
in trace_events
99 8
361 8
239 8
244 8
100 7
120 7
180 7
190 7
463 7
sandboxer.c
in landlock
203 6
100 6
user-trap.c
in seccomp
261 6
70 6
165 6
182 6
hbm.c
in bpf
411 6
263 6
180 6
227 6
180 6
80 6
229 5
101 5
78 5
bpf-direct.c
in seccomp
151 5
118 5
130 5
mdpy-fb.c
in vfio-mdev
181 5
96 5
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