diff options
| author | Ciunas Bennett <ciunas@linux.ibm.com> | 2026-07-23 10:42:29 +0200 |
|---|---|---|
| committer | Vasily Gorbik <gor@linux.ibm.com> | 2026-07-30 00:29:09 +0200 |
| commit | ffa796cc1f45903b55801d5bd437060ea012a12d (patch) | |
| tree | e319e07716ecd83b7f001e557bb8784b13618c06 /tools/perf/scripts/python/task-analyzer.py | |
| parent | bc5d0909eef4effa9ed4136b42e5650f96856f16 (diff) | |
s390/spinlock: Add contention tracepoints to lock slowpath
Instrument arch_spin_lock_wait() with trace_contention_begin() and
trace_contention_end().
These tracepoints are used by lock contention analysis tools such as
perf lock contention to identify contended locks and measure wait times.
Both the generic implementation and powerpc emit the same events from
their spinlock slow path.
Place the tracepoints in arch_spin_lock_wait(), which is only entered
when lock acquisition falls back to the contention path.
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Ciunas Bennett <ciunas@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
