Linux / Drivers / Platform
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 222 files with 94,227 lines of code.
    • 18 very long files (39,779 lines of code)
    • 40 long files (27,231 lines of code)
    • 50 medium size files (15,667 lines of codeclsfd_ftr_w_mp_ins)
    • 56 small files (8,257 lines of code)
    • 58 very small files (3,293 lines of code)
42% | 28% | 16% | 8% | 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
c43% | 29% | 16% | 8% | 2%
h0% | 0% | 32% | 19% | 47%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
x8652% | 24% | 12% | 7% | 3%
surface14% | 41% | 26% | 11% | 4%
mellanox30% | 56% | 5% | 4% | 2%
chrome0% | 36% | 43% | 15% | 4%
goldfish0% | 92% | 0% | 0% | 7%
olpc0% | 62% | 37% | 0% | 0%
mips0% | 0% | 0% | 88% | 11%
Longest Files (Top 50)
File# lines# units
8303 364
4712 16
3801 138
2825 144
2434 122
2052 60
core.c
in x86/intel/pmc
1703 50
dell-laptop.c
in x86/dell
1686 53
1439 81
1418 3
1312 60
1296 68
controller.c
in surface/aggregator
1290 78
mlxbf-pmc.c
in mellanox
1159 29
1129 66
hp-wmi.c
in x86
1117 47
wmi.c
in x86
1060 44
1043 41
ssh_packet_layer.c
in surface/aggregator
979 68
pltdrv.c
in x86/intel/telemetry
930 23
915 54
896 31
mlxbf-tmfifo.c
in mellanox
887 38
884 40
866 43
854 39
surface_dtx.c
in surface
850 38
debugfs.c
in x86/intel/telemetry
782 16
776 11
759 42
757 33
729 33
alienware-wmi.c
in x86/dell
709 28
mlxreg-lc.c
in mellanox
707 10
699 30
693 6
669 35
624 33
624 24
617 31
ssh_request_layer.c
in surface/aggregator
617 36
goldfish_pipe.c
in goldfish
614 24
acerhdf.c
in x86
611 29
608 19
amd-pmc.c
in x86
596 25
590 10
568 13
hid.c
in x86/intel
551 20
544 34
540 5
Files With Most Units (Top 50)
File# lines# units
8303 364
2825 144
3801 138
2434 122
1439 81
controller.c
in surface/aggregator
1290 78
ssh_packet_layer.c
in surface/aggregator
979 68
1296 68
1129 66
1312 60
2052 60
915 54
dell-laptop.c
in x86/dell
1686 53
core.c
in x86/intel/pmc
1703 50
hp-wmi.c
in x86
1117 47
wmi.c
in x86
1060 44
866 43
759 42
1043 41
884 40
854 39
surface_dtx.c
in surface
850 38
mlxbf-tmfifo.c
in mellanox
887 38
ssh_request_layer.c
in surface/aggregator
617 36
669 35
544 34
624 33
757 33
729 33
617 31
896 31
699 30
mlxbf-pmc.c
in mellanox
1159 29
core.c
in x86/intel/telemetry
235 29
acerhdf.c
in x86
611 29
alienware-wmi.c
in x86/dell
709 28
hdaps.c
in x86
439 28
dcdbas.c
in x86/dell
525 25
amd-pmc.c
in x86
596 25
goldfish_pipe.c
in goldfish
614 24
389 24
624 24
pltdrv.c
in x86/intel/telemetry
930 23
core.c
in surface/aggregator
470 22
537 22
ishtp_eclite.c
in x86/intel
523 21
isst_if_common.c
in x86/intel/speed_select_if
518 21
dell-rbtn.c
in x86/dell
326 21
hid.c
in x86/intel
551 20
sysman.c
in x86/dell/dell-wmi-sysman
422 20
Files With Long Lines (Top 5)

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

File# lines# units# long lines
8303 364 2
controller.c
in surface/aggregator
1290 78 1
vbtn.c
in x86/intel
293 11 1
122 4 1
757 33 1