Hi,
On which kernel is this running on. I am trying to locate the difference with Intel X86 code path here. Libpfm4 does set exclude_guest by default for let's say SandyBridge and it does not cause a problem. So somewhere in the KNC code path, this field value is flagged as bad. On Mon, Jul 1, 2013 at 11:12 AM, Jean-Philippe HALIMI <jphal...@users.sf.net> wrote: > ________________________________ > > [bugs:#5] exclude_guest field setting issue on Intel Xeon Phi > > Status: open > Created: Mon Jul 01, 2013 09:12 AM UTC by Jean-Philippe HALIMI > Last Updated: Mon Jul 01, 2013 09:12 AM UTC > Owner: nobody > > As a driver for the Linux perf API, libpfm provides it with a > perf_event_attr structure. Unfortunately, the structure available in the > include/perfmon/perf_event.h file is not the same as the one in the linux > header file (typically located in /usr/include/linux/perf_event.h). > > As a matter of fact, on Intel Xeon Phi, the perf_event_attr returned by > pfm_get_os_event_encoding is considered as an invalid argument in the > perf_event_open callback, because some fields are wrongly set. I found out > that setting the libpfm4.4's perf_event.h perf_event_attr.exclude_guest > attribute to 0 before calling perf_event_open solves the problem. As it is > presented as a reserved bit in the linux's structure counterparts, I > consider it as a hack and therefore recommend to do something in order to > fix it. > > ________________________________ > > Sent from sourceforge.net because you indicated interest in > https://sourceforge.net/p/perfmon2/bugs/5/ > > To unsubscribe from further messages, please visit > https://sourceforge.net/auth/subscriptions/ ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel