Linux / Drivers / Crypto
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 422 files with 178,324 lines of code.
    • 48 very long files (91,393 lines of code)
    • 40 long files (29,803 lines of code)
    • 124 medium size files (39,401 lines of codeclsfd_ftr_w_mp_ins)
    • 77 small files (11,538 lines of code)
    • 133 very small files (6,189 lines of code)
51% | 16% | 22% | 6% | 3%
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
c57% | 16% | 20% | 4% | 1%
pl89% | 0% | 5% | 4% | 0%
h5% | 19% | 36% | 21% | 17%
S0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT75% | 9% | 10% | 2% | 1%
caam64% | 18% | 9% | 2% | 4%
hisilicon61% | 28% | 8% | <1% | <1%
inside-secure87% | 9% | 0% | 2% | 0%
marvell44% | 17% | 24% | 11% | 2%
ccree70% | 5% | 11% | 5% | 6%
qat35% | 3% | 38% | 16% | 7%
chelsio81% | 0% | 16% | 0% | 1%
bcm56% | 25% | 13% | 2% | 2%
vmx75% | 0% | 4% | 18% | 1%
stm3288% | 0% | 11% | 0% | 0%
ux50076% | 0% | 13% | 5% | 4%
axis100% | 0% | 0% | 0% | 0%
ccp19% | 23% | 43% | 11% | 1%
amcc47% | 21% | 18% | 11% | <1%
keembay29% | 56% | 11% | 0% | 3%
cavium0% | 26% | 54% | 11% | 8%
allwinner0% | 40% | 46% | 10% | 2%
nx0% | 45% | 38% | 11% | 4%
qce0% | 24% | 63% | 0% | 12%
virtio0% | 44% | 34% | 13% | 7%
rockchip0% | 0% | 100% | 0% | 0%
gemini0% | 0% | 76% | 19% | 4%
amlogic0% | 0% | 88% | 0% | 11%
xilinx0% | 0% | 100% | 0% | 0%
Longest Files (Top 50)
File# lines# units
qm.c
in hisilicon
4673 222
4586 93
chcr_algo.c
in chelsio
3959 106
cipher.c
in bcm
3593 72
3295 4
safexcel_cipher.c
in inside-secure
3167 117
caamalg.c
in caam
3013 62
talitos.c
in root
2940 69
safexcel_hash.c
in inside-secure
2524 103
2256 54
2252 44
cc_aead.c
in ccree
2135 55
2110 77
2083 109
2025 89
sec_crypto.c
in hisilicon/sec2
1985 93
cc_hash.c
in ccree
1928 42
sa2ul.c
in root
1907 65
ccp-ops.c
in ccp
1864 23
qat_uclo.c
in qat/qat_common
1831 63
1797 62
n2_core.c
in root
1753 72
hpre_crypto.c
in hisilicon/hpre
1678 82
s5p-sss.c
in root
1561 67
caamhash.c
in caam
1560 41
otx2_cptpf_ucode.c
in marvell/octeontx2
1434 47
stm32-cryp.c
in stm32
1429 78
otx2_cptvf_algs.c
in marvell/octeontx2
1418 64
safexcel.c
in inside-secure
1411 37
qat_hal.c
in qat/qat_common
1409 50
otx_cptvf_algs.c
in marvell/octeontx
1398 59
qat_algs.c
in qat/qat_common
1345 49
1341 41
hash_core.c
in ux500/hash
1332 53
otx_cptpf_ucode.c
in marvell/octeontx
1319 46
stm32-hash.c
in stm32
1309 48
cc_cipher.c
in ccree
1297 24
desc.h
in caam
1249 -
1224 43
1222 63
sahara.c
in root
1201 40
cryp_core.c
in ux500/cryp
1172 39
hash.c
in marvell/cesa
1134 55
qat_asym_algs.c
in qat/qat_common
1108 31
1084 25
omap-aes.c
in root
1043 44
sec_drv.c
in hisilicon/sec
1020 56
1019 47
zip_regs.h
in cavium/zip
992 21
hpre_main.c
in hisilicon/hpre
983 47
Files With Most Units (Top 50)
File# lines# units
qm.c
in hisilicon
4673 222
safexcel_cipher.c
in inside-secure
3167 117
2083 109
chcr_algo.c
in chelsio
3959 106
safexcel_hash.c
in inside-secure
2524 103
sec_crypto.c
in hisilicon/sec2
1985 93
4586 93
2025 89
hpre_crypto.c
in hisilicon/hpre
1678 82
stm32-cryp.c
in stm32
1429 78
2110 77
n2_core.c
in root
1753 72
cipher.c
in bcm
3593 72
talitos.c
in root
2940 69
s5p-sss.c
in root
1561 67
sa2ul.c
in root
1907 65
otx2_cptvf_algs.c
in marvell/octeontx2
1418 64
qat_uclo.c
in qat/qat_common
1831 63
1222 63
1797 62
caamalg.c
in caam
3013 62
otx_cptvf_algs.c
in marvell/octeontx
1398 59
sec_drv.c
in hisilicon/sec
1020 56
hash.c
in marvell/cesa
1134 55
cc_aead.c
in ccree
2135 55
2256 54
hash_core.c
in ux500/hash
1332 53
qat_hal.c
in qat/qat_common
1409 50
qat_algs.c
in qat/qat_common
1345 49
stm32-hash.c
in stm32
1309 48
otx2_cptpf_ucode.c
in marvell/octeontx2
1434 47
1019 47
hpre_main.c
in hisilicon/hpre
983 47
otx_cptpf_ucode.c
in marvell/octeontx
1319 46
otx_cptvf_main.c
in marvell/octeontx
752 46
omap-aes.c
in root
1043 44
2252 44
1224 43
sec_main.c
in hisilicon/sec2
887 42
cc_hash.c
in ccree
1928 42
555 41
sev-dev.c
in ccp
911 41
caamhash.c
in caam
1560 41
1341 41
sahara.c
in root
1201 40
cryp_core.c
in ux500/cryp
1172 39
img-hash.c
in root
891 39
ocs-aes.c
in keembay
808 38
zip_crypto.c
in hisilicon/zip
645 38
zip_main.c
in hisilicon/zip
823 38
Files With Long Lines (Top 6)

There are 6 files with lines longer than 120 characters. In total, there are 14 long lines.

File# lines# units# long lines
error.c
in caam
331 9 8
sun8i-ss-core.c
in allwinner/sun8i-ss
725 15 2
hash_core.c
in ux500/hash
1332 53 1
sev-dev.c
in ccp
911 41 1
540 17 1
1084 25 1