Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1402878

Re: [kernel-hardening] [PATCH v8 3/4] Add Cyclomatic complexity GCC plugin

From Emese Revfy <re.emese@gmail.com>
Newsgroups linux.kernel
Subject Re: [kernel-hardening] [PATCH v8 3/4] Add Cyclomatic complexity GCC plugin
Date 2016-05-18 12:50 +0200
Message-ID <rA7d7-WC-1@gated-at.bofh.it> (permalink)
References <ry8wG-81C-3@gated-at.bofh.it> <ry8Gm-868-7@gated-at.bofh.it> <rA51E-7Zz-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 18 May 2016 18:25:00 +1000
Andrew Donnellan <andrew.donnellan@au1.ibm.com> wrote:

> On 13/05/16 09:58, Emese Revfy wrote:
> > Add a very simple plugin to demonstrate the GCC plugin infrastructure. This GCC
> > plugin computes the cyclomatic complexity of each function.
> 
> ...
> 
> > +config GCC_PLUGIN_CYC_COMPLEXITY
> > +	bool "Compute the cyclomatic complexity of a function"
> > +	depends on GCC_PLUGINS
> > +	help
> > +	  The complexity M of a function's control flow graph is defined as:
> > +	   M = E - N + 2P
> > +	  where
> > +
> > +	  E = the number of edges
> > +	  N = the number of nodes
> > +	  P = the number of connected components (exit nodes).
> > +
> 
> If this plugin is intended primarily as a demonstration it's probably 
> worth mentioning this in the Kconfig description.

Hi,

Before sancov this plugin demonstrated the gcc plugin infrastructure but otherwise this is a fully working plugin not a test plugin. Also it doesn't demonstrate all aspects of writing gcc plugins.

-- 
Emese

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v8 0/4] Introduce GCC plugin infrastructure Emese Revfy <re.emese@gmail.com> - 2016-05-13 01:50 +0200
  [PATCH v8 4/4] Add sancov plugin Emese Revfy <re.emese@gmail.com> - 2016-05-13 02:00 +0200
  [PATCH v8 3/4] Add Cyclomatic complexity GCC plugin Emese Revfy <re.emese@gmail.com> - 2016-05-13 02:00 +0200
    Re: [kernel-hardening] [PATCH v8 3/4] Add Cyclomatic complexity GCC  plugin Andrew Donnellan <andrew.donnellan@au1.ibm.com> - 2016-05-18 10:30 +0200
      Re: [kernel-hardening] [PATCH v8 3/4] Add Cyclomatic complexity GCC  plugin Emese Revfy <re.emese@gmail.com> - 2016-05-18 12:50 +0200
  Re: [PATCH v8 2/4] GCC plugin infrastructure Michal Marek <mmarek@suse.com> - 2016-05-17 16:30 +0200
    Re: [PATCH v8 2/4] GCC plugin infrastructure Emese Revfy <re.emese@gmail.com> - 2016-05-18 12:50 +0200
  Re: [kernel-hardening] [PATCH v8 2/4] GCC plugin infrastructure Andrew Donnellan <andrew.donnellan@au1.ibm.com> - 2016-05-18 11:00 +0200
    Re: [kernel-hardening] [PATCH v8 2/4] GCC plugin infrastructure Emese Revfy <re.emese@gmail.com> - 2016-05-18 12:30 +0200
      Re: [kernel-hardening] [PATCH v8 2/4] GCC plugin infrastructure Andrew Donnellan <andrew.donnellan@au1.ibm.com> - 2016-05-18 23:20 +0200
      Re: [kernel-hardening] [PATCH v8 2/4] GCC plugin infrastructure Michael Ellerman <mpe@ellerman.id.au> - 2016-05-19 08:30 +0200
        Re: [kernel-hardening] [PATCH v8 2/4] GCC plugin infrastructure Andrew Donnellan <andrew.donnellan@au1.ibm.com> - 2016-05-19 08:50 +0200
        Re: [kernel-hardening] [PATCH v8 2/4] GCC plugin infrastructure "PaX Team" <pageexec@freemail.hu> - 2016-05-19 10:50 +0200
          Re: [kernel-hardening] [PATCH v8 2/4] GCC plugin infrastructure Andrew Donnellan <andrew.donnellan@au1.ibm.com> - 2016-05-20 08:30 +0200
          Re: [kernel-hardening] [PATCH v8 2/4] GCC plugin infrastructure Michael Ellerman <mpe@ellerman.id.au> - 2016-05-20 12:20 +0200

csiph-web