diff options
author | Byungchul Park <byungchul.park@lge.com> | 2017-10-25 04:56:02 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-10-25 06:19:02 -0400 |
commit | e121d64e16484d4a5eba94cd2fa9eb3848b7c9c2 (patch) | |
tree | cd5a01b328ca0c2337aa035a0e0c2b11a38e9e4d /lib/Kconfig.debug | |
parent | 2dcd5adfb7401b762ddbe4b86dcacc2f3de6b97b (diff) |
locking/lockdep: Introduce CONFIG_BOOTPARAM_LOCKDEP_CROSSRELEASE_FULLSTACK=y
Add a Kconfig knob that enables the lockdep "crossrelease_fullstack" boot parameter.
Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Byungchul Park <byungchul.park@lge.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: amir73il@gmail.com
Cc: axboe@kernel.dk
Cc: darrick.wong@oracle.com
Cc: david@fromorbit.com
Cc: hch@infradead.org
Cc: idryomov@gmail.com
Cc: johan@kernel.org
Cc: johannes.berg@intel.com
Cc: kernel-team@lge.com
Cc: linux-block@vger.kernel.org
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-mm@kvack.org
Cc: linux-xfs@vger.kernel.org
Cc: oleg@redhat.com
Cc: tj@kernel.org
Link: http://lkml.kernel.org/r/1508921765-15396-7-git-send-email-byungchul.park@lge.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index c1e720a22c71..2b439a515c30 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -1179,6 +1179,21 @@ config LOCKDEP_COMPLETIONS | |||
1179 | A deadlock caused by wait_for_completion() and complete() can be | 1179 | A deadlock caused by wait_for_completion() and complete() can be |
1180 | detected by lockdep using crossrelease feature. | 1180 | detected by lockdep using crossrelease feature. |
1181 | 1181 | ||
1182 | config BOOTPARAM_LOCKDEP_CROSSRELEASE_FULLSTACK | ||
1183 | bool "Enable the boot parameter, crossrelease_fullstack" | ||
1184 | depends on LOCKDEP_CROSSRELEASE | ||
1185 | default n | ||
1186 | help | ||
1187 | The lockdep "cross-release" feature needs to record stack traces | ||
1188 | (of calling functions) for all acquisitions, for eventual later | ||
1189 | use during analysis. By default only a single caller is recorded, | ||
1190 | because the unwind operation can be very expensive with deeper | ||
1191 | stack chains. | ||
1192 | |||
1193 | However a boot parameter, crossrelease_fullstack, was | ||
1194 | introduced since sometimes deeper traces are required for full | ||
1195 | analysis. This option turns on the boot parameter. | ||
1196 | |||
1182 | config DEBUG_LOCKDEP | 1197 | config DEBUG_LOCKDEP |
1183 | bool "Lock dependency engine debugging" | 1198 | bool "Lock dependency engine debugging" |
1184 | depends on DEBUG_KERNEL && LOCKDEP | 1199 | depends on DEBUG_KERNEL && LOCKDEP |