From 25f97a07a7ec713e2e19a72b40aa9e9683a2640c Mon Sep 17 00:00:00 2001 From: Joel Fernandes Date: Mon, 25 Jun 2018 23:16:01 -0700 Subject: [PATCH] fixup! add temporary perf scripts Signed-off-by: Joel Fernandes --- bcc/misc/android-futex-contention.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bcc/misc/android-futex-contention.py b/bcc/misc/android-futex-contention.py index b3fab37..5ef3841 100644 --- a/bcc/misc/android-futex-contention.py +++ b/bcc/misc/android-futex-contention.py @@ -74,8 +74,8 @@ def syscalls__sys_exit_futex(event, ctxt, cpu, s, ns, tid, comm, callchain, # Track details about the maximum contention seen # including owner and its callchain - if (tid, thread_thislock[tid]) in waker_wakee: - prev_wait = waker_wakee[(tid, thread_thislock[tid])][0] + if (tid, thread_thislock[tid]) in max_waits: + prev_wait = max_waits[(tid, thread_thislock[tid])][0] else: prev_wait = 0 @@ -110,6 +110,6 @@ def trace_end(): waker_pid = max_waits[tid, lock][1] waker_name = process_names[waker_pid] if waker_pid in process_names else "nameless-owner" - print "Owner %s caused this contention of %d. Owner's Call stack below:" % (waker_name, max_waits[tid, lock][0]) + print "Owner %s caused this contention of %d ns. Owner's Call stack below:" % (waker_name, max_waits[tid, lock][0]) print_callchain(max_waits[tid, lock][2])