Linux / Arch / Arm64
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 4% duplication:
    • 63,483 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,113 duplicated lines
  • 275 duplicates
system4% (3,113 lines)
Duplication per Extension
c4% (1,784 lines)
S6% (845 lines)
h3% (320 lines)
pl15% (164 lines)
Duplication per Component (primary)
crypto12% (1,053 lines)
kvm4% (881 lines)
lib17% (638 lines)
kernel1% (236 lines)
include2% (214 lines)
mm2% (91 lines)
xen0% (0 lines)
tools0% (0 lines)
net0% (0 lines)
boot0% (0 lines)
hyperv0% (0 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 275 duplicates...
Size#FoldersFilesLinesCode
52 x 2 lib
lib
67:119 (32%)
100:152 (21%)
view
31 x 2 crypto
crypto
490:529 (4%)
562:601 (4%)
view
25 x 2 kernel
kernel
1154:1180 (2%)
1468:1494 (2%)
view
23 x 2 crypto
crypto
163:191 (5%)
277:305 (5%)
view
23 x 2 kvm/hyp/nvhe
kvm/hyp/vhe
109:160 (42%)
111:162 (36%)
view
22 x 2 lib
lib
911:942 (2%)
1117:1148 (2%)
view
21 x 2 kvm/hyp/nvhe
kvm/hyp/nvhe
742:763 (4%)
775:796 (4%)
view
20 x 2 crypto
crypto
275:299 (2%)
332:356 (2%)
view
18 x 2 crypto
crypto
123:143 (4%)
211:231 (4%)
view
18 x 2 crypto
crypto
45:65 (2%)
74:94 (2%)
view
18 x 2 crypto
crypto
436:455 (2%)
502:521 (2%)
view
16 x 2 crypto
crypto
410:426 (2%)
477:493 (2%)
view
16 x 2 crypto
crypto
379:395 (2%)
446:462 (2%)
view
16 x 2 crypto
crypto
245:261 (2%)
312:328 (2%)
view
16 x 2 crypto
crypto
276:292 (2%)
343:359 (2%)
view
15 x 2 crypto
crypto
301:322 (2%)
358:379 (2%)
view
15 x 2 kvm/vgic
kvm/vgic
271:293 (2%)
364:386 (2%)
view
15 x 2 lib
lib
83:103 (6%)
128:148 (6%)
view
14 x 2 lib
lib
7:25 (8%)
7:25 (5%)
view
14 x 2 crypto
crypto
532:551 (2%)
604:624 (2%)
view
13 x 2 lib
lib
100:115 (5%)
246:261 (5%)
view
13 x 2 lib
lib
1:14 (6%)
1:14 (9%)
view
13 x 2 lib
lib
236:248 (1%)
274:286 (1%)
view
12 x 2 crypto
crypto
365:380 (3%)
437:452 (3%)
view
12 x 2 crypto
crypto
179:194 (6%)
237:252 (6%)
view
12 x 2 kvm
kvm
2598:2612 (<1%)
2623:2637 (<1%)
view
12 x 2 kvm
kvm
228:241 (5%)
250:263 (5%)
view
12 x 2 kvm
kvm
50:64 (7%)
195:209 (7%)
view
12 x 2 kernel/vdso
kernel/vdso32
61:73 (15%)
49:61 (19%)
view
12 x 2 crypto
crypto
482:494 (2%)
518:530 (2%)
view
11 x 2 lib
lib
47:61 (4%)
83:97 (4%)
view
11 x 2 lib
lib
1:11 (6%)
1:11 (5%)
view
11 x 2 lib
lib
47:61 (4%)
128:142 (4%)
view
11 x 2 lib
lib
969:983 (1%)
1056:1070 (1%)
view
11 x 2 lib
lib
196:208 (4%)
231:243 (4%)
view
11 x 2 lib
lib
196:208 (4%)
274:286 (4%)
view
11 x 2 lib
lib
231:243 (4%)
274:286 (4%)
view
11 x 2 lib
lib
1017:1031 (1%)
1056:1070 (1%)
view
11 x 2 kvm/vgic
kvm/vgic
409:428 (4%)
482:500 (4%)
view
11 x 2 lib
lib
969:983 (1%)
1017:1031 (1%)
view
11 x 2 kvm/hyp/nvhe
kvm/hyp/vhe
58:85 (20%)
82:109 (17%)
view
11 x 2 lib
lib
1:11 (6%)
1:11 (7%)
view
10 x 2 lib
lib
119:131 (4%)
265:277 (4%)
view
10 x 2 lib
lib
738:749 (1%)
969:980 (1%)
view
10 x 2 lib
lib
403:414 (1%)
738:749 (1%)
view
10 x 2 lib
lib
403:414 (1%)
1056:1067 (1%)
view
10 x 2 lib
lib
403:414 (1%)
1017:1028 (1%)
view
10 x 2 lib
lib
738:749 (1%)
1056:1067 (1%)
view
10 x 2 lib
lib
738:749 (1%)
1017:1028 (1%)
view
10 x 2 kvm/hyp/include/hyp
kvm/hyp/include/hyp
130:141 (8%)
149:160 (8%)
view
Duplicated Units
The list of top 7 duplicated units.
See data for all 7 unit duplicates...
Size#FoldersFilesLinesCode
14 x 2 include/asm
include/asm
18:33 
35:50 
view
9 x 2 kvm/hyp/nvhe
kvm/hyp/vhe
112:126 
114:128 
view
9 x 2 kvm/hyp/nvhe
kvm/hyp/vhe
128:141 
130:143 
view
8 x 2 kvm
kvm
47:55 
57:65 
view
7 x 2 include/asm
include/asm
51:58 
60:67 
view
7 x 2 include/asm
kernel
108:122 
267:281 
view
7 x 2 kvm/hyp/nvhe
kvm/hyp/vhe
143:161 
145:163 
view