This page tells how to get PAPI and Linux perf_event working
on Intel's MIC/KNC/Knight's Corner/Xeon Phi.
Upstream
Full support for the Knights Corner PMU (written by me)
is included in the upcoming Linux 3.7 release.
However, KNC isn't support by the rest of the kernel
out of the box so you'll probably want to follow the below directions
for patching Intel's kernel.
Patching Intel's MPSS
Intel provides a Manycore Platform Software Stack (MPSS) for the MIC.
perf_event support is not included yet by default (though there's
hope this will happen in the near future). Until then you have
to patch and re-compile the kernel manually.
Patching MPSS Gold Update 1
Download the new packages and setup. This will be similar
to that below, but I haven't personally tried it.
PAPI should now be built. If you did this in a location
that is NFS mounted by your MIC card, just log in and
run the PAPI tests to confirm things are working.