gcc-plugins/stackleak: Add 'verbose' plugin parameter
authorAlexander Popov <alex.popov@linux.com>
Wed, 24 Jun 2020 12:33:30 +0000 (15:33 +0300)
committerKees Cook <keescook@chromium.org>
Wed, 24 Jun 2020 14:48:44 +0000 (07:48 -0700)
commit8dd70543f795d1836003754f3c60226f21433c99
tree0635f39547948251536a3cfde3f2c4c076760d1c
parentfeee1b8c490821f29aae416a5422795f5a29263d
gcc-plugins/stackleak: Add 'verbose' plugin parameter

Add 'verbose' plugin parameter for stackleak gcc plugin.
It can be used for printing additional info about the kernel code
instrumentation.

For using it add the following to scripts/Makefile.gcc-plugins:
  gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STACKLEAK) \
    += -fplugin-arg-stackleak_plugin-verbose

Signed-off-by: Alexander Popov <alex.popov@linux.com>
Link: https://lore.kernel.org/r/20200624123330.83226-6-alex.popov@linux.com
Signed-off-by: Kees Cook <keescook@chromium.org>
scripts/gcc-plugins/stackleak_plugin.c