I have a question regarding on how to use the PMC0 and PMC1 together with the APIC_LVTPC. I have developed 2 Linux kernel modules. First, reads PEBS and second, reads LBR. I use PMC0 and PMC1 to count the event.
My problem is that if I load PEBS module and than LBR reading module than only the LBR module working properly. If I load first the LBR module than the PEBS module is not working properly. Somehow the second module is shadowing the first one.
Is there something that I miss? Can the APIC_LVTPC register used with only one event at a time?
Please have a look at the code of PEBS module and LBR module here:
Community support is provided during standard business hours (Monday to Friday 7AM - 5PM PST). Other contact methods are available here.
Intel does not verify all solutions, including but not limited to any file transfers that may appear in this community. Accordingly, Intel disclaims all express and implied warranties, including without limitation, the implied warranties of merchantability, fitness for a particular purpose, and non-infringement, as well as any warranty arising from course of performance, course of dealing, or usage in trade.