Linux / Arch / Microblaze
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
  • 6% duplication:
    • 8,300 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 560 duplicated lines
  • 43 duplicates
system6% (560 lines)
Duplication per Extension
S8% (308 lines)
c6% (228 lines)
h2% (24 lines)
Duplication per Component (primary)
kernel6% (279 lines)
lib12% (183 lines)
pci9% (74 lines)
include2% (24 lines)
boot0% (0 lines)
mm0% (0 lines)
Longest Duplicates
The list of 43 longest duplicates.
See data for all 43 duplicates...
Size#FoldersFilesLinesCode
24 x 2 pci
pci
21:50 (23%)
75:104 (23%)
view
13 x 2 lib
lib
125:137 (7%)
145:157 (7%)
view
13 x 2 lib
lib
70:82 (17%)
72:84 (16%)
view
13 x 2 kernel
kernel
638:651 (1%)
709:722 (1%)
view
13 x 2 pci
pci
220:240 (2%)
260:285 (2%)
view
12 x 2 include/asm
include/asm
101:112 (6%)
170:181 (6%)
view
11 x 2 kernel
kernel
63:73 (7%)
124:134 (7%)
view
10 x 2 lib
lib
48:57 (14%)
64:73 (12%)
view
8 x 2 lib
lib
50:57 (11%)
64:71 (10%)
view
8 x 2 kernel
kernel
541:548 (<1%)
641:648 (<1%)
view
8 x 2 kernel
kernel
541:548 (<1%)
712:719 (<1%)
view
8 x 2 kernel
kernel
518:525 (<1%)
619:626 (<1%)
view
8 x 2 kernel/cpu
kernel/cpu
529:536 (2%)
591:598 (2%)
view
8 x 2 lib
lib
39:46 (11%)
55:62 (10%)
view
8 x 2 kernel/cpu
kernel/cpu
513:520 (2%)
576:583 (2%)
view
8 x 2 kernel
kernel
518:525 (<1%)
690:697 (<1%)
view
8 x 2 kernel/cpu
kernel/cpu
418:429 (2%)
445:457 (2%)
view
8 x 2 kernel
kernel
619:626 (<1%)
690:697 (<1%)
view
8 x 2 lib
lib
64:71 (11%)
64:71 (11%)
view
7 x 2 lib
lib
8:17 (43%)
8:17 (41%)
view
7 x 2 kernel
kernel
563:570 (<1%)
780:786 (<1%)
view
7 x 2 lib
lib
8:17 (41%)
8:17 (43%)
view
7 x 2 kernel
kernel
557:563 (<1%)
569:575 (<1%)
view
7 x 2 lib
lib
8:17 (43%)
8:17 (43%)
view
7 x 2 lib
lib
56:62 (10%)
56:62 (10%)
view
7 x 2 kernel/cpu
kernel/cpu
161:171 (1%)
188:198 (1%)
view
6 x 2 kernel
kernel
79:101 (3%)
106:115 (3%)
view
6 x 2 kernel
kernel
298:303 (<1%)
304:309 (<1%)
view
6 x 2 kernel
kernel
527:532 (<1%)
569:574 (<1%)
view
6 x 2 kernel/cpu
kernel/cpu
186:195 (1%)
445:454 (1%)
view
6 x 2 kernel
kernel
629:635 (<1%)
700:706 (<1%)
view
6 x 2 kernel
kernel
485:490 (<1%)
669:675 (<1%)
view
6 x 2 kernel
kernel
595:601 (<1%)
837:843 (<1%)
view
6 x 2 kernel
kernel
447:452 (<1%)
632:638 (<1%)
view
6 x 2 lib
lib
78:89 (6%)
100:111 (5%)
view
6 x 2 kernel
kernel
527:532 (<1%)
557:562 (<1%)
view
6 x 2 lib
lib
18:25 (35%)
14:19 (46%)
view
6 x 2 kernel/cpu
kernel/cpu
186:195 (1%)
418:426 (1%)
view
6 x 2 kernel
kernel
281:286 (<1%)
304:309 (<1%)
view
6 x 2 kernel
kernel
6:12 (3%)
9:15 (9%)
view
6 x 2 lib
lib
15:21 (8%)
17:23 (8%)
view
6 x 2 kernel/cpu
kernel/cpu
378:387 (1%)
398:406 (1%)
view
6 x 2 kernel
kernel
281:286 (<1%)
298:303 (<1%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
8 x 2 kernel
kernel
77:102 
104:116 
view
8 x 2 kernel/cpu
kernel/cpu
46:54 
56:64 
view
8 x 2 kernel/cpu
kernel/cpu
66:74 
76:84 
view
7 x 2 include/asm
include/asm
25:33 
35:43 
view