History

locking/lockdep: Introduce CONFIG_BOOTPARAM_LOCKDEP_CROSSRELEASE_FULLSTACK=y

Add a Kconfig knob that enables the lockdep "crossrelease_fullstack" boot parameter.

Byungchul Park committed 9 years ago

Commit e121d641 parent 2dcd5ad2 files · +19 −0Browse files

Unified · Split

2 files
  1. kernel/locking/lockdep.c +4 −0
  2. lib/Kconfig.debug +15 −0
kernel/locking/lockdep.c+4−0
@@ -76,7 +76,11 @@ module_param(lock_stat, int, 0644); · 75 unmodified lines
76#define lock_stat 076#define lock_stat 0
77#endif77#endif
78 78
79#ifdef CONFIG_BOOTPARAM_LOCKDEP_CROSSRELEASE_FULLSTACK
80static int crossrelease_fullstack = 1;
81#else
79static int crossrelease_fullstack;82static int crossrelease_fullstack;
83#endif
80static int __init allow_crossrelease_fullstack(char *str)84static int __init allow_crossrelease_fullstack(char *str)
81{85{
82 crossrelease_fullstack = 1;86 crossrelease_fullstack = 1;
lib/Kconfig.debug+15−0
@@ -1179,6 +1179,21 @@ config LOCKDEP_COMPLETIONS · 1178 unmodified lines
1179 A deadlock caused by wait_for_completion() and complete() can be1179 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
1182config 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
1182config DEBUG_LOCKDEP1197config DEBUG_LOCKDEP
1183 bool "Lock dependency engine debugging"1198 bool "Lock dependency engine debugging"
1184 depends on DEBUG_KERNEL && LOCKDEP1199 depends on DEBUG_KERNEL && LOCKDEP

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t