File tree Expand file tree Collapse file tree 4 files changed +0
-89
lines changed Expand file tree Collapse file tree 4 files changed +0
-89
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ Enable the GCC plugin infrastructure and some plugin(s) you want to use
96
96
in the kernel config::
97
97
98
98
CONFIG_GCC_PLUGINS=y
99
- CONFIG_GCC_PLUGIN_CYC_COMPLEXITY=y
100
99
CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y
101
100
...
102
101
@@ -115,4 +114,3 @@ The GCC plugins are in scripts/gcc-plugins/. You need to put plugin source files
115
114
right under scripts/gcc-plugins/. Creating subdirectories is not supported.
116
115
It must be added to scripts/gcc-plugins/Makefile, scripts/Makefile.gcc-plugins
117
116
and a relevant Kconfig file.
118
- See the cyc_complexity_plugin.c (CONFIG_GCC_PLUGIN_CYC_COMPLEXITY) GCC plugin.
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0
2
2
3
- gcc-plugin-$(CONFIG_GCC_PLUGIN_CYC_COMPLEXITY) += cyc_complexity_plugin.so
4
-
5
3
gcc-plugin-$(CONFIG_GCC_PLUGIN_LATENT_ENTROPY) += latent_entropy_plugin.so
6
4
gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_LATENT_ENTROPY) \
7
5
+= -DLATENT_ENTROPY_PLUGIN
Original file line number Diff line number Diff line change @@ -19,22 +19,6 @@ menuconfig GCC_PLUGINS
19
19
20
20
if GCC_PLUGINS
21
21
22
- config GCC_PLUGIN_CYC_COMPLEXITY
23
- bool "Compute the cyclomatic complexity of a function" if EXPERT
24
- depends on !COMPILE_TEST # too noisy
25
- help
26
- The complexity M of a function's control flow graph is defined as:
27
- M = E - N + 2P
28
- where
29
-
30
- E = the number of edges
31
- N = the number of nodes
32
- P = the number of connected components (exit nodes).
33
-
34
- Enabling this plugin reports the complexity to stderr during the
35
- build. It mainly serves as a simple example of how to create a
36
- gcc plugin for the kernel.
37
-
38
22
config GCC_PLUGIN_SANCOV
39
23
bool
40
24
# Plugin can be removed once the kernel only supports GCC 6+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments