diff options
| author | Namhyung Kim <[email protected]> | 2022-06-15 16:32:20 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-07-12 12:55:37 +0000 |
| commit | 3ae03f2650b8d87242906f6c160732bc9d991ca1 (patch) | |
| tree | 57169f3d9bf356840ed10ea98a30bb71282663c2 /tools/perf/scripts/python/intel-pt-events.py | |
| parent | perf lock: Add lock contention tracepoints record support (diff) | |
| download | kernel-3ae03f2650b8d87242906f6c160732bc9d991ca1.tar.gz kernel-3ae03f2650b8d87242906f6c160732bc9d991ca1.zip | |
perf lock: Handle lock contention tracepoints
When the lock contention events are used, there's no tracking of
acquire and release. So the state machine is simplified to use
UNINITIALIZED -> CONTENDED -> ACQUIRED only.
Note that CONTENDED state is re-entrant since mutex locks can hit two
or more consecutive contention_begin events for optimistic spinning
and sleep.
Signed-off-by: Namhyung Kim <[email protected]>
Acked-by: Ian Rogers <[email protected]>
Cc: Boqun Feng <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Waiman Long <[email protected]>
Cc: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions
