Linux / Arch / Mips
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
  • 19% duplication:
    • 156,936 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 31,276 duplicated lines
  • 3,949 duplicates
system19% (31,276 lines)
Duplication per Extension
h35% (19,182 lines)
c11% (10,510 lines)
S16% (1,468 lines)
pl11% (116 lines)
Duplication per Component (primary)
include36% (19,093 lines)
kernel11% (2,756 lines)
math-emu37% (2,156 lines)
pci12% (939 lines)
cavium-octeon9% (891 lines)
mm10% (773 lines)
lib25% (552 lines)
bcm63xx18% (518 lines)
alchemy6% (411 lines)
net15% (392 lines)
loongson6418% (331 lines)
kvm5% (327 lines)
loongson2ef18% (284 lines)
crypto12% (232 lines)
dec10% (182 lines)
vr41xx14% (163 lines)
sni13% (159 lines)
sibyte8% (137 lines)
lantiq8% (132 lines)
generic14% (120 lines)
ath7912% (107 lines)
sgi-ip227% (97 lines)
txx94% (80 lines)
fw9% (78 lines)
sgi-ip276% (70 lines)
ar74% (62 lines)
bcm47xx2% (47 lines)
cobalt11% (36 lines)
mti-malta4% (36 lines)
sgi-ip324% (25 lines)
ralink1% (18 lines)
sgi-ip303% (17 lines)
loongson322% (16 lines)
pic322% (12 lines)
vdso2% (12 lines)
jazz1% (8 lines)
boot<1% (7 lines)
power0% (0 lines)
bmips0% (0 lines)
tools0% (0 lines)
rb5320% (0 lines)
n640% (0 lines)
ath250% (0 lines)

Duplication Between Components (50+ lines)

G cavium-octeon cavium-octeon lib lib cavium-octeon--lib 352 loongson2ef loongson2ef loongson64 loongson64 loongson2ef--loongson64 100 cobalt cobalt vr41xx vr41xx cobalt--vr41xx 63 dec dec include include dec--include 62 sgi-ip22 sgi-ip22 sni sni sgi-ip22--sni 54 kernel kernel math-emu math-emu kernel--math-emu 54

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 3,949 duplicates...
Size#FoldersFilesLinesCode
129 x 2 include/asm/octeon
include/asm/octeon
1516:1646 (3%)
2327:2457 (3%)
view
127 x 2 include/asm/octeon
include/asm/octeon
664:792 (5%)
1098:1226 (5%)
view
124 x 2 include/asm/octeon
include/asm/octeon
1518:1642 (3%)
1918:2042 (3%)
view
124 x 2 include/asm/octeon
include/asm/octeon
1651:1775 (3%)
2049:2173 (3%)
view
124 x 2 include/asm/octeon
include/asm/octeon
1918:2042 (3%)
2329:2453 (3%)
view
122 x 2 include/asm/octeon
include/asm/octeon
2460:2582 (3%)
2716:2838 (3%)
view
122 x 2 include/asm/octeon
include/asm/octeon
1784:1906 (3%)
2180:2302 (3%)
view
109 x 2 include/asm/octeon
include/asm/octeon
890:1000 (5%)
1324:1434 (5%)
view
102 x 2 include/asm/octeon
include/asm/octeon
599:701 (9%)
710:812 (9%)
view
94 x 2 include/asm/octeon
include/asm/octeon
243:337 (8%)
880:974 (8%)
view
91 x 2 include/asm/octeon
include/asm/octeon
504:596 (8%)
979:1071 (8%)
view
91 x 2 include/asm/octeon
include/asm/octeon
795:887 (4%)
1229:1321 (4%)
view
88 x 2 include/asm/octeon
include/asm/octeon
408:496 (8%)
717:805 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
408:496 (8%)
980:1068 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
717:805 (8%)
980:1068 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
408:496 (8%)
883:971 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
717:805 (8%)
883:971 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
1003:1092 (4%)
1437:1526 (4%)
view
88 x 2 include/asm/octeon
include/asm/octeon
408:496 (8%)
606:694 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
408:496 (8%)
505:593 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
606:694 (8%)
883:971 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
606:694 (8%)
980:1068 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
505:593 (8%)
717:805 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
505:593 (8%)
606:694 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
505:593 (8%)
883:971 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
883:971 (8%)
980:1068 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
246:334 (8%)
717:805 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
246:334 (8%)
980:1068 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
246:334 (8%)
408:496 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
246:334 (8%)
606:694 (8%)
view
88 x 2 include/asm/octeon
include/asm/octeon
246:334 (8%)
505:593 (8%)
view
84 x 2 include/asm/octeon
include/asm/octeon
685:769 (3%)
1004:1088 (3%)
view
84 x 2 include/asm/octeon
include/asm/octeon
685:769 (3%)
1438:1522 (3%)
view
84 x 2 include/asm/octeon
include/asm/octeon
1004:1088 (3%)
1119:1203 (3%)
view
84 x 2 include/asm/octeon
include/asm/octeon
1119:1203 (3%)
1438:1522 (3%)
view
74 x 2 include/asm/octeon
include/asm/octeon
1634:1708 (3%)
1800:1874 (3%)
view
72 x 2 include/asm/octeon
include/asm/octeon
288:360 (2%)
509:581 (2%)
view
71 x 2 include/asm/octeon
include/asm/octeon
1369:1441 (4%)
1586:1658 (4%)
view
68 x 2 include/asm/octeon
include/asm/octeon
1511:1580 (4%)
1728:1797 (4%)
view
66 x 2 include/asm/octeon
include/asm/octeon
326:393 (13%)
300:367 (14%)
view
66 x 2 include/asm/octeon
include/asm/octeon
326:393 (13%)
373:440 (14%)
view
66 x 2 include/asm/octeon
include/asm/octeon
300:367 (14%)
373:440 (14%)
view
66 x 2 include/asm/octeon
include/asm/octeon
253:320 (13%)
326:393 (13%)
view
66 x 2 include/asm/octeon
include/asm/octeon
253:320 (13%)
300:367 (14%)
view
66 x 2 include/asm/octeon
include/asm/octeon
253:320 (13%)
373:440 (14%)
view
63 x 2 include/asm/octeon
include/asm/octeon
1444:1508 (3%)
1661:1725 (3%)
view
61 x 2 include/asm/octeon
include/asm/octeon
812:874 (3%)
1193:1255 (3%)
view
59 x 2 include/asm/octeon
include/asm/octeon
342:402 (5%)
817:877 (5%)
view
56 x 2 include/asm/octeon
include/asm/octeon
343:399 (5%)
996:1052 (5%)
view
56 x 2 include/asm/octeon
include/asm/octeon
343:399 (5%)
899:955 (5%)
view
Duplicated Units
The list of top 30 duplicated units.
See data for all 30 unit duplicates...
Size#FoldersFilesLinesCode
17 x 3 alchemy/devboards
alchemy/devboards
alchemy/devboards
188:208 
153:173 
131:151 
view
15 x 2 include/asm/mach-loongson64
include/asm/mach-loongson64
19:35 
142:159 
view
14 x 2 loongson2ef/common
loongson64
21:40 
21:40 
view
14 x 2 sibyte/sb1250
sibyte/bcm1480
115:131 
126:142 
view
14 x 2 kernel
kernel
72:91 
71:90 
view
14 x 2 kernel
kernel
42:57 
179:194 
view
13 x 2 include/asm/mach-loongson64
include/asm/mach-loongson64
180:194 
196:210 
view
13 x 2 kernel
kernel
824:842 
851:869 
view
11 x 2 pci
pci
283:294 
190:201 
view
11 x 2 include/uapi/asm
include/uapi/asm
35:47 
55:67 
view
11 x 2 sgi-ip32
sgi-ip32
52:66 
70:84 
view
11 x 2 kernel
kernel
775:790 
800:815 
view
10 x 2 loongson2ef/common
loongson64
134:145 
80:91 
view
10 x 2 include/asm/vdso
kernel
152:164 
32:44 
view
10 x 2 kernel
kernel
31:43 
41:54 
view
10 x 2 kernel
kernel
57:70 
56:69 
view
9 x 2 loongson2ef/common
loongson64
14:23 
20:29 
view
9 x 2 loongson2ef/common
loongson64
42:54 
42:54 
view
9 x 2 include/asm
include/asm
250:262 
130:142 
view
9 x 3 include/asm
include/asm
kernel
255:264 
265:274 
199:208 
view
9 x 2 sibyte/sb1250
sibyte/bcm1480
96:106 
107:117 
view
7 x 2 loongson2ef/common
loongson64
55:62 
46:53 
view
7 x 2 kernel
kernel
112:122 
137:147 
view
7 x 2 alchemy
alchemy
40:47 
44:51 
view
7 x 2 alchemy/devboards
alchemy/devboards
411:418 
522:529 
view
7 x 2 alchemy/devboards
alchemy/devboards
483:490 
589:596 
view
6 x 2 loongson2ef/common
loongson64
19:26 
25:32 
view
6 x 2 include/asm
include/asm
2761:2767 
2806:2812 
view
6 x 5 ralink
ralink
ralink
ralink
ralink
134:141 
64:71 
51:58 
81:88 
272:279 
view
6 x 2 sgi-ip32
sgi-ip32
129:136 
316:323 
view