Linux / Arch / Xtensa
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
  • 8% duplication:
    • 13,628 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,121 duplicated lines
  • 122 duplicates
system8% (1,121 lines)
Duplication per Extension
S8% (517 lines)
h18% (507 lines)
c1% (82 lines)
ld30% (15 lines)
Duplication per Component (primary)
include11% (275 lines)
lib14% (246 lines)
kernel3% (240 lines)
variants61% (232 lines)
mm9% (92 lines)
boot9% (36 lines)
platforms0% (0 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 122 duplicates...
Size#FoldersFilesLinesCode
19 x 2 mm
mm
64:87 (6%)
175:198 (6%)
view
16 x 2 include/asm
include/asm
146:161 (17%)
167:182 (17%)
view
16 x 2 variants/csp/include/variant
variants/dc233c/include/variant
119:157 (18%)
118:156 (19%)
view
15 x 2 variants/csp/include/variant
variants/dc233c/include/variant
52:90 (17%)
52:91 (18%)
view
15 x 2 include/asm
include/asm
120:134 (9%)
161:175 (9%)
view
15 x 2 boot/boot-elf
boot/boot-redboot
24:39 (41%)
37:53 (30%)
view
15 x 2 include/asm
include/asm
155:169 (10%)
225:239 (10%)
view
15 x 2 lib
lib
42:56 (2%)
310:324 (2%)
view
14 x 2 lib
lib
60:73 (2%)
112:125 (4%)
view
14 x 2 include/asm
include/asm
60:73 (8%)
99:112 (8%)
view
14 x 2 kernel
kernel
343:357 (4%)
34:48 (28%)
view
13 x 2 kernel
kernel
1599:1611 (<1%)
1809:1821 (<1%)
view
13 x 2 kernel
kernel
143:155 (3%)
102:114 (6%)
view
13 x 2 kernel
kernel
999:1011 (<1%)
1809:1821 (<1%)
view
13 x 2 kernel
kernel
999:1011 (<1%)
1599:1611 (<1%)
view
13 x 2 lib
lib
42:54 (2%)
40:52 (4%)
view
13 x 2 lib
lib
310:322 (2%)
40:52 (4%)
view
12 x 2 kernel
kernel
103:114 (5%)
1600:1611 (<1%)
view
12 x 2 variants/csp/include/variant
variants/de212/include/variant
155:167 (13%)
133:145 (18%)
view
12 x 2 include/asm
include/asm
31:42 (10%)
55:66 (10%)
view
12 x 2 kernel
kernel
144:155 (2%)
1000:1011 (<1%)
view
12 x 2 kernel
kernel
103:114 (5%)
1000:1011 (<1%)
view
12 x 2 lib
lib
21:33 (6%)
20:32 (9%)
view
12 x 2 variants/csp/include/variant
variants/de212/include/variant
89:101 (13%)
79:91 (18%)
view
12 x 2 kernel
kernel
144:155 (2%)
1600:1611 (<1%)
view
12 x 2 kernel
kernel
103:114 (5%)
1810:1821 (<1%)
view
12 x 2 kernel
kernel
144:155 (2%)
1810:1821 (<1%)
view
11 x 2 lib
lib
21:31 (2%)
297:307 (2%)
view
11 x 2 variants/csp/include/variant
variants/de212/include/variant
117:156 (64%)
92:131 (73%)
view
11 x 2 mm
mm
35:45 (3%)
127:137 (3%)
view
10 x 2 kernel
kernel
267:276 (<1%)
1811:1820 (<1%)
view
10 x 2 include/asm
include/asm
60:69 (6%)
78:87 (6%)
view
10 x 2 kernel
kernel
104:113 (4%)
267:276 (<1%)
view
10 x 2 kernel
kernel
145:154 (2%)
267:276 (<1%)
view
10 x 2 include/asm
include/asm
78:87 (6%)
99:108 (6%)
view
10 x 2 kernel
kernel
1220:1229 (<1%)
1599:1608 (<1%)
view
10 x 2 include/asm
include/asm
120:129 (6%)
139:148 (6%)
view
10 x 2 kernel
kernel
5:14 (3%)
5:14 (3%)
view
10 x 2 kernel
kernel
267:276 (<1%)
1001:1010 (<1%)
view
10 x 2 kernel
kernel
1045:1054 (<1%)
1082:1091 (<1%)
view
10 x 2 include/asm
include/asm
139:148 (6%)
161:170 (6%)
view
10 x 2 kernel
kernel
999:1008 (<1%)
1220:1229 (<1%)
view
10 x 2 kernel
kernel
1220:1229 (<1%)
1809:1818 (<1%)
view
10 x 2 kernel
kernel
267:276 (<1%)
1601:1610 (<1%)
view
10 x 2 mm
mm
261:278 (7%)
301:319 (7%)
view
10 x 2 include/asm
include/asm
117:129 (10%)
161:173 (10%)
view
9 x 2 kernel
kernel
999:1007 (<1%)
1045:1053 (<1%)
view
9 x 2 include/uapi/asm
include/uapi/asm
35:43 (29%)
46:54 (29%)
view
9 x 2 kernel
kernel
999:1007 (<1%)
1082:1090 (<1%)
view
9 x 2 variants/dc232b/include/variant
variants/fsf/include/variant
65:79 (12%)
39:53 (50%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 platforms/xtfpga
platforms/xtfpga
36:42 
44:50 
view