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.

Thanks
Marc
-- 
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
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to