thanks, it doesn't sound hard. I'll try it out.


On Nov 26, 2013 12:04 PM, "Vince Weaver" <> wrote:
On Tue, 26 Nov 2013, Wei Wang wrote:

> Frankly speaking, I googled around, but I still don't know which system
> call I should make to pass an event name like
> "uncore_mbox_0/inc_sel=0xa,pld=0x0500,iss=0x0/".

you just do a normal perf_event_open_syscall.

You set the attr.type field to the value you find in
and you set the attr.config value to whatever
   inc_sel=0xa,pld=0x0500,iss=0x0 maps to.
This is where having libpfm4 support would help a lot, but adding support
for all of those different values looks like it will be a pain.