Re: Intel Ivy Bridge "mem" events not working?
William Cohen <[email protected]>
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Message-ID | <[email protected]> |
On 04/06/2016 11:46 AM, Panagiotis Mousouliotis wrote: > Hello, > > I installed today oprofile cloning it from the git repository. > > When I give the command: > > $ ocount -e mem_uops_retired ./convNaive2 0.5 5 > > I get: > > perf_event_open failed with Invalid argument > Caught runtime error while setting up counters > Internal Error. Perf event setup failed. > Error running ocount > > I get the same output for all the events starting with "mem". > > When I use events that do not start with "mem", it works: > $ ocount -e l2_lines_out ./convNaive2 0.5 5 > 0.5,5,0.092632 > > Events were actively counted for 227235819 nanoseconds. > Event counts (actual) for /home/pmousoul/Desktop/Program_Execution_Performance_Measurement_Tools/code/convNaive2: > Event Count % time counted > l2_lines_out 255,436 100.00 > > I'm I doing something wrong and I'm just not able to notice it? > > My system is: > processor: i5-3337U > kernel version: 3.16.0-67-generic x86_64 GNU/Linux > > I tried the oprofile-1.1.0 (tar.gz) version but I got the same results. > > Now I'm thinking to test an older kernel on the same machine.. > > Any thoughts? Hi Panos, The error message looks like the kernel is rejecting the event number (event 0xd0, default unit mask 0x81). There are certainly cases where the kernel checks the event number and reject it for certain processor family and model numbers. Could you include the family and model information from /proc/cpuinfo? It looks like these particular events are disabled for Intel Ivybridge: http://lxr.free-electrons.com/source/arch/x86/kernel/cpu/perf_event_intel.c?v=3.16#L135 134 /* 135 * Errata BV98 -- MEM_*_RETIRED events can leak between counters of SMT 136 * siblings; disable these events because they can corrupt unrelated 137 * counters. 138 */ -Will > > > Thanks for your time, > Panos > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > oprofile-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oprofile-list > ------------------------------------------------------------------------------