gcc-plugins: Add STACKLEAK plugin for tracking the kernel stack
[linux-2.6-microblaze.git] / scripts / gcc-plugins / Kconfig
index 977b84e..c65fdd8 100644 (file)
@@ -158,4 +158,16 @@ config GCC_PLUGIN_STACKLEAK
           * https://grsecurity.net/
           * https://pax.grsecurity.net/
 
+config STACKLEAK_TRACK_MIN_SIZE
+       int "Minimum stack frame size of functions tracked by STACKLEAK"
+       default 100
+       range 0 4096
+       depends on GCC_PLUGIN_STACKLEAK
+       help
+         The STACKLEAK gcc plugin instruments the kernel code for tracking
+         the lowest border of the kernel stack (and for some other purposes).
+         It inserts the stackleak_track_stack() call for the functions with
+         a stack frame size greater than or equal to this parameter.
+         If unsure, leave the default value 100.
+
 endif