coreprof updates, nothing huge
authorjjenista <jjenista>
Thu, 14 Oct 2010 17:48:32 +0000 (17:48 +0000)
committerjjenista <jjenista>
Thu, 14 Oct 2010 17:48:32 +0000 (17:48 +0000)
Robust/src/Benchmarks/oooJava/master-makefile
Robust/src/Benchmarks/oooJava/sor/runp
Robust/src/IR/Flat/BuildCode.java
Robust/src/Runtime/coreprof/coreprof.h
Robust/src/buildscript

index df12093a95b4f2a02ad795bab3458d228decb154..ec42371c7871b3c7a2287b6004bb416ff7234155 100644 (file)
@@ -13,12 +13,13 @@ BUILDSCRIPT=../../../buildscript
 
 
 COREPROFOVERFLOW= #-coreprof-checkoverflow
-USECOREPROF= #coreprof $(COREPROFOVERFLOW) \
+USECOREPROF= #-coreprof $(COREPROFOVERFLOW) \
        -coreprof-eventwords 1024*1024*128 \
        -coreprof-enable cpe_main \
        -coreprof-enable cpe_runmalloc \
        -coreprof-enable cpe_taskexecute \
-       -coreprof-enable cpe_taskdispatch
+       -coreprof-enable cpe_taskdispatch \
+       -coreprof-enable cpe_poolalloc
 #      -coreprof-enable cpe_preparememq
 #      -coreprof-enable cpe_runfree \
 #      -coreprof-enable cpe_count_poolalloc \
index 398cad5750dc5da71a347aa8af01ae561facf4a9..dbe36f63c2b33fba54b54abea834732c95706401 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-time ./JGFSORBenchSizeDp.bin
+time numactl --interleave=all ./JGFSORBenchSizeDp.bin
index 3e119b9fd8218b1909a5752889f60f0a9930a48f..1dff0ddbbc3aba112fe7d8ea51aa760d6db59854 100644 (file)
@@ -3725,26 +3725,28 @@ public class BuildCode {
     }
 
 
-
-
     // allocate the space for this record
     output.println( "#ifndef OOO_DISABLE_TASKMEMPOOL" );
+
+    output.println( "#ifdef CP_EVENTID_POOLALLOC");
+    output.println( "     CP_LOGEVENT( CP_EVENTID_POOLALLOC, CP_EVENTTYPE_BEGIN );");
+    output.println( "#endif");
     if( (state.MLP     && fsen != mlpa.getMainSESE()) || 
         (state.OOOJAVA && fsen != oooa.getMainSESE())
         ) {
-
-      //output.println("     CP_LOGEVENT( CP_EVENTID_DEBUG_B, CP_EVENTTYPE_BEGIN );");    
       output.println("     "+
                      fsen.getSESErecordName()+"* seseToIssue = ("+
                      fsen.getSESErecordName()+"*) poolalloc( runningSESE->taskRecordMemPool );");
-      //output.println("     CP_LOGEVENT( CP_EVENTID_DEBUG_B, CP_EVENTTYPE_END );");
-
     } else {
       output.println("     "+
                      fsen.getSESErecordName()+"* seseToIssue = ("+
                      fsen.getSESErecordName()+"*) mlpAllocSESErecord( sizeof( "+
                      fsen.getSESErecordName()+" ) );");
     }
+    output.println( "#ifdef CP_EVENTID_POOLALLOC");
+    output.println( "     CP_LOGEVENT( CP_EVENTID_POOLALLOC, CP_EVENTTYPE_END );");
+    output.println( "#endif");
+
     output.println( "#else // OOO_DISABLE_TASKMEMPOOL" );
       output.println("     "+
                      fsen.getSESErecordName()+"* seseToIssue = ("+
@@ -3755,8 +3757,6 @@ public class BuildCode {
 
 
 
-
-
     // set up the SESE in-set and out-set objects, which look
     // like a garbage list
     output.println("     struct garbagelist * gl= (struct garbagelist *)&(((SESEcommon*)(seseToIssue))[1]);");
index f44002a8c3f996dac2fa83a402969d97f98d430b..cb294e1e3ccba4c6ae1c0235b5bda3e3541dd18f 100644 (file)
 #define CP_EVENTID_RUNFREE            0x11
 #endif
 
+#ifdef cpe_poolalloc
+#define CP_EVENTID_POOLALLOC          0x14
+#endif
+
 #ifdef cpe_count_poolalloc
 #define CP_EVENTID_COUNT_POOLALLOC    0x15
 #endif
index d1a13169a36158b4a1f94289c930a8ad9cb9be79..0d03fb318c8a07a95fe5ba7258d5bce2faccf654 100755 (executable)
@@ -21,7 +21,7 @@ echo -coreprof, turn on profiling API
 echo -coreprof-eventwords NUM, space in words/thread for coreprof events
 echo -coreprof-checkoverflow, ONLY use for debugging event overflow
 echo -coreprof-enable EVENTNAME, only enable desired events to reduce overhead
-echo   EVENTNAME can be: cpe_main, cpe_runmalloc, cpe_runfree, cpe_count_poolalloc, cpe_count_poolreuse, cpe_workschedgrab, cpe_taskdispatch, cpe_preparememq, cpe_taskexecute, cpe_taskretire, cpe_taskstallvar, cpe_taskstallmem 
+echo   EVENTNAME can be: cpe_main, cpe_runmalloc, cpe_runfree, cpe_poolalloc, cpe_count_poolalloc, cpe_count_poolreuse, cpe_workschedgrab, cpe_taskdispatch, cpe_preparememq, cpe_taskexecute, cpe_taskretire, cpe_taskstallvar, cpe_taskstallmem 
 echo "-ooojava <numberofcores> <maxseseage>"
 echo -ooodebug general OOOJava debugging messages
 echo -ooodebug-disable-task-mem-pool this is a tricky module, disable for simpler runtime