Linux / Drivers / Vfio
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 30 files with 12,063 lines of code.
    • 4 very long files (6,676 lines of code)
    • 3 long files (2,037 lines of code)
    • 7 medium size files (2,113 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (399 lines of code)
    • 13 very small files (838 lines of code)
55% | 16% | 17% | 3% | 6%
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
c56% | 17% | 17% | 3% | 4%
h0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT75% | 19% | 0% | 2% | 2%
pci64% | 11% | 20% | 0% | 3%
platform0% | 44% | 19% | 0% | 35%
mdev0% | 0% | 71% | 16% | 12%
fsl-mc0% | 0% | 72% | 21% | 5%
Longest Files (Top 30)
File# lines# units
2275 83
vfio.c
in root
1599 71
1525 54
1277 51
996 33
540 24
501 21
vfio_fsl_mc.c
in fsl-mc
466 18
392 8
303 8
280 12
240 13
224 11
208 9
virqfd.c
in root
145 9
140 6
114 9
91 5
91 -
88 3
vfio_platform_amdxgbe.c
in platform/reset
82 3
vfio_amba.c
in platform
75 3
trace.h
in pci
72 -
vfio_platform_bcmflexrm.c
in platform/reset
70 2
vfio_platform.c
in platform
62 3
49 7
42 2
41 2
vfio.h
in root
41 -
34 -
Files With Most Units (Top 26)
File# lines# units
2275 83
vfio.c
in root
1599 71
1525 54
1277 51
996 33
540 24
501 21
vfio_fsl_mc.c
in fsl-mc
466 18
240 13
280 12
224 11
208 9
114 9
virqfd.c
in root
145 9
303 8
392 8
49 7
140 6
91 5
88 3
vfio_platform.c
in platform
62 3
vfio_platform_amdxgbe.c
in platform/reset
82 3
vfio_amba.c
in platform
75 3
41 2
vfio_platform_bcmflexrm.c
in platform/reset
70 2
42 2
Files With Long Lines (Top 3)

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

File# lines# units# long lines
208 9 4
vfio.c
in root
1599 71 1
2275 83 1