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