diff options
| author | Ahmed El-Shafiey <[email protected]> | 2012-12-26 09:00:14 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:49:24 -0700 |
| commit | 16843c3d564ceb47e58c8f1ed7df98fc0638adec (patch) | |
| tree | d5284605199453620ee1263cc9dabbd19d9d0661 /src/gpuwattch/XML_Parse.h | |
| parent | f2d7b79e26f8766a220ab07f8de3df603de9263c (diff) | |
-modifying the coefficients parsing code to be more readable, also modifies how it is set in the XML configuration file
This code modification avoids use of the string::assign function that seems to causing memory problems
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14886]
Diffstat (limited to 'src/gpuwattch/XML_Parse.h')
| -rw-r--r-- | src/gpuwattch/XML_Parse.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/gpuwattch/XML_Parse.h b/src/gpuwattch/XML_Parse.h index 7921719..53e408b 100644 --- a/src/gpuwattch/XML_Parse.h +++ b/src/gpuwattch/XML_Parse.h @@ -56,6 +56,42 @@ ToXMLStringTool tx,tx2; */
//all subnodes at the level of system.core(0-n)
//cache_policy is added into cache property arrays;//0 no write or write-though with non-write allocate;1 write-back with write-allocate
+static const char * perf_count_label[] = {"TOT_INST,", "FP_INT,", "IC_H,", "IC_M,", "DC_RH,", "DC_RM,", "DC_WH,", "DC_WM,",
+ "TC_H,", "TC_M,", "CC_H,", "CC_M,", "SHRD_ACC,", "REG_RD,", "REG_WR,", "NON_REG_OPs,",
+ "SP_ACC,", "SFU_ACC,", "FPU_ACC,", "MEM_RD,","MEM_WR,", "MEM_PRE,", "L2_RH,", "L2_RM,", "L2_WH,",
+ "L2_WM,", "NOC_A,", "PIPE_A,", "IDLE_CORE_N,", "CONST_DYNAMICN"};
+enum perf_count_t {
+ TOT_INST=0,
+ FP_INT,
+ IC_H,
+ IC_M,
+ DC_RH,
+ DC_RM,
+ DC_WH,
+ DC_WM,
+ TC_H,
+ TC_M,
+ CC_H,
+ CC_M,
+ SHRD_ACC,
+ REG_RD,
+ REG_WR,
+ NON_REG_OPs,
+ SP_ACC,
+ SFU_ACC,
+ FPU_ACC,
+ MEM_RD,
+ MEM_WR,
+ MEM_PRE,
+ L2_RH,
+ L2_RM,
+ L2_WH,
+ L2_WM,
+ NOC_A,
+ PIPE_A,
+ IDLE_CORE_N,
+ CONST_DYNAMICN
+};
typedef struct{
int prediction_width;
|
