Re: [perfmon2] how to pass an uncore event to task binary under perf_examples

2015-06-29 Thread Qiong Cai
I found that the new kernel (3.18.16) was in the second place in the grub file. The old kernel was rebooted over the weekend. Now I rebooted the system with new kernel. It works. Thanks Qiong On Mon, Jun 29, 2015 at 11:12 AM, Stephane Eranian wrote: > On Mon, Jun 29, 2015 at 5:56 PM, Qiong

Re: [perfmon2] how to pass an uncore event to task binary under perf_examples

2015-06-29 Thread Stephane Eranian
On Mon, Jun 29, 2015 at 5:56 PM, Qiong Cai wrote: > Thanks all. After rebooting the system, now it works. > And rebooting the same kernel? > Qiong > > On Mon, Jun 29, 2015 at 8:49 AM, Leonardo Piga > wrote: >> >> Run the following command >> >> $ ./showevtinfo -LED | grep UNC_M_ACT_COUNT >> >> W

Re: [perfmon2] how to pass an uncore event to task binary under perf_examples

2015-06-29 Thread Qiong Cai
Thanks all. After rebooting the system, now it works. Qiong On Mon, Jun 29, 2015 at 8:49 AM, Leonardo Piga wrote: > Run the following command > > $ ./showevtinfo -LED | grep UNC_M_ACT_COUNT > > What is the output? > Leonardo > > > On Mon, Jun 29, 2015 at 10:46 AM, Qiong Cai wrote: > > I also u

Re: [perfmon2] how to pass an uncore event to task binary under perf_examples

2015-06-29 Thread Leonardo Piga
Run the following command $ ./showevtinfo -LED | grep UNC_M_ACT_COUNT What is the output? Leonardo On Mon, Jun 29, 2015 at 10:46 AM, Qiong Cai wrote: > I also used "showevtinfo" program in the example directory to check the > supported PMU. The ivbep_uncore is detected. > > Detected PMU model

Re: [perfmon2] how to pass an uncore event to task binary under perf_examples

2015-06-29 Thread Qiong Cai
I also used "showevtinfo" program in the example directory to check the supported PMU. The ivbep_uncore is detected. Detected PMU models: [18, ix86arch, "Intel X86 architectural PMU", 7 events, 1 max encoding, 7 counters, core PMU] [51, perf, "perf_events generic PMU", 80 events, 1 max encoding,

Re: [perfmon2] how to pass an uncore event to task binary under perf_examples

2015-06-29 Thread Qiong Cai
Hi Stephane, The kernel does support uncore PMU. The directory /sys/devices has all the uncore information shown below - uncore_cbox_ {0-9} - uncore_ha_0 - uncore_imc_{0-3} - uncore_pcu - uncore_r2pcie - uncore_r3qpi_0 - uncore_ubox Thanks Qiong On Sun, Jun 28, 2015 at 11:44 PM, Stephane Erani

Re: [perfmon2] how to pass an uncore event to task binary under perf_examples

2015-06-28 Thread Stephane Eranian
Hi, On Mon, Jun 29, 2015 at 1:57 AM, Qiong Cai wrote: > Hi Stephane, > > The following command does not work on my IVB machine: > >> sudo ./syst -e IVBEP_UNC_IMC0::UNC_M_ACT_COUNT:RD > syst: event IVBEP_UNC_IMC0::UNC_M_ACT_COUNT:RD: event not found > syst: cannot setup events > > My machine is In

Re: [perfmon2] how to pass an uncore event to task binary under perf_examples

2015-06-28 Thread Qiong Cai
Hi Stephane, The following command does not work on my IVB machine: > sudo ./syst -e IVBEP_UNC_IMC0::UNC_M_ACT_COUNT:RD syst: event IVBEP_UNC_IMC0::UNC_M_ACT_COUNT:RD: event not found syst: cannot setup events My machine is Intel Xeon CPU E5-2660 v2@2.20 (IVB-EP). Any quick fix? thanks Qiong

Re: [perfmon2] how to pass an uncore event to task binary under perf_examples

2015-06-25 Thread Stephane Eranian
On Thu, Jun 25, 2015 at 11:50 PM, Qiong Cai wrote: > I should explain a bit better. Actually, I want to collect the uncore > events, which are shared by all cores in a socket. > Uncore events are ony supported in system-wide mode. You cannot use the task example for this, use syst_count instead.

Re: [perfmon2] how to pass an uncore event to task binary under perf_examples

2015-06-25 Thread Qiong Cai
I should explain a bit better. Actually, I want to collect the uncore events, which are shared by all cores in a socket. For example, the following command works: sudo ./syst -e UNC_M_ACT_COUNT:RD But the following two commands do not work sudo ./syst -e IVBEP_UNC_IMC0:UNC_M_ACT_COUNT:RD

Re: [perfmon2] how to pass an uncore event to task binary under perf_examples

2015-06-25 Thread Leonardo Piga
Hi Qiong, Please see if this thread helps you. https://www.mail-archive.com/perfmon2-devel@lists.sourceforge.net/msg03322.html Take a look at Gary's answer, that might be useful to you. Regards, -- Leonardo On Thu, Jun 25, 2015 at 3:56 PM, Qiong Cai wrote: > Hi, > > I am trying to pass the f