Re: [PATCH v7 5/6] Documentation for the GCC plugin infrastructure

2016-05-02 Thread Emese Revfy
On Mon, 2 May 2016 14:10:21 +0900 Masahiro Yamada <yamada.masah...@socionext.com> wrote: Hi, > 2016-04-23 3:26 GMT+09:00 Emese Revfy <re.em...@gmail.com>: > > This is the GCC infrastructure documentation about its operation, how to add > > and use a new plugin with an

Re: [PATCH v7 5/6] Documentation for the GCC plugin infrastructure

2016-05-02 Thread Emese Revfy
On Mon, 2 May 2016 14:10:21 +0900 Masahiro Yamada wrote: Hi, > 2016-04-23 3:26 GMT+09:00 Emese Revfy : > > This is the GCC infrastructure documentation about its operation, how to add > > and use a new plugin with an example. > > > > Signed-off-by: E

Re: [kernel-hardening] Re: [PATCH v7 2/6] GCC plugin infrastructure

2016-05-02 Thread Emese Revfy
On Mon, 2 May 2016 14:07:35 +0900 Masahiro Yamada wrote: Hi, > > diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile > > index 253b72e..f912316 100644 > > --- a/arch/x86/entry/vdso/Makefile > > +++ b/arch/x86/entry/vdso/Makefile > > @@ -75,7

Re: [kernel-hardening] Re: [PATCH v7 2/6] GCC plugin infrastructure

2016-05-02 Thread Emese Revfy
On Mon, 2 May 2016 14:07:35 +0900 Masahiro Yamada wrote: Hi, > > diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile > > index 253b72e..f912316 100644 > > --- a/arch/x86/entry/vdso/Makefile > > +++ b/arch/x86/entry/vdso/Makefile > > @@ -75,7 +75,7 @@ CFL := $(PROFILING)

Re: [PATCH v7 1/6] Shared library support

2016-05-02 Thread Emese Revfy
On Mon, 2 May 2016 14:03:00 +0900 Masahiro Yamada wrote: > In the first place, > I am wondering if we need to revive this documentation. > What this commit is only interested in *.so generation, > not host program support. I agree that we don't need this

Re: [PATCH v7 1/6] Shared library support

2016-05-02 Thread Emese Revfy
On Mon, 2 May 2016 14:03:00 +0900 Masahiro Yamada wrote: > In the first place, > I am wondering if we need to revive this documentation. > What this commit is only interested in *.so generation, > not host program support. I agree that we don't need this documentation. I'll remove it. > > @@

[PATCH v7 6/6] Add sancov plugin

2016-04-22 Thread Emese Revfy
try Vyukov (https://gcc.gnu.org/viewcvs/gcc?limit_changes=0=revision=231296). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Makefile| 10 +-- arch/Kconfig| 9 +++ arch/x86/purgatory/Makefile | 2 + lib/Kconfig.debug

[PATCH v7 6/6] Add sancov plugin

2016-04-22 Thread Emese Revfy
try Vyukov (https://gcc.gnu.org/viewcvs/gcc?limit_changes=0=revision=231296). Signed-off-by: Emese Revfy --- Makefile| 10 +-- arch/Kconfig| 9 +++ arch/x86/purgatory/Makefile | 2 + lib/Kconfig.debug | 2

[PATCH v7 5/6] Documentation for the GCC plugin infrastructure

2016-04-22 Thread Emese Revfy
This is the GCC infrastructure documentation about its operation, how to add and use a new plugin with an example. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Documentation/gcc-plugins.txt | 83 +++ arch/Kconfig | 2 ++ 2

[PATCH v7 5/6] Documentation for the GCC plugin infrastructure

2016-04-22 Thread Emese Revfy
This is the GCC infrastructure documentation about its operation, how to add and use a new plugin with an example. Signed-off-by: Emese Revfy --- Documentation/gcc-plugins.txt | 83 +++ arch/Kconfig | 2 ++ 2 files changed, 85 insertions

[PATCH v7 4/6] Add Cyclomatic complexity GCC plugin

2016-04-22 Thread Emese Revfy
of connected components (exit nodes). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- arch/Kconfig| 12 + scripts/Makefile.gcc-plugins| 2 + scripts/gcc-plugins/Makefile| 4 ++ scripts/gcc-plugins/cyc_complexity_plugin.

[PATCH v7 4/6] Add Cyclomatic complexity GCC plugin

2016-04-22 Thread Emese Revfy
of connected components (exit nodes). Signed-off-by: Emese Revfy --- arch/Kconfig| 12 + scripts/Makefile.gcc-plugins| 2 + scripts/gcc-plugins/Makefile| 4 ++ scripts/gcc-plugins/cyc_complexity_plugin.c | 73

[PATCH v7 3/6] The GCC plugin infrastructure supports the arm and arm64 architectures too

2016-04-22 Thread Emese Revfy
The GCC plugin infrastructure supports the arm and arm64 architectures too Signed-off-by: David Brown --- arch/arm/Kconfig | 1 + arch/arm64/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 0846026..8f57eb6 100644

[PATCH v7 3/6] The GCC plugin infrastructure supports the arm and arm64 architectures too

2016-04-22 Thread Emese Revfy
The GCC plugin infrastructure supports the arm and arm64 architectures too Signed-off-by: David Brown --- arch/arm/Kconfig | 1 + arch/arm64/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 0846026..8f57eb6 100644 --- a/arch/arm/Kconfig

[PATCH v7 2/6] GCC plugin infrastructure

2016-04-22 Thread Emese Revfy
the *.so files (only the distclean or mrproper targets clean all) because they are needed for out-of-tree modules. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Documentation/dontdiff | 1 + MAINTAINERS| 8 + Ma

[PATCH v7 2/6] GCC plugin infrastructure

2016-04-22 Thread Emese Revfy
the *.so files (only the distclean or mrproper targets clean all) because they are needed for out-of-tree modules. Signed-off-by: Emese Revfy --- Documentation/dontdiff | 1 + MAINTAINERS| 8 + Makefile

[PATCH v7 1/6] Shared library support

2016-04-22 Thread Emese Revfy
Infrastructure for building independent shared library targets. This effectively also reverts commit 62e2210798ed38928ab24841e8b4878a (Masahiro Yamada, kbuild: drop shared library support from Makefile.host). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Documentation/kbuild/makefil

[PATCH v7 1/6] Shared library support

2016-04-22 Thread Emese Revfy
Infrastructure for building independent shared library targets. This effectively also reverts commit 62e2210798ed38928ab24841e8b4878a (Masahiro Yamada, kbuild: drop shared library support from Makefile.host). Signed-off-by: Emese Revfy --- Documentation/kbuild/makefiles.txt | 39

[PATCH v7 0/6] Introduce GCC plugin infrastructure

2016-04-22 Thread Emese Revfy
to 6.0, building out-of-tree modules and building in a separate directory. Cross-compilation is supported too but currently only the x86, arm and arm64 architectures enables plugins. This infrastructure was ported from grsecurity/PaX. It is a CII project supported by the Linux Foundation. Emese

[PATCH v7 0/6] Introduce GCC plugin infrastructure

2016-04-22 Thread Emese Revfy
to 6.0, building out-of-tree modules and building in a separate directory. Cross-compilation is supported too but currently only the x86, arm and arm64 architectures enables plugins. This infrastructure was ported from grsecurity/PaX. It is a CII project supported by the Linux Foundation. Emese

Re: [lkp] [Add sancov plugin] 47faf3078f: BUG: kernel boot crashed

2016-04-12 Thread Emese Revfy
On Mon, 11 Apr 2016 09:40:19 +0800 kernel test robot <ying.hu...@linux.intel.com> wrote: > FYI, we noticed the below changes on > > https://github.com/0day-ci/linux > Emese-Revfy/Introduce-GCC-plugin-infrastructure/20160408-052328 > commit 47faf3078f741dd7d854131a547615fa

Re: [lkp] [Add sancov plugin] 47faf3078f: BUG: kernel boot crashed

2016-04-12 Thread Emese Revfy
On Mon, 11 Apr 2016 09:40:19 +0800 kernel test robot wrote: > FYI, we noticed the below changes on > > https://github.com/0day-ci/linux > Emese-Revfy/Introduce-GCC-plugin-infrastructure/20160408-052328 > commit 47faf3078f741dd7d854131a547615fa8e447dd5 (&qu

Re: [PATCH v6 0/6] Introduce GCC plugin infrastructure

2016-04-12 Thread Emese Revfy
On Tue, 12 Apr 2016 11:27:52 -0700 Kees Cook wrote: > Emese, were you thinking of doing the initify plugin next after this > infrastructure lands? I already started to work on the entropy plugin but after that I can work on initify. -- Emese

Re: [PATCH v6 0/6] Introduce GCC plugin infrastructure

2016-04-12 Thread Emese Revfy
On Tue, 12 Apr 2016 11:27:52 -0700 Kees Cook wrote: > Emese, were you thinking of doing the initify plugin next after this > infrastructure lands? I already started to work on the entropy plugin but after that I can work on initify. -- Emese

[PATCH v6 6/6] Add sancov plugin

2016-04-07 Thread Emese Revfy
try Vyukov (https://gcc.gnu.org/viewcvs/gcc?limit_changes=0=revision=231296). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Makefile| 8 +- arch/Kconfig| 9 +++ lib/Kconfig.debug | 2 + scripts/Makefile.gcc-plug

[PATCH v6 6/6] Add sancov plugin

2016-04-07 Thread Emese Revfy
try Vyukov (https://gcc.gnu.org/viewcvs/gcc?limit_changes=0=revision=231296). Signed-off-by: Emese Revfy --- Makefile| 8 +- arch/Kconfig| 9 +++ lib/Kconfig.debug | 2 + scripts/Makefile.gcc-plugins| 9 +++ s

[PATCH v6 5/6] Documentation for the GCC plugin infrastructure

2016-04-07 Thread Emese Revfy
This is the GCC infrastructure documentation about its operation, how to add and use a new plugin with an example. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Documentation/gcc-plugins.txt | 83 +++ arch/Kconfig | 2 ++ 2

[PATCH v6 5/6] Documentation for the GCC plugin infrastructure

2016-04-07 Thread Emese Revfy
This is the GCC infrastructure documentation about its operation, how to add and use a new plugin with an example. Signed-off-by: Emese Revfy --- Documentation/gcc-plugins.txt | 83 +++ arch/Kconfig | 2 ++ 2 files changed, 85 insertions

[PATCH v6 4/6] Add Cyclomatic complexity GCC plugin

2016-04-07 Thread Emese Revfy
of connected components (exit nodes). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- arch/Kconfig| 12 + scripts/Makefile.gcc-plugins| 2 + scripts/gcc-plugins/Makefile| 4 ++ scripts/gcc-plugins/cyc_complexity_plugin.

[PATCH v6 4/6] Add Cyclomatic complexity GCC plugin

2016-04-07 Thread Emese Revfy
of connected components (exit nodes). Signed-off-by: Emese Revfy --- arch/Kconfig| 12 + scripts/Makefile.gcc-plugins| 2 + scripts/gcc-plugins/Makefile| 4 ++ scripts/gcc-plugins/cyc_complexity_plugin.c | 73

[PATCH v6 3/6] The GCC plugin infrastructure supports the arm and arm64 architectures too

2016-04-07 Thread Emese Revfy
The GCC plugin infrastructure now supports the arm and arm64 architectures too. Signed-off-by: David Brown --- arch/arm/Kconfig | 1 + arch/arm64/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 0846026..8f57eb6

[PATCH v6 3/6] The GCC plugin infrastructure supports the arm and arm64 architectures too

2016-04-07 Thread Emese Revfy
The GCC plugin infrastructure now supports the arm and arm64 architectures too. Signed-off-by: David Brown --- arch/arm/Kconfig | 1 + arch/arm64/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 0846026..8f57eb6 100644 ---

[PATCH v6 2/6] GCC plugin infrastructure

2016-04-07 Thread Emese Revfy
the *.so files (only the distclean or mrproper targets clean all) because they are needed for out-of-tree modules. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Documentation/dontdiff | 1 + MAINTAINERS| 8 + Ma

[PATCH v6 2/6] GCC plugin infrastructure

2016-04-07 Thread Emese Revfy
the *.so files (only the distclean or mrproper targets clean all) because they are needed for out-of-tree modules. Signed-off-by: Emese Revfy --- Documentation/dontdiff | 1 + MAINTAINERS| 8 + Makefile

[PATCH v6 1/6] Shared library support

2016-04-07 Thread Emese Revfy
Infrastructure for building independent shared library targets. This effectively also reverts commit 62e2210798ed38928ab24841e8b4878a (Masahiro Yamada, kbuild: drop shared library support from Makefile.host). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Documentation/kbuild/makefil

[PATCH v6 1/6] Shared library support

2016-04-07 Thread Emese Revfy
Infrastructure for building independent shared library targets. This effectively also reverts commit 62e2210798ed38928ab24841e8b4878a (Masahiro Yamada, kbuild: drop shared library support from Makefile.host). Signed-off-by: Emese Revfy --- Documentation/kbuild/makefiles.txt | 39

[PATCH v6 0/6] Introduce GCC plugin infrastructure

2016-04-07 Thread Emese Revfy
to 6.0, building out-of-tree modules and building in a separate directory. Cross-compilation is supported too but currently only the x86, arm and arm64 architectures enables plugins. This infrastructure was ported from grsecurity/PaX. It is a CII project supported by the Linux Foundation. Emese

[PATCH v6 0/6] Introduce GCC plugin infrastructure

2016-04-07 Thread Emese Revfy
to 6.0, building out-of-tree modules and building in a separate directory. Cross-compilation is supported too but currently only the x86, arm and arm64 architectures enables plugins. This infrastructure was ported from grsecurity/PaX. It is a CII project supported by the Linux Foundation. Emese

Re: [PATCH v5 2/5] GCC plugin infrastructure

2016-03-27 Thread Emese Revfy
On Sat, 26 Mar 2016 11:39:32 +0900 Masahiro Yamada wrote: > > I tried to remove the gcc-plugins target but sadly in this case the plugins > > aren't complied. > > I don't know if I understand how it should work. I pushed a commit: > >

Re: [PATCH v5 2/5] GCC plugin infrastructure

2016-03-27 Thread Emese Revfy
On Sat, 26 Mar 2016 11:39:32 +0900 Masahiro Yamada wrote: > > I tried to remove the gcc-plugins target but sadly in this case the plugins > > aren't complied. > > I don't know if I understand how it should work. I pushed a commit: > >

Re: [PATCH v5 2/5] GCC plugin infrastructure

2016-03-23 Thread Emese Revfy
On Fri, 11 Mar 2016 15:25:19 +0900 Masahiro Yamada wrote: > You sprinkle "gcc-plugins" target in the top Makefile, which I do not like. > > Can you descend into scripts/gcc-plugins from scripts/Makefile? > > > subdir-$(CONFIG_MODVERSIONS) += genksyms >

Re: [PATCH v5 2/5] GCC plugin infrastructure

2016-03-23 Thread Emese Revfy
On Fri, 11 Mar 2016 15:25:19 +0900 Masahiro Yamada wrote: > You sprinkle "gcc-plugins" target in the top Makefile, which I do not like. > > Can you descend into scripts/gcc-plugins from scripts/Makefile? > > > subdir-$(CONFIG_MODVERSIONS) += genksyms > subdir-y += mod >

Re: [PATCH v5 2/5] GCC plugin infrastructure

2016-03-19 Thread Emese Revfy
On Wed, 16 Mar 2016 16:41:36 +0900 Masahiro Yamada wrote: > > The scripts name also doesn't describe gcc plugins well. > > With my suggestion "scripts/gcc-plugins/", > the sub-directory name describes it very well. > > > > Plugins take part in the image building

Re: [PATCH v5 2/5] GCC plugin infrastructure

2016-03-19 Thread Emese Revfy
On Wed, 16 Mar 2016 16:41:36 +0900 Masahiro Yamada wrote: > > The scripts name also doesn't describe gcc plugins well. > > With my suggestion "scripts/gcc-plugins/", > the sub-directory name describes it very well. > > > > Plugins take part in the image building process > > in a different way

Re: [PATCH v5 3/5] Add Cyclomatic complexity GCC plugin

2016-03-14 Thread Emese Revfy
On Fri, 11 Mar 2016 15:26:39 +0900 Masahiro Yamada wrote: > > diff --git a/scripts/Makefile.gcc-plugins b/scripts/Makefile.gcc-plugins > > index 7c85bf2..dd7b56d 100644 > > --- a/scripts/Makefile.gcc-plugins > > +++ b/scripts/Makefile.gcc-plugins > > @@ -5,7 +5,11

Re: [PATCH v5 3/5] Add Cyclomatic complexity GCC plugin

2016-03-14 Thread Emese Revfy
On Fri, 11 Mar 2016 15:26:39 +0900 Masahiro Yamada wrote: > > diff --git a/scripts/Makefile.gcc-plugins b/scripts/Makefile.gcc-plugins > > index 7c85bf2..dd7b56d 100644 > > --- a/scripts/Makefile.gcc-plugins > > +++ b/scripts/Makefile.gcc-plugins > > @@ -5,7 +5,11 @@ else > > PLUGINCC :=

Re: [PATCH v5 2/5] GCC plugin infrastructure

2016-03-14 Thread Emese Revfy
On Fri, 11 Mar 2016 15:25:19 +0900 Masahiro Yamada wrote: > Maybe scripts/gcc-plugins/ is better than tools/gcc ? > > In the directory "scripts/", we have several tools used during > building the kernel image. > We have some optional programs in the directory

Re: [PATCH v5 2/5] GCC plugin infrastructure

2016-03-14 Thread Emese Revfy
On Fri, 11 Mar 2016 15:25:19 +0900 Masahiro Yamada wrote: > Maybe scripts/gcc-plugins/ is better than tools/gcc ? > > In the directory "scripts/", we have several tools used during > building the kernel image. > We have some optional programs in the directory "tools/", which are not used > for

Re: [PATCH v5 1/5] Shared library support

2016-03-14 Thread Emese Revfy
On Fri, 11 Mar 2016 15:19:33 +0900 Masahiro Yamada wrote: > As an alternative, you can add needed build rules > into tools/gcc/Makefile, not scripts/Makefile.host > > I guess these rule won't be used in other places. I think it is better if the rules stay under

Re: [PATCH v5 1/5] Shared library support

2016-03-14 Thread Emese Revfy
On Fri, 11 Mar 2016 15:19:33 +0900 Masahiro Yamada wrote: > As an alternative, you can add needed build rules > into tools/gcc/Makefile, not scripts/Makefile.host > > I guess these rule won't be used in other places. I think it is better if the rules stay under scripts/ because I expect that

Re: [kernel-hardening] [PATCH v5 2/5] GCC plugin infrastructure

2016-03-09 Thread Emese Revfy
On Wed, 9 Mar 2016 12:50:26 -0800 Kees Cook wrote: > > Feel free to fold these into your patch, or, if you prefer, I can send > > out separate patches for them. > > Ah-ha, great! Thanks for testing! > > Emese, if you're not interested in carrying this, I can add it to my

Re: [kernel-hardening] [PATCH v5 2/5] GCC plugin infrastructure

2016-03-09 Thread Emese Revfy
On Wed, 9 Mar 2016 12:50:26 -0800 Kees Cook wrote: > > Feel free to fold these into your patch, or, if you prefer, I can send > > out separate patches for them. > > Ah-ha, great! Thanks for testing! > > Emese, if you're not interested in carrying this, I can add it to my tree. I think it is

Re: [kernel-hardening] [PATCH v5 2/5] GCC plugin infrastructure

2016-03-09 Thread Emese Revfy
On Wed, 9 Mar 2016 02:01:15 -0700 David Brown wrote: > Feel free to fold these into your patch, or, if you prefer, I can send > out separate patches for them. Thanks, I'll take it. -- Emese

Re: [kernel-hardening] [PATCH v5 2/5] GCC plugin infrastructure

2016-03-09 Thread Emese Revfy
On Wed, 9 Mar 2016 02:01:15 -0700 David Brown wrote: > Feel free to fold these into your patch, or, if you prefer, I can send > out separate patches for them. Thanks, I'll take it. -- Emese

Re: [PATCH v5 1/5] Shared library support

2016-03-07 Thread Emese Revfy
On Mon, 7 Mar 2016 13:05:16 -0800 Kees Cook <keesc...@chromium.org> wrote: > On Sun, Mar 6, 2016 at 3:03 PM, Emese Revfy <re.em...@gmail.com> wrote: > > Infrastructure for building independent shared library targets. > > This effectively also reverts commit 62e22

Re: [PATCH v5 1/5] Shared library support

2016-03-07 Thread Emese Revfy
On Mon, 7 Mar 2016 13:05:16 -0800 Kees Cook wrote: > On Sun, Mar 6, 2016 at 3:03 PM, Emese Revfy wrote: > > Infrastructure for building independent shared library targets. > > This effectively also reverts commit 62e2210798ed38928ab24841e8b4878a > > (Masahiro Yamada, kbuild

Re: [PATCH v5 5/5] Add sancov plugin

2016-03-07 Thread Emese Revfy
c/sancov_plugin.c > > @@ -0,0 +1,133 @@ > > +/* > > + * Copyright 2011-2016 by Emese Revfy <re.em...@gmail.com> > > + * Licensed under the GPL v2, or (at your option) v3 > > + * > > + * Homepage: > > + * https://github.com/ephox-gcc-plugins/sancov > > + * >

Re: [PATCH v5 5/5] Add sancov plugin

2016-03-07 Thread Emese Revfy
On Mon, 7 Mar 2016 13:07:32 -0800 Kees Cook wrote: > > diff --git a/tools/gcc/sancov_plugin.c b/tools/gcc/sancov_plugin.c > > new file mode 100644 > > index 000..5a9179b > > --- /dev/null > > +++ b/tools/gcc/sancov_plugin.c > > @@ -0,0 +1,133 @@ > >

[PATCH v5 5/5] Add sancov plugin

2016-03-06 Thread Emese Revfy
try Vyukov (https://gcc.gnu.org/viewcvs/gcc?limit_changes=0=revision=231296). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- arch/Kconfig | 9 +++ scripts/Makefile.gcc-plugins | 7 ++- tools/gcc/Makefile | 2 + tools/gcc/sancov_p

[PATCH v5 5/5] Add sancov plugin

2016-03-06 Thread Emese Revfy
try Vyukov (https://gcc.gnu.org/viewcvs/gcc?limit_changes=0=revision=231296). Signed-off-by: Emese Revfy --- arch/Kconfig | 9 +++ scripts/Makefile.gcc-plugins | 7 ++- tools/gcc/Makefile | 2 + tools/gcc/sancov_plugin.c| 133

[PATCH v5 4/5] Documentation for the GCC plugin infrastructure

2016-03-06 Thread Emese Revfy
This is the GCC infrastructure documentation about its operation, how to add and use a new plugin with an example. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Documentation/gcc-plugins.txt | 82 +++ arch/Kconfig | 2 ++ 2

[PATCH v5 4/5] Documentation for the GCC plugin infrastructure

2016-03-06 Thread Emese Revfy
This is the GCC infrastructure documentation about its operation, how to add and use a new plugin with an example. Signed-off-by: Emese Revfy --- Documentation/gcc-plugins.txt | 82 +++ arch/Kconfig | 2 ++ 2 files changed, 84 insertions

[PATCH v5 3/5] Add Cyclomatic complexity GCC plugin

2016-03-06 Thread Emese Revfy
of connected components (exit nodes). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- arch/Kconfig | 12 +++ scripts/Makefile.gcc-plugins | 6 +++- tools/gcc/Makefile| 4 +++ tools/gcc/cyc_complexity_plugin.

[PATCH v5 3/5] Add Cyclomatic complexity GCC plugin

2016-03-06 Thread Emese Revfy
of connected components (exit nodes). Signed-off-by: Emese Revfy --- arch/Kconfig | 12 +++ scripts/Makefile.gcc-plugins | 6 +++- tools/gcc/Makefile| 4 +++ tools/gcc/cyc_complexity_plugin.c | 73 +++ 4 files

[PATCH v5 2/5] GCC plugin infrastructure

2016-03-06 Thread Emese Revfy
the *.so files (only the distclean or mrproper targets clean all) because they are needed for out-of-tree modules. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Documentation/dontdiff | 1 + MAINTAINERS | 8 + Ma

[PATCH v5 2/5] GCC plugin infrastructure

2016-03-06 Thread Emese Revfy
the *.so files (only the distclean or mrproper targets clean all) because they are needed for out-of-tree modules. Signed-off-by: Emese Revfy --- Documentation/dontdiff | 1 + MAINTAINERS | 8 + Makefile | 41

[PATCH v5 1/5] Shared library support

2016-03-06 Thread Emese Revfy
Infrastructure for building independent shared library targets. This effectively also reverts commit 62e2210798ed38928ab24841e8b4878a (Masahiro Yamada, kbuild: drop shared library support from Makefile.host). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- scripts/Makefile.buil

[PATCH v5 1/5] Shared library support

2016-03-06 Thread Emese Revfy
Infrastructure for building independent shared library targets. This effectively also reverts commit 62e2210798ed38928ab24841e8b4878a (Masahiro Yamada, kbuild: drop shared library support from Makefile.host). Signed-off-by: Emese Revfy --- scripts/Makefile.build | 2 +- scripts/Makefile.clean

[PATCH v5 0/5] Introduce GCC plugin infrastructure

2016-03-06 Thread Emese Revfy
to 6.0, building out-of-tree modules and building in a separate directory. Cross-compilation is supported too but currently only the x86 architecture enables plugins. This infrastructure was ported from grsecurity/PaX. It is a CII project supported by the Linux Foundation. Emese Revfy (5

[PATCH v5 0/5] Introduce GCC plugin infrastructure

2016-03-06 Thread Emese Revfy
to 6.0, building out-of-tree modules and building in a separate directory. Cross-compilation is supported too but currently only the x86 architecture enables plugins. This infrastructure was ported from grsecurity/PaX. It is a CII project supported by the Linux Foundation. Emese Revfy (5

Re: [kernel-hardening] Re: [PATCH] video: constify geode ops structures

2015-11-09 Thread Emese Revfy
On Mon, 9 Nov 2015 14:50:47 + (GMT) Julia Lawall wrote: > > Actually, it looks like Emese Revfy is going to merge the GCC plugin > > constify stuff sooner rather than later so maybe adding all these consts > > isn't going to be needed. > > Is there any advantage

Re: [kernel-hardening] Re: [PATCH] video: constify geode ops structures

2015-11-09 Thread Emese Revfy
On Mon, 9 Nov 2015 14:50:47 + (GMT) Julia Lawall <julia.law...@lip6.fr> wrote: > > Actually, it looks like Emese Revfy is going to merge the GCC plugin > > constify stuff sooner rather than later so maybe adding all these consts > > isn't going to be needed. >

<    1   2   3