summaryrefslogtreecommitdiffstats
path: root/include/linux/lockdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/lockdep.h')
-rw-r--r--include/linux/lockdep.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
index e1e0fcd99613..c75eedd55af5 100644
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
@@ -284,6 +284,26 @@ struct held_lock {
284 */ 284 */
285struct hist_lock { 285struct hist_lock {
286 /* 286 /*
287 * Id for each entry in the ring buffer. This is used to
288 * decide whether the ring buffer was overwritten or not.
289 *
290 * For example,
291 *
292 * |<----------- hist_lock ring buffer size ------->|
293 * pppppppppppppppppppppiiiiiiiiiiiiiiiiiiiiiiiiiiiii
294 * wrapped > iiiiiiiiiiiiiiiiiiiiiiiiiii.......................
295 *
296 * where 'p' represents an acquisition in process
297 * context, 'i' represents an acquisition in irq
298 * context.
299 *
300 * In this example, the ring buffer was overwritten by
301 * acquisitions in irq context, that should be detected on
302 * rollback or commit.
303 */
304 unsigned int hist_id;
305
306 /*
287 * Seperate stack_trace data. This will be used at commit step. 307 * Seperate stack_trace data. This will be used at commit step.
288 */ 308 */
289 struct stack_trace trace; 309 struct stack_trace trace;