Linux / Drivers / Iommu
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 71 files with 44,000 lines of code.
    • 12 very long files (23,269 lines of code)
    • 20 long files (14,622 lines of code)
    • 14 medium size files (4,291 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (966 lines of code)
    • 18 very small files (852 lines of code)
52% | 33% | 9% | 2% | 1%
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
c54% | 33% | 8% | 1% | <1%
h32% | 29% | 17% | 6% | 13%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
intel73% | 20% | 0% | 3% | 2%
ROOT33% | 49% | 12% | 2% | 2%
amd72% | 19% | 5% | 1% | 1%
arm61% | 17% | 18% | 1% | 0%
Longest Files (Top 50)
File# lines# units
iommu.c
in intel
4189 196
arm-smmu-v3.c
in arm/arm-smmu-v3
2816 122
iommu.c
in amd
2526 145
init.c
in amd
2271 126
iommu.c
in root
2170 115
dmar.c
in intel
1801 70
arm-smmu.c
in arm/arm-smmu
1743 68
1307 -
1247 56
1128 50
1060 47
1011 33
987 28
975 51
906 33
879 40
svm.c
in intel
855 26
835 23
801 45
722 28
717 26
715 34
qcom_iommu.c
in arm/arm-smmu
688 28
687 28
664 30
fsl_pamu.c
in root
654 17
arm-smmu-v3.h
in arm/arm-smmu-v3
632 9
iova.c
in root
630 20
pasid.c
in intel
621 23
574 2
544 22
debugfs.c
in intel
536 21
433 19
arm-smmu.h
in arm/arm-smmu
432 8
arm-smmu-v3-sva.c
in arm/arm-smmu-v3
386 16
337 16
336 13
arm-smmu-qcom.c
in arm/arm-smmu
306 15
fsl_pamu.h
in root
295 -
295 12
277 20
ioasid.c
in root
262 9
261 8
240 9
arm-smmu-nvidia.c
in arm/arm-smmu
225 11
206 12
cap_audit.c
in intel
180 10
172 7
arm-smmu-impl.c
in arm/arm-smmu
142 9
perf.c
in intel
128 5
Files With Most Units (Top 50)
File# lines# units
iommu.c
in intel
4189 196
iommu.c
in amd
2526 145
init.c
in amd
2271 126
arm-smmu-v3.c
in arm/arm-smmu-v3
2816 122
iommu.c
in root
2170 115
dmar.c
in intel
1801 70
arm-smmu.c
in arm/arm-smmu
1743 68
1247 56
975 51
1128 50
1060 47
801 45
879 40
715 34
906 33
1011 33
664 30
687 28
722 28
987 28
qcom_iommu.c
in arm/arm-smmu
688 28
svm.c
in intel
855 26
717 26
pasid.c
in intel
621 23
835 23
544 22
debugfs.c
in intel
536 21
277 20
iova.c
in root
630 20
433 19
fsl_pamu.c
in root
654 17
337 16
arm-smmu-v3-sva.c
in arm/arm-smmu-v3
386 16
arm-smmu-qcom.c
in arm/arm-smmu
306 15
336 13
122 12
206 12
295 12
arm-smmu-nvidia.c
in arm/arm-smmu
225 11
cap_audit.c
in intel
180 10
ioasid.c
in root
262 9
arm-smmu-v3.h
in arm/arm-smmu-v3
632 9
arm-smmu-impl.c
in arm/arm-smmu
142 9
240 9
103 8
arm-smmu.h
in arm/arm-smmu
432 8
261 8
172 7
51 6
89 6
Files With Long Lines (Top 6)

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

File# lines# units# long lines
iommu.c
in amd
2526 145 7
arm-smmu.c
in arm/arm-smmu
1743 68 3
iommu.c
in root
2170 115 2
1060 47 1
iommu.c
in intel
4189 196 1
arm-smmu-v3.c
in arm/arm-smmu-v3
2816 122 1