Accessing counters from another thread

Open discussion of PAPI.

Accessing counters from another thread

Postby pmoret » Thu Oct 29, 2009 6:30 am

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
pmoret
 
Posts: 1
Joined: Thu Oct 29, 2009 4:52 am

Re: Accessing counters from another thread

Postby yuzhibin » Sun Nov 15, 2009 2:02 am

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
yuzhibin
 
Posts: 4
Joined: Sun Nov 15, 2009 1:56 am


Return to General discussion

Who is online

Users browsing this forum: No registered users and 1 guest