Created
December 7, 2024 16:48
-
-
Save samueleresca/c8d4e2cfa8146261bdd87918de834ad6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tracepoint:lock:contention_begin | |
{ | |
@lock_ts[tid] = nsecs; | |
} | |
// Track futex wake operations (lock release) | |
tracepoint:lock:contention_end | |
/has_key(@lock_ts, tid)/ | |
{ | |
@lck[comm, tid] = sum(nsecs - @lock_ts[tid]); | |
delete(@lock_ts, tid); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment