Linux / Drivers / Misc
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 477 files with 187,901 lines of code.
    • 27 very long files (62,728 lines of code)
    • 68 long files (47,188 lines of code)
    • 160 medium size files (58,692 lines of codeclsfd_ftr_w_mp_ins)
    • 80 small files (11,599 lines of code)
    • 142 very small files (7,694 lines of code)
33% | 25% | 31% | 6% | 4%
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
c45% | 28% | 19% | 4% | 1%
h14% | 19% | 49% | 8% | 7%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
habanalabs42% | 16% | 33% | 4% | 4%
ROOT31% | 29% | 28% | 9% | 1%
cxl27% | 31% | 36% | 3% | 1%
mei24% | 38% | 26% | 7% | 2%
vmw_vmci35% | 27% | 20% | 9% | 7%
altera-stapl64% | 28% | 0% | 0% | 7%
cardreader22% | 39% | 24% | 12% | <1%
sgi-xp31% | 32% | 25% | 10% | 0%
bcm-vk39% | 31% | 19% | 6% | 3%
genwqe0% | 78% | 18% | 0% | 2%
sgi-gru0% | 55% | 30% | 10% | 3%
eeprom0% | 49% | 28% | 20% | 2%
ocxl0% | 37% | 33% | 24% | 5%
ti-st0% | 91% | 0% | 8% | 0%
lis3lv02d0% | 61% | 30% | 7% | 0%
c2port0% | 86% | 0% | 0% | 13%
lkdtm0% | 0% | 75% | 14% | 10%
ibmasm0% | 0% | 47% | 23% | 29%
uacce0% | 0% | 100% | 0% | 0%
echo0% | 0% | 62% | 0% | 37%
cb7100% | 0% | 57% | 0% | 42%
pvpanic0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
gaudi_security.c
in habanalabs/gaudi
11793 10
gaudi.c
in habanalabs/gaudi
7494 200
gaudi_blocks.h
in habanalabs/include/gaudi/asic_reg
4960 -
goya.c
in habanalabs/goya
4365 151
goya_security.c
in habanalabs/goya
2661 7
command_submission.c
in habanalabs/common
2097 63
1995 64
memory.c
in habanalabs/common
1762 48
altera.c
in altera-stapl
1731 9
firmware_if.c
in habanalabs/common
1720 60
habanalabs.h
in habanalabs/common
1634 20
tpc0_cfg_masks.h
in habanalabs/include/gaudi/asic_reg
1497 -
ibmvmc.c
in root
1492 47
pci.c
in cxl
1454 63
client.c
in mei
1447 59
rtsx_pcr.c
in cardreader
1437 69
xpc_uv.c
in sgi-xp
1400 -
fastrpc.c
in root
1395 49
goya_blocks.h
in habanalabs/include/goya/asic_reg
1358 -
debugfs.c
in habanalabs/common
1353 58
bcm_vk_dev.c
in bcm-vk
1216 29
native.c
in cxl
1164 72
1117 37
device.c
in habanalabs/common
1106 32
1051 60
mme_masks.h
in habanalabs/include/goya/asic_reg
1027 -
hbm.c
in mei
1002 44
996 51
bcm_vk_msg.c
in bcm-vk
969 37
apds990x.c
in root
946 52
guest.c
in cxl
942 55
lis3lv02d.c
in lis3lv02d
942 41
card_dev.c
in genwqe
915 30
hw-me.c
in mei
897 58
idt_89hpesx.c
in eeprom
884 30
card_base.c
in genwqe
868 35
tpc0_cfg_masks.h
in habanalabs/include/goya/asic_reg
865 -
main.c
in mei
861 32
kgdbts.c
in root
858 47
cxl.h
in cxl
844 19
xpc_main.c
in sgi-xp
835 -
bus.c
in mei
818 53
grukservices.c
in sgi-gru
805 35
vmci_context.c
in vmw_vmci
796 31
card_ddcb.c
in genwqe
789 35
gaudi_coresight.c
in habanalabs/gaudi
780 10
altera-jtag.c
in altera-stapl
758 20
hwmon.c
in habanalabs/common
749 22
vmci_host.c
in vmw_vmci
729 26
mme3_ctrl_regs.h
in habanalabs/include/gaudi/asic_reg
720 -
Files With Most Units (Top 50)
File# lines# units
gaudi.c
in habanalabs/gaudi
7494 200
goya.c
in habanalabs/goya
4365 151
native.c
in cxl
1164 72
rtsx_pcr.c
in cardreader
1437 69
1995 64
pci.c
in cxl
1454 63
command_submission.c
in habanalabs/common
2097 63
firmware_if.c
in habanalabs/common
1720 60
1051 60
client.c
in mei
1447 59
hw-me.c
in mei
897 58
debugfs.c
in habanalabs/common
1353 58
guest.c
in cxl
942 55
bus.c
in mei
818 53
apds990x.c
in root
946 52
996 51
fastrpc.c
in root
1395 49
hw-txe.c
in mei
613 49
memory.c
in habanalabs/common
1762 48
ibmvmc.c
in root
1492 47
kgdbts.c
in root
858 47
hbm.c
in mei
1002 44
hpilo.c
in root
680 42
lis3lv02d.c
in lis3lv02d
942 41
sysfs.c
in cxl
599 38
1117 37
bcm_vk_msg.c
in bcm-vk
969 37
card_base.c
in genwqe
868 35
card_ddcb.c
in genwqe
789 35
grukservices.c
in sgi-gru
805 35
mmu_v1.c
in habanalabs/common/mmu
686 33
rtsx_usb.c
in cardreader
604 32
core.c
in c2port
659 32
main.c
in mei
861 32
device.c
in habanalabs/common
1106 32
bugs.c
in lkdtm
410 31
vmci_context.c
in vmw_vmci
796 31
card_utils.c
in genwqe
650 31
508 31
config.c
in ocxl
681 30
hw_queue.c
in habanalabs/common
695 30
habanalabs_ioctl.c
in habanalabs/common
687 30
card_dev.c
in genwqe
915 30
grumain.c
in sgi-gru
705 30
idt_89hpesx.c
in eeprom
884 30
rts5261.c
in cardreader
621 29
rts5228.c
in cardreader
569 29
bcm_vk_dev.c
in bcm-vk
1216 29
rts5249.c
in cardreader
689 28
mei_dev.h
in mei
412 28
Files With Long Lines (Top 7)

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

File# lines# units# long lines
debugfs.c
in habanalabs/common
1353 58 3
lkdtm.h
in lkdtm
142 - 3
1995 64 3
gaudi.c
in habanalabs/gaudi
7494 200 2
cxl.h
in cxl
844 19 1
hw_queue.c
in habanalabs/common
695 30 1
mmu.c
in habanalabs/common/mmu
391 19 1