Red Hat Bugzilla – Bug 1330320
make pmdapapi counters multi-cpu
Last modified: 2017-08-23 11:14:16 EDT
It turns out that the PAPI API does not transparently implement systemwide counters for us. We are connecting only to cpu#0. See the papi pernode.c test case. Key words: granularity - PAPI_GRN_SYS_CPU ncpu = PAPI_get_opt(PAPI_MAX_CPUS, NULL); the resulting values[] array should be sized ncpu-multiplied & indexed.
Or instead, depending on the particular version of papi, we may manually need to do PAPI_CPU_ATTACH calls for replicated EventSets & values.
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle. Changing version to '25'.