Re: [perfmon2] Events with Unit Masks

2009-08-27 Thread stephane eranian
Hi, libpfm is just a helper library which you app can call to figure out the mapping from event name to (register, value) pairs. But it does not setup the registers for you. For that you have to call into the kernel via the perfmon interface. There are a bunch of syscall to create a session, prog

[perfmon2] Events with Unit Masks

2009-08-27 Thread Tanima Dey
Hi, I need to read the values for the counter to count L2 cache misses. I have tried pfm_find_full_event(). But this function only takes the string specifying the name of the event and the event identifier but takes no parameter for the unit mask. There are some other functions, such as, pfm_get