| 1 |
title: System-Wide Futex Contention |
| 2 |
name: futexes.stp |
| 3 |
version: 1.0 |
| 4 |
author: anonymous |
| 5 |
keywords: syscall locking futex |
| 6 |
subsystem: locking |
| 7 |
status: production |
| 8 |
exit: user-controlled |
| 9 |
output: sorted-list on-exit |
| 10 |
scope: system-wide |
| 11 |
description: The script watches the futex syscall on the system. On exit the futex's address, the number of contentions, and the average time for each contention on the futex are printed from lowest pid number to highest. |
| 12 |
test_check: stap -p4 futexes.stp |
| 13 |
test_installcheck: stap futexes.stp -T 1 |