Linux / Drivers / Infiniband
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 543 files with 323,799 lines of code.
    • 92 very long files (203,074 lines of code)
    • 88 long files (61,378 lines of code)
    • 118 medium size files (38,714 lines of codeclsfd_ftr_w_mp_ins)
    • 92 small files (13,728 lines of code)
    • 153 very small files (6,905 lines of code)
62% | 18% | 11% | 4% | 2%
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
c67% | 18% | 10% | 3% | <1%
h38% | 20% | 21% | 10% | 9%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
hw66% | 16% | 11% | 3% | 2%
core61% | 20% | 12% | 4% | 1%
ulp60% | 18% | 13% | 6% | <1%
sw31% | 37% | 17% | 7% | 6%
Longest Files (Top 50)
File# lines# units
chip.c
in hw/hfi1
10979 568
qib_iba7322.c
in hw/qib
6018 145
5153 193
qp.c
in hw/mlx5
4632 131
ctrl.c
in hw/irdma
4226 88
cma.c
in core
4137 161
cm.c
in core
3786 107
tid_rdma.c
in hw/hfi1
3742 107
main.c
in hw/mlx5
3738 138
mad.c
in hw/hfi1
3620 96
cm.c
in hw/cxgb4
3609 97
qp.c
in hw/mlx4
3543 91
verbs.c
in hw/irdma
3521 82
verbs.c
in hw/qedr
3512 103
cm.c
in hw/irdma
3318 83
3294 74
ib_verbs.c
in hw/bnxt_re
3248 95
qib_iba7220.c
in hw/qib
3181 83
ib_srp.c
in ulp/srp
3145 103
roce_hsi.h
in hw/bnxt_re
2910 -
2894 -
ocrdma_hw.c
in hw/ocrdma
2761 100
ib_srpt.c
in ulp/srpt
2750 100
main.c
in hw/mlx4
2716 75
devx.c
in hw/mlx5
2561 60
mad.c
in core
2481 74
ocrdma_verbs.c
in hw/ocrdma
2464 100
qplib_fp.c
in hw/bnxt_re
2460 67
sdma.c
in hw/hfi1
2457 74
qp.c
in hw/cxgb4
2389 57
qib_iba6120.c
in hw/qib
2377 77
fs.c
in hw/mlx5
2312 39
rc.c
in hw/hfi1
2255 26
rtrs-clt.c
in ulp/rtrs
2248 79
qp.c
in sw/rdmavt
2175 63
verbs.c
in core
2156 69
ib_isert.c
in ulp/isert
2090 8
mr.c
in hw/mlx5
2076 57
nldev.c
in core
2049 64
hw.c
in hw/irdma
2006 59
mad.c
in hw/mlx4
1971 55
ipoib_main.c
in ulp/ipoib
1952 78
device.c
in core
1889 77
ocrdma_sli.h
in hw/ocrdma
1863 -
qib_mad.c
in hw/qib
1857 62
sa_query.c
in core
1832 48
rtrs-srv.c
in ulp/rtrs
1803 63
mthca_qp.c
in hw/mthca
1790 47
utils.c
in hw/irdma
1771 71
efa_verbs.c
in hw/efa
1750 51
Files With Most Units (Top 50)
File# lines# units
chip.c
in hw/hfi1
10979 568
5153 193
cma.c
in core
4137 161
qib_iba7322.c
in hw/qib
6018 145
main.c
in hw/mlx5
3738 138
qp.c
in hw/mlx5
4632 131
rxe_hdr.h
in sw/rxe
686 113
cm.c
in core
3786 107
tid_rdma.c
in hw/hfi1
3742 107
verbs.c
in hw/qedr
3512 103
ib_srp.c
in ulp/srp
3145 103
ocrdma_verbs.c
in hw/ocrdma
2464 100
ocrdma_hw.c
in hw/ocrdma
2761 100
ib_srpt.c
in ulp/srpt
2750 100
cm.c
in hw/cxgb4
3609 97
mad.c
in hw/hfi1
3620 96
ib_verbs.c
in hw/bnxt_re
3248 95
qp.c
in hw/mlx4
3543 91
ctrl.c
in hw/irdma
4226 88
qib_iba7220.c
in hw/qib
3181 83
cm.c
in hw/irdma
3318 83
verbs.c
in hw/irdma
3521 82
rtrs-clt.c
in ulp/rtrs
2248 79
ipoib_main.c
in ulp/ipoib
1952 78
device.c
in core
1889 77
qib_iba6120.c
in hw/qib
2377 77
main.c
in hw/mlx4
2716 75
mad.c
in core
2481 74
3294 74
sdma.c
in hw/hfi1
2457 74
hfi.h
in hw/hfi1
1628 72
utils.c
in hw/irdma
1771 71
verbs.c
in core
2156 69
debugfs.c
in hw/hfi1
1057 68
qplib_fp.c
in hw/bnxt_re
2460 67
nldev.c
in core
2049 64
qp.c
in sw/rdmavt
2175 63
mthca_cmd.c
in hw/mthca
1569 63
rtrs-srv.c
in ulp/rtrs
1803 63
main.c
in hw/bnxt_re
1404 62
qib_mad.c
in hw/qib
1857 62
devx.c
in hw/mlx5
2561 60
hw.c
in hw/irdma
2006 59
ucma.c
in core
1477 57
qp.c
in hw/cxgb4
2389 57
mr.c
in hw/mlx5
2076 57
wr.c
in hw/mlx5
1212 56
mad.c
in hw/mlx4
1971 55
hns_roce_qp.c
in hw/hns
1179 55
cache.c
in core
1087 52
Files With Long Lines (Top 33)

There are 33 files with lines longer than 120 characters. In total, there are 46 long lines.

File# lines# units# long lines
ib_srp.c
in ulp/srp
3145 103 5
init.c
in hw/hfi1
1262 36 4
hw.c
in hw/irdma
2006 59 3
1687 49 2
trace_cm.h
in hw/irdma
422 - 2
efa_com.c
in hw/efa
887 36 2
rtrs-srv.c
in ulp/rtrs
1803 63 2
trace_rc.h
in sw/rdmavt
56 - 1
qp.c
in sw/rdmavt
2175 63 1
trace_tx.h
in sw/rdmavt
150 - 1
ucma.c
in core
1477 57 1
957 43 1
cm.c
in core
3786 107 1
qp.c
in hw/cxgb4
2389 57 1
device.c
in hw/cxgb4
1313 42 1
cq.c
in hw/cxgb4
869 23 1
cm.c
in hw/cxgb4
3609 97 1
mcg.c
in hw/mlx4
1024 33 1
main.c
in hw/mlx5
3738 138 1
sdma.c
in hw/hfi1
2457 74 1
trace_rc.h
in hw/hfi1
108 - 1
qp.c
in hw/hfi1
685 34 1
trace_tx.h
in hw/hfi1
982 - 1
pio.c
in hw/hfi1
1364 51 1
driver.c
in hw/hfi1
1348 52 1
qedr_roce_cm.c
in hw/qedr
553 17 1
main.c
in hw/qedr
837 32 1
verbs.c
in hw/qedr
3512 103 1
ctrl.c
in hw/irdma
4226 88 1
verbs.c
in hw/irdma
3521 82 1
cm.c
in hw/irdma
3318 83 1
ib_srpt.c
in ulp/srpt
2750 100 1
ipoib_main.c
in ulp/ipoib
1952 78 1