Page 1 of 1

Accessing counters from another thread

PostPosted: Thu Oct 29, 2009 6:30 am
by pmoret
Hi,

I'm running PAPI under linux with perfctr and I'm wondering if it possible to access the counters of a thread from another thread in the same process ?
Thanks.

Philippe

Re: Accessing counters from another thread

PostPosted: Sun Nov 15, 2009 2:02 am
by yuzhibin
Yes. We can surely access counters from another thread. you must use PAPI_attach to attach an event set to the thread.

Good luck!
Zhibin