fs/proc: Show STACKLEAK metrics in the /proc file system
[linux-2.6-microblaze.git] / scripts / gcc-plugins / Kconfig
index c65fdd8..b0a015e 100644 (file)
@@ -170,4 +170,16 @@ config STACKLEAK_TRACK_MIN_SIZE
          a stack frame size greater than or equal to this parameter.
          If unsure, leave the default value 100.
 
+config STACKLEAK_METRICS
+       bool "Show STACKLEAK metrics in the /proc file system"
+       depends on GCC_PLUGIN_STACKLEAK
+       depends on PROC_FS
+       help
+         If this is set, STACKLEAK metrics for every task are available in
+         the /proc file system. In particular, /proc/<pid>/stack_depth
+         shows the maximum kernel stack consumption for the current and
+         previous syscalls. Although this information is not precise, it
+         can be useful for estimating the STACKLEAK performance impact for
+         your workloads.
+
 endif