Linux / Drivers / Acpi
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 316 files with 97,895 lines of code.
    • 7 very long files (11,617 lines of code)
    • 41 long files (29,011 lines of code)
    • 130 medium size files (41,459 lines of codeclsfd_ftr_w_mp_ins)
    • 87 small files (12,545 lines of code)
    • 51 very small files (3,263 lines of code)
11% | 29% | 42% | 12% | 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
c12% | 30% | 41% | 12% | 3%
h0% | 24% | 57% | 12% | 5%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT18% | 46% | 25% | 7% | 2%
nfit72% | 14% | 7% | 3% | 1%
apei28% | 56% | 5% | 6% | 2%
arm6479% | 0% | 18% | 0% | 2%
acpica0% | 19% | 58% | 18% | 4%
numa0% | 62% | 37% | 0% | 0%
pmic0% | 0% | 91% | 5% | 2%
x860% | 0% | 86% | 0% | 13%
dptf0% | 0% | 0% | 86% | 13%
Longest Files (Top 50)
File# lines# units
core.c
in nfit
3055 116
scan.c
in root
1860 96
1635 48
ec.c
in root
1532 90
osl.c
in root
1284 68
ghes.c
in apei
1142 59
iort.c
in arm64
1109 46
battery.c
in root
999 37
erst.c
in apei
992 46
979 50
thermal.c
in root
956 31
property.c
in root
945 34
943 51
900 26
bus.c
in root
894 42
845 28
exdump.c
in acpica
833 5
dbinput.c
in acpica
823 6
aclocal.h
in acpica
807 -
sysfs.c
in root
784 32
775 47
acpredef.h
in acpica
757 -
sleep.c
in root
746 50
power.c
in root
721 34
tables.c
in root
707 23
hmat.c
in numa
692 23
dbdisply.c
in acpica
690 10
pci_root.c
in root
677 22
dbtest.c
in acpica
645 4
dbcmds.c
in acpica
640 12
einj.c
in apei
636 16
631 35
intel.c
in nfit
629 21
pci_link.c
in root
613 25
utils.c
in root
612 16
sbs.c
in root
608 25
acpi_dbg.c
in root
586 33
577 21
dbnames.c
in acpica
565 11
rsserial.c
in acpica
565 -
exoparg1.c
in acpica
562 5
evxface.c
in acpica
560 5
551 16
resource.c
in root
530 28
exfldio.c
in acpica
520 -
dbexec.c
in acpica
511 6
rsdumpinfo.c
in acpica
503 -
utcopy.c
in acpica
502 -
tbdata.c
in acpica
499 14
nsdump.c
in acpica
494 3
Files With Most Units (Top 50)
File# lines# units
core.c
in nfit
3055 116
scan.c
in root
1860 96
ec.c
in root
1532 90
osl.c
in root
1284 68
ghes.c
in apei
1142 59
943 51
979 50
sleep.c
in root
746 50
1635 48
775 47
erst.c
in apei
992 46
iort.c
in arm64
1109 46
bus.c
in root
894 42
battery.c
in root
999 37
631 35
property.c
in root
945 34
power.c
in root
721 34
acpi_dbg.c
in root
586 33
sysfs.c
in root
784 32
thermal.c
in root
956 31
acpi_tad.c
in root
485 30
resource.c
in root
530 28
845 28
900 26
sbs.c
in root
608 25
pci_link.c
in root
613 25
internal.h
in root
214 24
dock.c
in root
402 24
acpi_pad.c
in root
384 24
tables.c
in root
707 23
hmat.c
in numa
692 23
pci_root.c
in root
677 22
intel.c
in nfit
629 21
pptt.c
in root
480 21
442 21
577 21
osi.c
in root
370 18
button.c
in root
479 18
utils.c
in root
612 16
551 16
einj.c
in apei
636 16
447 16
srat.c
in numa
420 16
evxfgpe.c
in acpica
486 15
fan.c
in root
394 15
tbdata.c
in acpica
499 14
240 14
260 14
rsdump.c
in acpica
303 13
274 13
Files With Long Lines (Top 7)

There are 7 files with lines longer than 120 characters. In total, there are 20 long lines.

File# lines# units# long lines
acopcode.h
in acpica
263 - 11
rsdumpinfo.c
in acpica
503 - 4
psloop.c
in acpica
337 1 1
evrgnini.c
in acpica
285 2 1
sysfs.c
in root
784 32 1
551 16 1
577 21 1