Linux / Drivers / Firmware
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 139 files with 40,092 lines of code.
    • 3 very long files (5,725 lines of code)
    • 24 long files (16,847 lines of code)
    • 34 medium size files (10,283 lines of codeclsfd_ftr_w_mp_ins)
    • 36 small files (4,979 lines of code)
    • 42 very small files (2,258 lines of code)
14% | 42% | 25% | 12% | 5%
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
c14% | 42% | 25% | 12% | 5%
h0% | 41% | 36% | 6% | 15%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
cirrus100% | 0% | 0% | 0% | 0%
ROOT18% | 57% | 14% | 7% | 2%
arm_scmi19% | 36% | 34% | 7% | 2%
efi0% | 34% | 36% | 18% | 10%
tegra0% | 63% | 27% | 8% | 1%
xilinx0% | 84% | 0% | 14% | 1%
google0% | 46% | 14% | 17% | 21%
broadcom0% | 62% | 0% | 37% | 0%
arm_ffa0% | 73% | 0% | 20% | 5%
psci0% | 0% | 100% | 0% | 0%
imx0% | 0% | 54% | 36% | 9%
meson0% | 0% | 100% | 0% | 0%
smccc0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cs_dsp.c
in cirrus
2368 86
ti_sci.c
in root
2143 72
driver.c
in arm_scmi
1214 47
qcom_scm.c
in root
967 46
arm_scpi.c
in root
855 28
notify.c
in arm_scmi
847 27
arm_sdei.c
in root
836 50
zynqmp.c
in xilinx
799 62
dmi_scan.c
in root
799 39
efi.c
in efi
779 33
sensors.c
in arm_scmi
753 13
perf.c
in arm_scmi
743 24
741 17
gsmi.c
in google
730 21
efistub.h
in efi/libstub
712 3
700 24
bpmp.c
in tegra
683 29
vars.c
in efi
678 22
677 25
655 30
edd.c
in root
617 4
bcm47xx_sprom.c
in broadcom
589 18
driver.c
in arm_ffa
577 21
x86-stub.c
in efi/libstub
554 11
cper.c
in efi
530 13
518 29
efivars.c
in efi
508 9
efi-stub-helper.c
in efi/libstub
478 14
psci.c
in psci
469 48
gop.c
in efi/libstub
451 14
445 17
418 23
ti_sci.h
in root
402 -
vsprintf.c
in efi/libstub
394 11
ivc.c
in tegra
359 21
virtio.c
in arm_scmi
359 17
328 16
328 18
esrt.c
in efi
321 10
315 10
clock.c
in arm_scmi
293 7
voltage.c
in arm_scmi
292 10
292 2
scu-pd.c
in imx
285 6
278 5
274 5
imx-scu.c
in imx
263 7
base.c
in arm_scmi
262 5
reset.c
in arm_scmi
261 9
power.c
in arm_scmi
249 8
Files With Most Units (Top 50)
File# lines# units
cs_dsp.c
in cirrus
2368 86
ti_sci.c
in root
2143 72
zynqmp.c
in xilinx
799 62
arm_sdei.c
in root
836 50
psci.c
in psci
469 48
driver.c
in arm_scmi
1214 47
qcom_scm.c
in root
967 46
dmi_scan.c
in root
799 39
efi.c
in efi
779 33
655 30
bpmp.c
in tegra
683 29
518 29
arm_scpi.c
in root
855 28
notify.c
in arm_scmi
847 27
677 25
700 24
perf.c
in arm_scmi
743 24
418 23
vars.c
in efi
678 22
driver.c
in arm_ffa
577 21
gsmi.c
in google
730 21
ivc.c
in tegra
359 21
bcm47xx_sprom.c
in broadcom
589 18
328 18
741 17
virtio.c
in arm_scmi
359 17
445 17
bus.c
in arm_scmi
227 16
328 16
bus.c
in arm_ffa
163 15
memmap.c
in root
203 14
gop.c
in efi/libstub
451 14
efi-stub-helper.c
in efi/libstub
478 14
230 13
sensors.c
in arm_scmi
753 13
cper.c
in efi
530 13
memmap.c
in efi
211 12
vpd.c
in google
234 11
176 11
x86-stub.c
in efi/libstub
554 11
vsprintf.c
in efi/libstub
394 11
158 10
voltage.c
in arm_scmi
292 10
mailbox.c
in arm_scmi
144 10
315 10
242 10
esrt.c
in efi
321 10
217 10
tee_bnxt_fw.c
in broadcom
181 9
reset.c
in arm_scmi
261 9
Files With Long Lines (Top 3)

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

File# lines# units# long lines
ti_sci.c
in root
2143 72 2
bcm47xx_nvram.c
in broadcom
171 7 2
292 2 1