]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dtrace: added CONFIG_DT_DEBUG_MUTEX option
authorKris Van Hees <kris.van.hees@oracle.com>
Wed, 20 Jul 2011 07:06:47 +0000 (03:06 -0400)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:39:54 +0000 (22:39 +0100)
This option enables printing all locations where a mutex is locked
and unlocked.

Implemented aggregations using the idr mechanism rather than the
Solaris-based 1-byte allocation technique to get unique IDs.
Various cleanup and small changes.

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
kernel/dtrace/Kconfig

index ecd57ff762b484e14763cce7faa84d0c598b8969..b920ff3b7eb1200e1c36d0b5042014bf8e952b8d 100644 (file)
@@ -73,6 +73,18 @@ config DT_DEBUG
          internal checks within the DTrace core.  It also enables all the
          assertions within the DTrace code.
 
+if DT_DEBUG
+
+config DT_DEBUG_MUTEX
+       bool "DTrace mutex debugging"
+       default n
+       help
+         This controls the use of DTrace specific wrappers to output debug
+         messages whenever a mutex is locked or unlocked within the DTrace
+         code (core and providers).
+
+endif  # DT_DEBUG
+
 endif  # DT_CORE
 
 endif   #DTRACE