Re: [perfmon2] nehalem-ex uncore counters

2013-11-26 Thread Wei Wang
thanks, it doesn't sound hard. I'll try it out. Wei. 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=0

Re: [perfmon2] nehalem-ex uncore counters

2013-11-26 Thread Vince Weaver
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 val

Re: [perfmon2] nehalem-ex uncore counters

2013-11-26 Thread Wei Wang
Stephane, I think I'll start with a subset of the counters. I only need m-box at this moment. Do you have any suggestions on where to start? Any documents or example code? Frankly speaking, I googled around, but I still don't know which system call I should make to pass an event name like "un

Re: [perfmon2] nehalem-ex uncore counters

2013-11-26 Thread Stephane Eranian
Wei, It is not too difficult I think but there is a lot of it, that's the problem. On Tue, Nov 26, 2013 at 5:29 PM, Wei Wang wrote: > Hi Stephane, > > How hard is it, do you think, to add support for Nehalem-EX uncore in > libpfm4? If it's not too hard, I'll try to add the it. I think I need th

Re: [perfmon2] nehalem-ex uncore counters

2013-11-26 Thread Wei Wang
Hi Stephane, How hard is it, do you think, to add support for Nehalem-EX uncore in libpfm4? If it's not too hard, I'll try to add the it. I think I need this support for my program. Thanks, Wei On 11/26/2013 04:31 AM, Stephane Eranian wrote: > Hi Wei, > > > NHM-EX uncore PMU is not supported b

Re: [perfmon2] nehalem-ex uncore counters

2013-11-26 Thread Stephane Eranian
Hi Wei, NHM-EX uncore PMU is not supported by libpfm4. That's why you don't have the event list for it with showevtinfo. On Mon, Nov 25, 2013 at 10:43 PM, Wei Wang wrote: > Hi all, > > I am trying to read the m-box counters on a nehalem-ex processor. > However, I am having trouble setting up t

[perfmon2] nehalem-ex uncore counters

2013-11-25 Thread Wei Wang
Hi all, I am trying to read the m-box counters on a nehalem-ex processor. However, I am having trouble setting up the counters. I can access the m-box counters using perf with a command like this: perf stat -a -e "uncore_mbox_0/inc_sel=0xa,pld=0x0500,iss=0x0/" ls However, the even name "uncore_