According to a designer of the Applied Micro X-Gene1 (Dave
Nuechterlein) the number of general purpose performance counter
registers on the chip is 4, not 6.  This is mentioned on the
perfapi-devel mailing list archive:

https://lists.eecs.utk.edu/pipermail/perfapi-devel/2014-November/006786.html
Signed-off-by: William Cohen <wco...@redhat.com>
---
 lib/pfmlib_arm_armv8.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pfmlib_arm_armv8.c b/lib/pfmlib_arm_armv8.c
index 3619508..5506517 100644
--- a/lib/pfmlib_arm_armv8.c
+++ b/lib/pfmlib_arm_armv8.c
@@ -143,7 +143,7 @@ pfmlib_pmu_t arm_xgene_support={
 
        .pmu_detect             = pfm_arm_detect_xgene,
        .max_encoding           = 1,
-       .num_cntrs              = 6,
+       .num_cntrs              = 4,
 
        .get_event_encoding[PFM_OS_NONE] = pfm_arm_get_encoding,
         PFMLIB_ENCODE_PERF(pfm_arm_get_perf_encoding),
-- 
1.9.3


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to