Thread (10 messages) 10 messages, 6 authors, 2011-10-18

perf for analyzing userspace contention

From: Roland Dreier <roland@kernel.org>
Date: 2011-10-14 06:36:45

Hi everyone,

Hope this question from a kernel hacker about profiling userspace
isn't too dumb...

Anyway, suppose I have a multithreaded userspace app that uses a bunch of
pthread_mutexes, and I want to figure out which locks are hot and/or heavily
contended.  What's the best way to do that?  Is perf the right, or is there
something better?  (This seems like such an obvious thing to want that there
must be some good way to get this data, I hope)

Thanks!
  Roland
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help