I would like to know how to profile a pthread mutex to see if there are any locking contention points in my code. (who likes contentious code, right? :) I know how to do a more
Its been 6+ years, but for the reference I would like to add another link for off-cpu time tracing which supposed to show your mutex contention.
http://www.brendangregg.com/offcpuanalysis.html