Skip to content
Commit dc1f7893 authored by Peter Zijlstra's avatar Peter Zijlstra
Browse files

locking/mutex: Make contention tracepoints more consistent wrt adaptive spinning



Have the trace_contention_*() tracepoints consistently include
adaptive spinning. In order to differentiate between the spinning and
non-spinning states add LCB_F_MUTEX and combine with LCB_F_SPIN.

The consequence is that a mutex contention can now triggler multiple
_begin() tracepoints before triggering an _end().

Additionally, this fixes one path where mutex would trigger _end()
without ever seeing a _begin().

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
parent ee042be1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment