Hi Stephane, 

I have to start and stop monitoring multiple times in my program and  I am 
using perfmonctl (the older interface) to do that. But I find that the 
perfmonctl(PFM_START,....) gives me an error starting from the second call.

So, abstractly my sequence is :

start loop:
...
perfmonctl(PFM_START,...)


< Some code used to monitor the hw counters >


perfmonctl(PFM_STOP,...)

goto start_loop:

It happens that if i don't have a lot of code in between, then everything is 
fine, i get all the overflow interrupts that i want. However, normally my 
iteration takes  around 12 seconds after which i find that the 
perfmonctl(PFM_START,...) fails with invalid argument as the error. There is 
only argument of relevance which is pfm_fd.  Can you suggest me what could be 
the cause of this ?

Since, i don't have root permission, i can't see /var/log/messages

Thanks  And Regards,
Vivek
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

Reply via email to