Blame SOURCES/papi-bz1263666.patch

c7ea89
commit ba5ef24a0c27c667a7de6d40eb396aeaa0f1cc41
c7ea89
Author: Asim YarKhan <yarkhan@icl.utk.edu>
c7ea89
Date:   Wed Oct 22 13:35:43 2014 -0400
c7ea89
c7ea89
    PPC64, fix L1 data cache read, write and all access equations.
c7ea89
    
c7ea89
    Thanks to Carl Love for this patch and the following documentation:
c7ea89
    
c7ea89
    The current POWER 7 equations for all accesses over counts because it
c7ea89
    includes non load accesses to the cache.  The equation was changed to
c7ea89
    be the sum of the reads and the writes.  The read accesses to the two
c7ea89
    units, can be counted with the single event PM_LD_REF_L1 rather then
c7ea89
    counting the events to the two LSU units independently.  The number of
c7ea89
    reads to the L1 must be adjusted by subtracting the misses as these
c7ea89
    become writes.
c7ea89
    
c7ea89
    Power 8 has four LSU units. The same equations can be used since
c7ea89
    PM_LD_REF_L1 counts across all four LSU units.
c7ea89
c7ea89
diff --git a/src/papi_events.csv b/src/papi_events.csv
c7ea89
index 73a72e7..d27a41d 100644
c7ea89
--- a/src/papi_events.csv
c7ea89
+++ b/src/papi_events.csv
c7ea89
@@ -1307,10 +1307,9 @@ CPU,power7
c7ea89
 PRESET,PAPI_L1_DCM,DERIVED_ADD,PM_LD_MISS_L1,PM_ST_MISS_L1
c7ea89
 PRESET,PAPI_L1_LDM,NOT_DERIVED,PM_LD_MISS_L1
c7ea89
 PRESET,PAPI_L1_STM,NOT_DERIVED,PM_ST_MISS_L1
c7ea89
-PRESET,PAPI_L1_DCW,DERIVED_POSTFIX,N0|N1|-|,PM_ST_FIN,PM_ST_MISS_L1
c7ea89
-PRESET,PAPI_L1_DCA,NOT_DERIVED,PM_LSU_FIN
c7ea89
-#PRESET,PAPI_L1_DCA,DERIVED_POSTFIX,N0|N1|-|N2|+|,PM_ST_FIN,PM_ST_MISS_L1,PM_LD_REF_L1
c7ea89
-PRESET,PAPI_L1_DCR,DERIVED_ADD,PM_LD_REF_L1_LSU0,PM_LD_REF_L1_LSU1
c7ea89
+PRESET,PAPI_L1_DCW,DERIVED_SUB,PM_ST_FIN,PM_ST_MISS_L1
c7ea89
+PRESET,PAPI_L1_DCR,DERIVED_SUB,PM_LD_REF_L1,PM_LD_MISS_L1
c7ea89
+PRESET,PAPI_L1_DCA,DERIVED_POSTFIX,N0|N1|+|N2|+|N3|+,PM_ST_FIN,PM_ST_MISS_L1,PM_LD_REF_L1,PM_LD_MISS_L1
c7ea89
 PRESET,PAPI_L2_DCM,NOT_DERIVED,PM_DATA_FROM_L2MISS
c7ea89
 PRESET,PAPI_L2_LDM,NOT_DERIVED,PM_L2_LD_MISS
c7ea89
 PRESET,PAPI_L2_STM,NOT_DERIVED,PM_L2_ST_MISS
c7ea89
@@ -1357,9 +1356,9 @@ CPU,power8
c7ea89
 PRESET,PAPI_L1_DCM,DERIVED_ADD,PM_LD_MISS_L1,PM_ST_MISS_L1
c7ea89
 PRESET,PAPI_L1_LDM,NOT_DERIVED,PM_LD_MISS_L1
c7ea89
 PRESET,PAPI_L1_STM,NOT_DERIVED,PM_ST_MISS_L1
c7ea89
-PRESET,PAPI_L1_DCW,DERIVED_POSTFIX,N0|N1|-|,PM_ST_FIN,PM_ST_MISS_L1
c7ea89
-#n/aPRESET,PAPI_L1_DCA,DERIVED_POSTFIX,N0|N1|-|N2|+|,PM_ST_FIN,PM_ST_MISS_L1,PM_LD_REF_L1
c7ea89
-#n/aPRESET,PAPI_L1_DCR,DERIVED_ADD,PM_LD_REF_L1_LSU0,PM_LD_REF_L1_LSU1
c7ea89
+PRESET,PAPI_L1_DCW,DERIVED_SUB,PM_ST_FIN,PM_ST_MISS_L1
c7ea89
+PRESET,PAPI_L1_DCR,DERIVED_SUB,PM_LD_REF_L1,PM_LD_MISS_L1
c7ea89
+PRESET,PAPI_L1_DCA,DERIVED_POSTFIX,N0|N1|+|N2|+|N3|+,PM_ST_FIN,PM_ST_MISS_L1,PM_LD_REF_L1,PM_LD_MISS_L1
c7ea89
 PRESET,PAPI_L2_DCM,NOT_DERIVED,PM_DATA_FROM_L2MISS
c7ea89
 #n/aPRESET,PAPI_L2_LDM,NOT_DERIVED,PM_L2_LD_MISS
c7ea89
 #n/aPRESET,PAPI_L2_STM,NOT_DERIVED,PM_L2_ST_MISS