From: Kris Van Hees Date: Wed, 20 Jul 2011 07:06:47 +0000 (-0400) Subject: dtrace: added CONFIG_DT_DEBUG_MUTEX option X-Git-Tag: v4.1.12-92~313^2~176 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9ca929d29b49963922963c9e39270354b35e17eb;p=users%2Fjedix%2Flinux-maple.git dtrace: added CONFIG_DT_DEBUG_MUTEX option 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 --- diff --git a/kernel/dtrace/Kconfig b/kernel/dtrace/Kconfig index ecd57ff762b48..b920ff3b7eb12 100644 --- a/kernel/dtrace/Kconfig +++ b/kernel/dtrace/Kconfig @@ -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