Linux / Arch / S390
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
  • 5% duplication:
    • 60,496 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,529 duplicated lines
  • 247 duplicates
system5% (3,529 lines)
Duplication per Extension
c5% (2,223 lines)
S18% (715 lines)
h4% (591 lines)
Duplication per Component (primary)
kernel5% (1,008 lines)
crypto16% (673 lines)
kvm4% (538 lines)
include3% (453 lines)
mm6% (354 lines)
lib16% (167 lines)
pci4% (130 lines)
boot5% (85 lines)
appldata7% (47 lines)
net2% (34 lines)
purgatory8% (26 lines)
hypfs1% (14 lines)
tools0% (0 lines)

Duplication Between Components (50+ lines)

G boot boot purgatory purgatory boot--purgatory 52

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 247 duplicates...
Size#FoldersFilesLinesCode
110 x 2 kernel/vdso32
kernel/vdso64
12:136 (88%)
12:136 (85%)
view
78 x 2 crypto
crypto
525:606 (10%)
620:701 (10%)
view
23 x 2 kernel
kernel
1313:1338 (2%)
1525:1550 (2%)
view
22 x 2 kernel
kernel
1289:1313 (2%)
1493:1517 (2%)
view
20 x 2 boot/compressed
purgatory
13:32 (20%)
10:29 (41%)
view
18 x 2 include/uapi/asm
include/uapi/asm
30:47 (13%)
100:117 (13%)
view
16 x 2 mm
mm
2364:2380 (1%)
2399:2415 (1%)
view
16 x 2 kvm
kvm
287:304 (4%)
312:329 (4%)
view
16 x 2 crypto
crypto
310:330 (2%)
337:357 (2%)
view
16 x 2 kernel
kernel
328:343 (2%)
348:363 (2%)
view
15 x 2 kvm
kvm
255:272 (1%)
302:319 (1%)
view
15 x 2 pci
pci
160:176 (6%)
299:315 (6%)
view
14 x 2 mm
mm
908:925 (1%)
970:987 (1%)
view
14 x 2 kernel
kernel
1112:1128 (1%)
1147:1164 (1%)
view
14 x 2 kernel
kernel
1034:1049 (1%)
1067:1082 (1%)
view
14 x 2 crypto
crypto
76:89 (7%)
86:99 (5%)
view
14 x 2 crypto
crypto
518:535 (2%)
601:618 (2%)
view
14 x 2 mm
mm
127:143 (<1%)
152:168 (<1%)
view
13 x 2 kvm
kvm
43:55 (1%)
58:70 (1%)
view
13 x 2 include/asm
include/asm
98:110 (8%)
119:131 (8%)
view
12 x 2 crypto
crypto
757:772 (1%)
783:798 (1%)
view
12 x 2 pci
pci
120:142 (5%)
262:284 (5%)
view
12 x 2 crypto
crypto
544:555 (1%)
677:688 (1%)
view
12 x 2 crypto
crypto
757:772 (1%)
840:855 (1%)
view
12 x 2 crypto
crypto
525:536 (1%)
658:669 (1%)
view
12 x 2 crypto
crypto
337:352 (1%)
364:379 (1%)
view
12 x 2 crypto
crypto
563:574 (1%)
620:631 (1%)
view
12 x 2 include/asm
lib
106:118 (12%)
288:300 (7%)
view
12 x 2 crypto
crypto
310:325 (1%)
364:379 (1%)
view
12 x 2 include/asm
include/asm
249:262 (5%)
281:294 (5%)
view
12 x 2 kvm
kvm
392:404 (1%)
1101:1114 (1%)
view
12 x 2 crypto
crypto
544:555 (1%)
582:593 (1%)
view
12 x 2 crypto
crypto
582:593 (1%)
639:650 (1%)
view
12 x 2 crypto
crypto
525:536 (1%)
563:574 (1%)
view
12 x 2 kernel
kernel
48:59 (25%)
34:45 (41%)
view
12 x 2 crypto
crypto
783:798 (1%)
840:855 (1%)
view
12 x 2 crypto
crypto
620:631 (1%)
658:669 (1%)
view
12 x 2 crypto
crypto
639:650 (1%)
677:688 (1%)
view
11 x 2 kernel
kernel
147:158 (2%)
190:201 (2%)
view
11 x 2 kernel/vdso32
kernel/vdso64
1:13 (100%)
1:13 (100%)
view
11 x 2 kvm
kvm
152:164 (3%)
419:431 (3%)
view
11 x 2 include/asm
include/asm
95:105 (11%)
114:124 (11%)
view
11 x 2 crypto
crypto
24:36 (5%)
25:37 (4%)
view
11 x 2 mm
mm
80:93 (10%)
119:134 (10%)
view
11 x 2 include/asm
include/asm
335:347 (5%)
363:375 (5%)
view
11 x 2 kernel
kernel
175:185 (3%)
211:221 (3%)
view
11 x 2 kernel
kernel
68:87 (5%)
217:236 (5%)
view
11 x 2 crypto
crypto
178:188 (5%)
240:250 (4%)
view
10 x 2 kernel
kernel
140:150 (4%)
186:196 (3%)
view
10 x 2 include/asm
include/asm
310:321 (4%)
363:374 (4%)
view
Duplicated Units
The list of top 10 duplicated units.
See data for all 10 unit duplicates...
Size#FoldersFilesLinesCode
31 x 2 lib
lib
92:124 
165:197 
view
28 x 2 lib
lib
61:90 
134:163 
view
11 x 2 crypto
crypto
623:636 
554:567 
view
9 x 2 include/asm
include/asm
555:565 
567:577 
view
8 x 2 include/asm
include/asm
157:165 
179:187 
view
7 x 2 kvm
kvm
111:120 
163:172 
view
6 x 2 crypto
crypto
159:167 
274:282 
view
6 x 2 include/asm
include/asm
37:43 
45:51 
view
6 x 2 kernel
kernel
965:971 
986:992 
view
6 x 2 kernel
kernel
692:699 
704:711 
view