Linux / Arch / Sparc
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
  • 14% duplication:
    • 77,846 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 11,225 duplicated lines
  • 1,586 duplicates
system14% (11,225 lines)
Duplication per Extension
S20% (5,502 lines)
c11% (4,643 lines)
h10% (1,080 lines)
Duplication per Component (primary)
kernel12% (5,320 lines)
lib20% (2,238 lines)
crypto37% (1,538 lines)
include11% (1,034 lines)
mm9% (664 lines)
math-emu26% (193 lines)
vdso17% (142 lines)
net4% (80 lines)
prom1% (16 lines)
power0% (0 lines)
boot0% (0 lines)

Duplication Between Components (50+ lines)

G kernel kernel lib lib kernel--lib 177 mm mm kernel--mm 156 crypto crypto crypto--kernel 101

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 50 longest duplicates.
See data for all 1,586 duplicates...
Size#FoldersFilesLinesCode
39 x 2 kernel
kernel
221:259 (9%)
321:359 (9%)
view
39 x 2 kernel
kernel
281:319 (3%)
419:457 (3%)
view
39 x 2 kernel
kernel
554:592 (3%)
691:729 (3%)
view
39 x 2 kernel
kernel
281:319 (3%)
691:729 (3%)
view
39 x 2 kernel
kernel
419:457 (3%)
691:729 (3%)
view
39 x 2 kernel
kernel
281:319 (3%)
554:592 (3%)
view
39 x 2 kernel
kernel
419:457 (3%)
554:592 (3%)
view
37 x 2 include/asm
include/asm
107:144 (16%)
171:208 (16%)
view
36 x 2 kernel
kernel
149:184 (8%)
248:283 (8%)
view
33 x 2 kernel
kernel
590:625 (7%)
154:189 (8%)
view
33 x 2 kernel
kernel
378:429 (12%)
672:722 (7%)
view
33 x 2 crypto
crypto
457:495 (2%)
522:560 (2%)
view
31 x 2 kernel
kernel
74:113 (16%)
144:183 (8%)
view
31 x 2 kernel
kernel
188:218 (7%)
288:318 (7%)
view
28 x 2 kernel
kernel
291:318 (6%)
389:416 (6%)
view
28 x 2 kernel
kernel
191:218 (6%)
389:416 (6%)
view
28 x 2 kernel
kernel
292:331 (10%)
369:408 (6%)
view
27 x 2 mm
mm
136:162 (11%)
182:208 (11%)
view
27 x 2 crypto
crypto
374:400 (5%)
525:551 (5%)
view
25 x 2 crypto
crypto
755:779 (1%)
786:810 (1%)
view
25 x 2 include/asm
include/asm
56:81 (11%)
171:196 (11%)
view
25 x 2 crypto
crypto
1383:1407 (1%)
1444:1468 (1%)
view
25 x 2 crypto
crypto
372:396 (4%)
447:471 (4%)
view
25 x 2 include/asm
include/asm
56:81 (11%)
107:132 (11%)
view
25 x 2 lib
lib
19:43 (10%)
83:107 (10%)
view
24 x 2 include/asm
include/asm
105:128 (19%)
149:172 (19%)
view
24 x 2 kernel
kernel
402:433 (7%)
1056:1084 (3%)
view
24 x 2 kernel
kernel
60:96 (9%)
123:159 (5%)
view
23 x 2 lib
lib
44:66 (8%)
104:126 (8%)
view
23 x 2 crypto
crypto
449:471 (4%)
525:547 (4%)
view
23 x 2 crypto
crypto
271:293 (4%)
317:339 (4%)
view
22 x 2 crypto
crypto
38:61 (36%)
40:63 (35%)
view
22 x 2 crypto
crypto
38:61 (36%)
46:69 (32%)
view
22 x 2 kernel
kernel
262:283 (5%)
361:382 (5%)
view
22 x 2 kernel
kernel
401:424 (4%)
535:558 (4%)
view
22 x 2 kernel
kernel
165:194 (8%)
219:248 (5%)
view
22 x 2 kernel
kernel
163:184 (5%)
361:382 (5%)
view
22 x 2 crypto
crypto
40:63 (35%)
46:69 (32%)
view
21 x 2 crypto
crypto
1422:1442 (1%)
1483:1503 (1%)
view
21 x 2 crypto
crypto
728:748 (1%)
755:775 (1%)
view
21 x 2 include/asm
include/uapi/asm
45:76 (15%)
75:106 (27%)
view
21 x 2 crypto
crypto
728:748 (1%)
786:806 (1%)
view
21 x 2 kernel
kernel
61:82 (9%)
223:244 (4%)
view
21 x 2 lib
lib
33:58 (3%)
25:50 (3%)
view
21 x 2 kernel
kernel
206:246 (6%)
740:780 (2%)
view
21 x 2 crypto
crypto
1361:1381 (1%)
1483:1503 (1%)
view
21 x 2 lib
lib
201:224 (5%)
266:289 (5%)
view
21 x 2 crypto
crypto
1361:1381 (1%)
1422:1442 (1%)
view
21 x 2 crypto
crypto
51:71 (5%)
184:204 (5%)
view
20 x 2 kernel
kernel
174:194 (9%)
188:208 (3%)
view
Duplicated Units
The list of top 35 duplicated units.
See data for all 35 unit duplicates...
Size#FoldersFilesLinesCode
21 x 2 kernel
kernel
92:115 
162:185 
view
20 x 2 include/asm
include/asm
437:459 
461:483 
view
20 x 3 kernel
kernel
kernel
63:89 
725:751 
644:670 
view
20 x 2 kernel
kernel
151:174 
120:143 
view
16 x 2 kernel
kernel
141:160 
78:97 
view
16 x 2 kernel
kernel
112:129 
131:148 
view
14 x 2 include/asm
include/asm
21:36 
38:53 
view
13 x 2 include/asm
include/asm
11:25 
27:41 
view
13 x 2 include/asm
include/asm
169:182 
228:241 
view
13 x 2 kernel
kernel
74:89 
144:159 
view
13 x 2 kernel
kernel
242:258 
260:276 
view
11 x 2 include/asm
include/asm
79:90 
99:110 
view
10 x 2 include/asm
include/asm
46:57 
386:397 
view
9 x 2 prom
prom
353:364 
366:377 
view
9 x 2 include/asm
include/asm
34:44 
361:371 
view
9 x 2 mm
kernel
139:151 
664:676 
view
9 x 2 kernel
kernel
702:713 
409:420 
view
9 x 2 kernel
kernel
151:163 
250:261 
view
9 x 2 kernel
kernel
140:149 
104:113 
view
8 x 2 include/asm
include/asm
133:142 
199:208 
view
8 x 2 kernel
kernel
690:700 
397:407 
view
8 x 2 kernel
kernel
674:683 
741:751 
view
7 x 2 prom
prom
343:351 
417:425 
view
7 x 2 vdso
vdso
105:113 
115:123 
view
7 x 2 include/asm
include/asm
276:283 
369:376 
view
7 x 2 kernel
kernel
94:101 
41:48 
view
7 x 2 kernel
kernel
445:453 
231:239 
view
6 x 2 include/asm
include/asm
115:121 
49:55 
view
6 x 2 include/asm
include/asm
123:129 
57:63 
view
6 x 2 include/asm
include/asm
63:69 
31:37 
view
6 x 2 include/asm
include/asm
72:78 
40:46 
view
6 x 2 include/asm
include/asm
100:106 
115:121 
view
6 x 2 kernel
kernel
55:62 
70:77 
view
6 x 2 kernel
kernel
387:394 
81:88 
view
6 x 2 kernel
kernel
459:466 
783:790 
view