Linux / Drivers / Interconnect
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 89 units with 1,777 lines of code in units (10.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (407 lines of code)
    • 14 simple units (469 lines of code)
    • 70 very simple units (901 lines of code)
0% | 0% | 22% | 26% | 50%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
c0% | 0% | 22% | 26% | 50%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
qcom0% | 0% | 39% | 26% | 33%
ROOT0% | 0% | 0% | 29% | 70%
samsung0% | 0% | 0% | 65% | 34%
imx0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
110 21 1
92 16 1
74 12 1
65 11 1
66 11 1
55 9 1
58 9 1
45 8 2
40 7 2
36 7 3
28 7 2
30 6 1
17 6 6
31 6 4
22 6 6
32 6 2
33 6 2
21 6 1
21 6 1
40 5 2
32 5 3
36 5 3
26 5 2
27 5 3
14 5 2
29 5 2
25 5 2
11 4 2
42 4 2
26 4 1
13 4 1
23 4 1
20 4 3
20 3 1
15 3 1
8 3 2
7 3 2
19 3 1
14 3 1
14 3 2
12 3 5
26 3 2
20 3 2
11 3 1
27 3 2
10 3 2
18 3 1
13 3 2
15 3 2
12 2 2