Hi,
Recently I meet the problem about how to configure the PMUs on Xeon Phi.
According to the document named "Intel® Xeon Phi™ Coprocessor (codename: Knights Corner) Performance Monitoring Units", it requires a configuration tool that has "Ring 0" access to kernel to configure the PMUs on Xeon Phi. VTune Amplifier is able to use these PMUs. However, as we want to have some fine-grained control on the codes that we want to profile, instead of using VTune directly, we would like to collect the PMU data with our own codes that only require "Ring 3" access.
My question is, is there any APIs provided by MPSS that can do the configuration? Third party tools like PAPI require patching the uos’s kernel. However, we believe that the uos should already have the module that can configure the PMUs (otherwise, the VTune cannot work properly). The problem is how to communicate with this kernel module so that we can configure the PMUs by ourselves?
Thank you,
Xiaoxin