X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=Robust%2Fsrc%2FIR%2FFlat%2FBuildCode.java;h=8781ff4e3ca832db40545acb02f3d86ce2a20c59;hb=4cb63e913202459da4fe9d01feb7c02f1b98dd6f;hp=b6679ed2b00858e89b8a11f2c07246ebd458fdb1;hpb=71d0bd22fd98e87e779742b3e4283d2659437a58;p=IRC.git diff --git a/Robust/src/IR/Flat/BuildCode.java b/Robust/src/IR/Flat/BuildCode.java index b6679ed2..8781ff4e 100644 --- a/Robust/src/IR/Flat/BuildCode.java +++ b/Robust/src/IR/Flat/BuildCode.java @@ -270,6 +270,10 @@ public class BuildCode { outmethod.println("printf(\"****** Transaction Stats ******\\n\");"); outmethod.println("printf(\"numTransAbort= %d\\n\", numTransAbort);"); outmethod.println("printf(\"numTransCommit= %d\\n\", numTransCommit);"); + outmethod.println("printf(\"nchashSearch= %d\\n\", nchashSearch);"); + outmethod.println("printf(\"nmhashSearch= %d\\n\", nmhashSearch);"); + outmethod.println("printf(\"nprehashSearch= %d\\n\", nprehashSearch);"); + outmethod.println("printf(\"nRemoteReadSend= %d\\n\", nRemoteSend);"); outmethod.println("#endif\n"); outmethod.println("}"); @@ -316,7 +320,7 @@ public class BuildCode { outmethod.println("#include \"virtualtable.h\""); outmethod.println("#include \"runtime.h\""); if (state.DSM) { - outmethod.println("#include \"dstm.h\""); + outmethod.println("#include \"addPrefetchEnhance.h\""); outmethod.println("#include \"localobjects.h\""); } if(state.MULTICORE) { @@ -727,6 +731,10 @@ public class BuildCode { outclassdefs.print("#ifdef TRANSSTATS \n"); outclassdefs.print("extern int numTransAbort;\n"); outclassdefs.print("extern int numTransCommit;\n"); + outclassdefs.print("extern int nchashSearch;\n"); + outclassdefs.print("extern int nmhashSearch;\n"); + outclassdefs.print("extern int nprehashSearch;\n"); + outclassdefs.print("extern int nRemoteSend;\n"); outclassdefs.print("extern void handle();\n"); outclassdefs.print("#endif\n"); outclassdefs.print("int numprefetchsites = " + pa.prefetchsiteid + ";\n");