Linux / Arch / Openrisc
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
  • 11% duplication:
    • 5,237 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 590 duplicated lines
  • 44 duplicates
system11% (590 lines)
Duplication per Extension
S15% (430 lines)
h11% (98 lines)
c3% (62 lines)
Duplication per Component (primary)
kernel12% (470 lines)
include11% (98 lines)
lib9% (22 lines)
mm0% (0 lines)
Longest Duplicates
The list of 44 longest duplicates.
See data for all 44 duplicates...
Size#FoldersFilesLinesCode
25 x 2 kernel
kernel
150:174 (2%)
189:213 (2%)
view
19 x 2 kernel
kernel
72:91 (6%)
134:153 (6%)
view
17 x 2 kernel
kernel
1555:1575 (1%)
1623:1643 (1%)
view
16 x 2 kernel
kernel
1384:1402 (1%)
1435:1453 (1%)
view
14 x 2 kernel
kernel
470:483 (1%)
486:499 (1%)
view
14 x 2 kernel
kernel
534:547 (<1%)
662:675 (<1%)
view
12 x 2 include/asm
include/asm
17:28 (17%)
34:45 (17%)
view
10 x 2 kernel
kernel
1158:1167 (<1%)
1238:1247 (<1%)
view
10 x 2 kernel
kernel
1174:1183 (<1%)
1255:1264 (<1%)
view
10 x 2 kernel
lib
4:14 (<1%)
4:14 (11%)
view
9 x 2 kernel
kernel
1147:1155 (<1%)
1225:1234 (<1%)
view
8 x 2 kernel
kernel
4:11 (<1%)
4:11 (9%)
view
8 x 2 kernel
lib
4:11 (9%)
4:11 (9%)
view
8 x 2 include/asm
include/asm
155:162 (5%)
230:237 (5%)
view
8 x 2 kernel
kernel
525:532 (<1%)
654:661 (<1%)
view
8 x 2 kernel
kernel
450:457 (<1%)
460:467 (<1%)
view
8 x 2 kernel
kernel
721:728 (<1%)
1072:1079 (<1%)
view
8 x 2 kernel
kernel
1408:1418 (<1%)
1470:1480 (<1%)
view
7 x 2 kernel
kernel
4:10 (<1%)
4:10 (<1%)
view
7 x 2 kernel
kernel
4:10 (<1%)
4:10 (8%)
view
7 x 2 include/asm
include/asm
138:144 (4%)
207:213 (4%)
view
7 x 2 kernel
kernel
721:727 (<1%)
1153:1159 (<1%)
view
7 x 2 kernel
kernel
825:832 (<1%)
891:898 (<1%)
view
7 x 2 kernel
lib
4:10 (<1%)
4:10 (8%)
view
7 x 2 kernel
kernel
1072:1078 (<1%)
1153:1159 (<1%)
view
7 x 2 include/asm/bitops
include/asm/bitops
73:80 (8%)
113:120 (8%)
view
7 x 2 kernel
kernel
835:842 (<1%)
901:908 (<1%)
view
6 x 2 kernel
kernel
548:553 (<1%)
677:682 (<1%)
view
6 x 2 kernel
kernel
614:619 (<1%)
620:625 (<1%)
view
6 x 2 kernel
kernel
1023:1029 (<1%)
1116:1122 (<1%)
view
6 x 2 include/asm/bitops
include/asm/bitops
65:71 (7%)
85:91 (7%)
view
6 x 2 kernel
kernel
1579:1584 (<1%)
1648:1653 (<1%)
view
6 x 2 kernel
kernel
31:39 (13%)
57:65 (13%)
view
6 x 2 include/asm/bitops
include/asm/bitops
85:91 (7%)
105:111 (7%)
view
6 x 2 include/asm/bitops
include/asm/bitops
65:71 (7%)
105:111 (7%)
view
6 x 2 kernel
kernel
462:467 (<1%)
494:499 (<1%)
view
6 x 2 kernel
kernel
620:625 (<1%)
865:870 (<1%)
view
6 x 2 kernel
kernel
360:367 (2%)
407:414 (2%)
view
6 x 2 kernel
kernel
614:619 (<1%)
865:870 (<1%)
view
6 x 2 kernel
kernel
452:457 (<1%)
478:483 (<1%)
view
6 x 2 kernel
kernel
462:467 (<1%)
478:483 (<1%)
view
6 x 2 include/asm/bitops
include/asm/bitops
21:26 (7%)
55:60 (7%)
view
6 x 2 lib
lib
56:62 (6%)
93:99 (6%)
view
6 x 2 kernel
kernel
452:457 (<1%)
494:499 (<1%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
16 x 2 include/asm/bitops
include/asm/bitops
63:81 
103:121 
view
14 x 2 include/asm/bitops
include/asm/bitops
12:27 
46:61 
view
7 x 2 include/asm/bitops
include/asm/bitops
14:23 
13:22 
view
7 x 2 include/asm/bitops
include/asm/bitops
14:23 
14:23 
view