Re: [perfmon2] Using performance monitoring from within a program

2009-12-18 Thread stephane eranian
On Sat, Dec 19, 2009 at 3:06 AM, Vlad Slavici wrote: > Hi again, > > Is it possible to start performance monitoring from within C code and then > turn it off from the code as well? I would like to be able to do something > like: > For that look at the self.c example, i.e, self monitoring for cou

[perfmon2] Using performance monitoring from within a program

2009-12-18 Thread Vlad Slavici
Hi again, Is it possible to start performance monitoring from within C code and then turn it off from the code as well? I would like to be able to do something like: int main(){ ... code ... start performance monitoring on LOCKED_OPS:CYCLES_WAITING event ... code ... turn off performance moni