Linux / Arch / Arm
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 1,970 files with 290,364 lines of code.
    • 26 very long files (34,901 lines of code)
    • 100 long files (69,124 lines of code)
    • 297 medium size files (94,402 lines of codeclsfd_ftr_w_mp_ins)
    • 345 small files (48,625 lines of code)
    • 1,202 very small files (43,312 lines of code)
12% | 23% | 32% | 16% | 14%
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% | 27% | 33% | 16% | 10%
h13% | 13% | 25% | 19% | 28%
S10% | 17% | 40% | 16% | 13%
pl0% | 100% | 0% | 0% | 0%
boot0% | 0% | 0% | 0% | 100%
inl0% | 0% | 0% | 0% | 100%
lds0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
boot42% | 37% | 12% | 4% | 2%
mach-omap214% | 20% | 36% | 15% | 13%
mm17% | 11% | 49% | 11% | 9%
probes48% | 7% | 28% | 9% | 5%
kernel13% | 25% | 30% | 20% | 9%
nwfpe55% | 0% | 18% | 11% | 14%
mach-davinci16% | 58% | 10% | 8% | 6%
crypto16% | 41% | 28% | 5% | 8%
net87% | 0% | 0% | 12% | 0%
mach-s3c4% | 28% | 29% | 16% | 20%
mach-sa110017% | 9% | 35% | 22% | 14%
mach-pxa3% | 39% | 33% | 15% | 7%
mach-omap10% | 19% | 53% | 18% | 8%
common0% | 61% | 19% | 10% | 8%
mach-at910% | 90% | 0% | 0% | 9%
vfp0% | 57% | 38% | 0% | 4%
mach-ep93xx0% | 40% | 25% | 9% | 23%
mach-rpc0% | 42% | 15% | 21% | 20%
mach-tegra0% | 30% | 36% | 9% | 24%
plat-omap0% | 72% | 0% | 12% | 14%
plat-orion0% | 38% | 26% | 19% | 14%
mach-sunxi0% | 69% | 0% | 13% | 16%
mach-imx0% | 10% | 28% | 29% | 31%
include0% | 0% | 26% | 28% | 44%
mach-orion5x0% | 0% | 65% | 21% | 13%
mach-mmp0% | 0% | 41% | 37% | 20%
mach-ixp4xx0% | 0% | 75% | 9% | 15%
mach-exynos0% | 0% | 64% | 31% | 4%
lib0% | 0% | 25% | 39% | 35%
mach-iop32x0% | 0% | 49% | 34% | 15%
mach-cns3xxx0% | 0% | 72% | 14% | 13%
mach-spear0% | 0% | 48% | 20% | 30%
mach-footbridge0% | 0% | 39% | 16% | 44%
mach-mv78xx00% | 0% | 57% | 9% | 32%
mach-rockchip0% | 0% | 69% | 0% | 30%
mach-bcm0% | 0% | 43% | 23% | 32%
mach-hisi0% | 0% | 72% | 21% | 6%
mach-lpc32xx0% | 0% | 50% | 25% | 23%
mach-mvebu0% | 0% | 19% | 56% | 23%
xen0% | 0% | 49% | 47% | 2%
mach-vexpress0% | 0% | 47% | 35% | 17%
plat-pxa0% | 0% | 51% | 48% | 0%
mach-mxs0% | 0% | 92% | 0% | 7%
mach-dove0% | 0% | 25% | 42% | 31%
mach-qcom0% | 0% | 100% | 0% | 0%
mach-meson0% | 0% | 95% | 0% | 4%
mach-integrator0% | 0% | 39% | 25% | 35%
mach-shmobile0% | 0% | 16% | 33% | 49%
mach-socfpga0% | 0% | 0% | 53% | 46%
mach-s5pv2100% | 0% | 0% | 75% | 24%
mach-ux5000% | 0% | 0% | 54% | 45%
mach-zynq0% | 0% | 0% | 59% | 40%
mach-highbank0% | 0% | 0% | 49% | 50%
vdso0% | 0% | 0% | 49% | 50%
mach-vt85000% | 0% | 0% | 96% | 3%
mach-versatile0% | 0% | 0% | 100% | 0%
mach-milbeaut0% | 0% | 0% | 100% | 0%
mach-mediatek0% | 0% | 0% | 74% | 25%
mach-actions0% | 0% | 0% | 100% | 0%
mach-keystone0% | 0% | 0% | 0% | 100%
plat-versatile0% | 0% | 0% | 0% | 100%
mach-berlin0% | 0% | 0% | 0% | 100%
mach-npcm0% | 0% | 0% | 0% | 100%
mach-realview0% | 0% | 0% | 0% | 100%
mach-nomadik0% | 0% | 0% | 0% | 100%
mach-alpine0% | 0% | 0% | 0% | 100%
mach-sti0% | 0% | 0% | 0% | 100%
mach-oxnas0% | 0% | 0% | 0% | 100%
mach-mstar0% | 0% | 0% | 0% | 100%
mach-axxia0% | 0% | 0% | 0% | 100%
mach-clps711x0% | 0% | 0% | 0% | 100%
mach-artpec0% | 0% | 0% | 0% | 100%
mach-aspeed0% | 0% | 0% | 0% | 100%
mach-gemini0% | 0% | 0% | 0% | 100%
mach-nspire0% | 0% | 0% | 0% | 100%
mach-stm320% | 0% | 0% | 0% | 100%
mach-realtek0% | 0% | 0% | 0% | 100%
mach-lpc18xx0% | 0% | 0% | 0% | 100%
mach-digicolor0% | 0% | 0% | 0% | 100%
mach-moxart0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
softfloat.c
in nwfpe
2393 77
omap_hwmod.c
in mach-omap2
2185 98
2059 -
1993 2
imx6sx-pinfunc.h
in boot/dts
1641 -
1600 82
1424 53
1411 74
S
head.S
in boot/compressed
1378 -
1297 64
board-da850-evm.c
in mach-davinci
1271 20
test-arm.c
in probes/kprobes
1194 1
imx53-pinfunc.h
in boot/dts
1178 -
mmu.c
in mm
1153 40
imx7d-pinfunc.h
in boot/dts
1142 -
test-core.c
in probes/kprobes
1135 47
irq-s3c24xx.c
in mach-s3c
1100 24
imx6dl-pinfunc.h
in boot/dts
1077 -
1073 2
imx6sl-pinfunc.h
in boot/dts
1062 -
S
entry-armv.S
in kernel
1045 -
imx6q-pinfunc.h
in boot/dts
1033 -
SA-1100.h
in mach-sa1100/include/mach
1032 -
devices-da8xx.c
in mach-davinci
1011 20
ezx.c
in mach-pxa
1011 10
test-thumb.c
in probes/kprobes
1003 2
sa1111.c
in common
1000 49
985 3
setup.c
in kernel
983 34
devices.c
in mach-pxa
973 20
dm365.c
in mach-davinci
960 15
imx35-pinfunc.h
in boot/dts
955 -
imx6ul-pinfunc.h
in boot/dts
946 -
S
pm_suspend.S
in mach-at91
942 -
devs.c
in mach-s3c
938 32
gpio-samsung.c
in mach-s3c
937 45
921 -
pm.c
in mach-at91
911 34
imx50-pinfunc.h
in boot/dts
908 -
905 -
879 -
867 -
spitz.c
in mach-pxa
860 41
mux.h
in mach-davinci/include/mach
837 2
stargate2.c
in mach-pxa
828 10
ecard.c
in mach-rpc
818 44
vf610-pinfunc.h
in boot/dts
792 -
792 41
tosa.c
in mach-pxa
789 15
787 30
Files With Most Units (Top 50)
File# lines# units
omap_hwmod.c
in mach-omap2
2185 98
1600 82
softfloat.c
in nwfpe
2393 77
1411 74
1297 64
clock.c
in mach-omap1
690 54
1424 53
sa1111.c
in common
1000 49
powerdomain.c
in mach-omap2
662 47
test-core.c
in probes/kprobes
1135 47
smp.c
in kernel
544 46
gpio-samsung.c
in mach-s3c
937 45
ecard.c
in mach-rpc
818 44
prm44xx.c
in mach-omap2
543 43
clockdomain.c
in mach-omap2
630 41
spitz.c
in mach-pxa
860 41
792 41
mmu.c
in mm
1153 40
balloon3.c
in mach-pxa
647 40
io.h
in mach-ixp4xx/include/mach
418 38
io.c
in mach-omap2
616 37
cm-x300.c
in mach-pxa
718 37
prm3xxx.c
in mach-omap2
461 35
sharpsl_pm.c
in mach-pxa
712 35
cminst44xx.c
in mach-omap2
329 34
pm.c
in mach-at91
911 34
traps.c
in kernel
598 34
setup.c
in kernel
983 34
pdata-quirks.c
in mach-omap2
446 33
dma.c
in plat-omap
702 33
omap-wakeupgen.c
in mach-omap2
445 32
devs.c
in mach-s3c
938 32
core.c
in mach-ep93xx
682 31
cm2xxx.c
in mach-omap2
260 31
474 30
787 30
390 30
vpac270.c
in mach-pxa
582 30
ptrace.c
in kernel
608 30
netwinder-hw.c
in mach-footbridge
452 29
762 29
viper.c
in mach-pxa
783 29
common.c
in plat-orion
651 28
cm33xx.c
in mach-omap2
206 27
pm33xx-core.c
in mach-omap2
315 26
locomo.c
in common
653 26
init.c
in mm
377 26
prm_common.c
in mach-omap2
457 25
prm33xx.c
in mach-omap2
248 25
305 25
Files With Long Lines (Top 9)

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

File# lines# units# long lines
sharpsl_pm.c
in mach-pxa
712 35 4
spear.h
in mach-spear/include/mach
51 - 2
221 - 2
vc.c
in mach-omap2
555 22 1
memory.h
in include/asm
226 9 1
locomo.c
in common
653 26 1
S
754 - 1
nommu.c
in mm
178 14 1
mach-osiris.c
in mach-s3c
314 9 1