DEBUG: threads: don't keep lock label "OTHER" in the per-thread history
Most threads are filled with "R:OTHER U:OTHER" in their history. Since anything non-important can use other it's not observable but it pollutes the history. Let's just drop OTHER entirely during the recording.
This commit is contained in:
parent
1f51f1c816
commit
743dce95d2
@ -338,11 +338,12 @@ static inline unsigned long thread_isolated()
|
||||
|
||||
#define _lock_wait(_LK_, lbl, expr) do { \
|
||||
(void)(expr); \
|
||||
th_ctx->lock_history = (th_ctx->lock_history << 8) + ((lbl + 1) << 2) + _LK_; \
|
||||
if (lbl != OTHER_LOCK) \
|
||||
th_ctx->lock_history = (th_ctx->lock_history << 8) + ((lbl + 1) << 2) + _LK_; \
|
||||
} while (0)
|
||||
#define _lock_cond(_LK_, lbl, expr) ({ \
|
||||
typeof(expr) _expr = (expr); \
|
||||
if (!_expr) \
|
||||
if (lbl != OTHER_LOCK && !_expr) \
|
||||
th_ctx->lock_history = (th_ctx->lock_history << 8) + ((lbl + 1) << 2) + _LK_; \
|
||||
_expr; \
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user