Hey Stephane,

thanks for your _very_ fast response. In the meantime I took a break and had a 
coffee. It turned out that coffee is good for realizing one's faults. I guess 
the reported amount of 32 retired instructions is totally valid. 

However, I do have 2 more questions:
How do convince pfmon to report the number of retired instructions for each 
call (using --trigger-code-repeat)?
Is there something similar to the --opc-match8 option in 3.x?

Thanks
Marc


-------- Original-Nachricht --------
> Datum: Tue, 23 Sep 2008 15:07:17 +0200
> Von: "stephane eranian" <[EMAIL PROTECTED]>
> An: [EMAIL PROTECTED]
> CC: [email protected]
> Betreff: Re: [perfmon2] Monitoring pthread_mutex_lock

> Marc,
> 
> On Tue, Sep 23, 2008 at 2:51 PM,  <[EMAIL PROTECTED]> wrote:
> > Hey all,
> >
> > for the last hours I tried to count the retired instruction during a
> single pthread_mutex_lock() call. I tried quadrillion different runtime
> options of pfmon, but wasn't able to accomplish this. Currently I am trying 
> with
> > pfmon --resolve-addresses
> --trigger-code-start-address=__pthread_mutex_lock 
> --trigger-code-stop-address=__pthread_mutex_lock -einstructions_retired
> --follow-pthread  my_program
> >
> > However, I always get just 32 retired instructions. I also wrote my own
> pthread_mutex_lock wrapper using the LD_PRELOAD approach and libpfm. This
> reports about 830 retired instructions per call.
> >
> > I do not know what's wrong. Any hint is highly appreciated. I tried
> pfmon 3.4 and 3.5.
> >
> 
> Use the -v option and check that the addresses of the start trigger
> and stop trigger match your expectation. those routines may be
> implemented
> in a way which could defeat the start = stop trick used by pfmon to
> dynamically detect the return address.

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
perfmon2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to