From mboxrd@z Thu Jan 1 00:00:00 1970 From: glmeocci@gmail.com (Gian Lorenzo Meocci) Date: Tue, 2 Dec 2008 21:15:00 +0100 Subject: [ltt-dev] trace a futex In-Reply-To: <20081202195015.GA25792@Krystal> References: <8d94e9280812021142j2eb5ca72td730410e97ccd9a1@mail.gmail.com> <20081202195015.GA25792@Krystal> Message-ID: <8d94e9280812021215m6a63d6c2l4e64acd26274953d@mail.gmail.com> Hi Mathieu, thanks for your reply. I want specify that: 1) I am already patching glibc (and, of course, nptl/pthread_*) 2) I already add two event to pthread_mutex_lock. The first at the beginning of the function and the second after all return 0 presented on that function. But those two events are not enough to establish if a pthread_mutex_lock has been blocking. In fact I know only the time spent on pthread_mutex_lock. If this time is little probably I hold the mutex otherwise I was been descheduled. So thanks a lot again, -- Ing. Gian Lorenzo Meocci http://www.meocci.it