Linux / Drivers / Soc
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 212 files with 60,883 lines of code.
    • 7 very long files (12,271 lines of code)
    • 27 long files (16,685 lines of code)
    • 67 medium size files (21,746 lines of codeclsfd_ftr_w_mp_ins)
    • 47 small files (7,070 lines of code)
    • 64 very small files (3,111 lines of code)
20% | 27% | 35% | 11% | 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
c21% | 29% | 34% | 11% | 3%
h0% | 0% | 56% | 8% | 34%
S0% | 0% | 0% | 83% | 16%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
fsl30% | 21% | 31% | 13% | 3%
tegra48% | 0% | 33% | 11% | 6%
ti37% | 30% | 27% | 3% | 1%
mediatek32% | 24% | 34% | 0% | 8%
qcom10% | 47% | 36% | 4% | 1%
rockchip0% | 91% | 0% | 8% | 0%
bcm0% | 38% | 39% | 14% | 7%
imx0% | 43% | 40% | 16% | 0%
amlogic0% | 30% | 38% | 30% | 0%
ixp4xx0% | 60% | 39% | 0% | 0%
aspeed0% | 36% | 55% | 8% | 0%
renesas0% | 0% | 57% | 5% | 36%
samsung0% | 0% | 29% | 64% | 6%
xilinx0% | 0% | 75% | 24% | 0%
atmel0% | 0% | 63% | 21% | 14%
sunxi0% | 0% | 78% | 0% | 21%
dove0% | 0% | 100% | 0% | 0%
actions0% | 0% | 90% | 0% | 9%
apple0% | 0% | 100% | 0% | 0%
versatile0% | 0% | 0% | 100% | 0%
sifive0% | 0% | 0% | 100% | 0%
ux5000% | 0% | 0% | 100% | 0%
litex0% | 0% | 0% | 0% | 100%
lantiq0% | 0% | 0% | 0% | 100%
canaan0% | 0% | 0% | 0% | 100%
gemini0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
pmc.c
in tegra
3049 104
qman.c
in fsl/qbman
2259 105
mtk-pmic-wrap.c
in mediatek
1968 35
1465 52
cpr.c
in qcom
1266 43
1134 45
qbman-portal.c
in fsl/dpio
1130 49
mtk-scpsys.c
in mediatek
955 14
gpcv2.c
in imx
939 7
pm_domains.c
in rockchip
891 19
828 17
qman_ccsr.c
in fsl/qbman
697 36
678 26
smem.c
in qcom
660 13
630 19
625 5
pm-arm.c
in bcm/brcmstb/pm
611 20
bman.c
in fsl/qbman
601 33
ixp4xx-npe.c
in ixp4xx
586 18
565 15
socinfo.c
in qcom
562 11
ucc.c
in fsl/qe
557 14
apr.c
in qcom
552 25
542 11
io-domain.c
in rockchip
542 10
540 26
536 12
536 5
rpmpd.c
in qcom
514 10
512 10
512 23
mtk-pm-domains.c
in mediatek
506 15
rpmh-rsc.c
in qcom
505 22
dpio-service.c
in fsl/dpio
503 23
rpmhpd.c
in qcom
498 10
meson-ee-pwrc.c
in amlogic
492 6
mtk-mutex.c
in mediatek
486 11
fuse-tegra.c
in tegra/fuse
481 16
477 17
469 13
smp2p.c
in qcom
466 17
447 9
qman_test_stash.c
in fsl/qbman
446 18
qe.c
in fsl/qe
439 18
435 8
gpc.c
in imx
423 10
405 18
403 21
398 23
394 15
Files With Most Units (Top 50)
File# lines# units
qman.c
in fsl/qbman
2259 105
pmc.c
in tegra
3049 104
1465 52
qbman-portal.c
in fsl/dpio
1130 49
1134 45
cpr.c
in qcom
1266 43
qman_ccsr.c
in fsl/qbman
697 36
mtk-pmic-wrap.c
in mediatek
1968 35
bman.c
in fsl/qbman
601 33
540 26
678 26
apr.c
in qcom
552 25
398 23
512 23
dpio-service.c
in fsl/dpio
503 23
qbman-portal.h
in fsl/dpio
388 23
rpmh-rsc.c
in qcom
505 22
365 21
403 21
pm-arm.c
in bcm/brcmstb/pm
611 20
pm_domains.c
in rockchip
891 19
ixp4xx-qmgr.c
in ixp4xx
380 19
630 19
405 18
qman_test_stash.c
in fsl/qbman
446 18
qe.c
in fsl/qe
439 18
ixp4xx-npe.c
in ixp4xx
586 18
smp2p.c
in qcom
466 17
828 17
477 17
fuse-tegra.c
in tegra/fuse
481 16
565 15
mtk-pm-domains.c
in mediatek
506 15
394 15
ucc.c
in fsl/qe
557 14
mtk-scpsys.c
in mediatek
955 14
smem.c
in qcom
660 13
qe_ic.c
in fsl/qe
378 13
363 13
469 13
rpmh.c
in qcom
328 12
smsm.c
in qcom
393 12
pmu.c
in dove
311 12
536 12
rmobile-sysc.c
in renesas
252 12
socinfo.c
in qcom
562 11
542 11
268 11
mtk-mutex.c
in mediatek
486 11
rcar-sysc.c
in renesas
367 11
Files With Long Lines (Top 2)

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

File# lines# units# long lines
678 26 2
1465 52 1