Linux / Drivers / Pnp
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 260 units with 4,889 lines of code in units (75.4% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (212 lines of code)
    • 20 medium complex units (1,076 lines of code)
    • 40 simple units (1,210 lines of code)
    • 198 very simple units (2,391 lines of code)
0% | 4% | 22% | 24% | 48%
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% | 4% | 22% | 24% | 48%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
isapnp0% | 15% | 23% | 15% | 45%
pnpacpi0% | 8% | 22% | 24% | 43%
ROOT0% | 0% | 29% | 26% | 43%
pnpbios0% | 0% | 6% | 28% | 64%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
128 40 2
84 26 2
99 21 4
77 21 2
69 19 2
83 18 1
78 18 2
55 18 1
45 17 2
42 17 2
46 16 1
49 16 2
49 16 2
63 13 1
50 13 3
37 13 4
73 13 2
19 13 1
31 12 3
45 11 3
37 11 1
29 11 1
33 10 1
47 10 1
35 10 1
37 10 1
39 10 1
27 10 2
34 9 3
38 9 1
36 9 1
39 9 4
32 9 1
42 9 3
43 9 2
21 8 1
19 8 1
30 8 1
41 8 3
47 8 3
14 8 2
22 7 2
9 7 1
45 7 1
24 7 2
25 6 4
25 6 3
25 6 1
21 6 1
31 6 2