From: bdemsky Date: Sun, 10 Jul 2011 23:44:20 +0000 (+0000) Subject: clean up dtlb sample code...mostly fixing multisample bug X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=25093ab53bd58c278995523d99b5dc0fbf6d1021;p=IRC.git clean up dtlb sample code...mostly fixing multisample bug --- diff --git a/Robust/src/Runtime/bamboo/multicorecache.c b/Robust/src/Runtime/bamboo/multicorecache.c index 90c6d04e..fc7c769c 100644 --- a/Robust/src/Runtime/bamboo/multicorecache.c +++ b/Robust/src/Runtime/bamboo/multicorecache.c @@ -421,7 +421,7 @@ void cacheAdapt_phase_client() { //send init finish msg to core coordinator send_msg_2(STARTUPCORE, GCFINISHPREF, BAMBOO_NUM_OF_CORE); GC_PRINTF("Finish prefinish phase\n"); - CACHEADAPT_SAMPING_RESET(); + CACHEADAPT_SAMPLING_RESET(); if(BAMBOO_NUM_OF_CORE < NUMCORESACTIVE) { // zero out the gccachesamplingtbl BAMBOO_MEMSET_WH(gccachesamplingtbl_local,0,size_cachesamplingtbl_local); @@ -456,8 +456,8 @@ void cacheAdapt_phase_master() { cacheAdapt_mutator(); cacheAdapt_gc(false); GC_CHECK_ALL_CORE_STATUS(); - - CACHEADAPT_SAMPING_RESET(); + + CACHEADAPT_SAMPLING_RESET(); if(BAMBOO_NUM_OF_CORE < NUMCORESACTIVE) { // zero out the gccachesamplingtbl BAMBOO_MEMSET_WH(gccachesamplingtbl_local,0,size_cachesamplingtbl_local); diff --git a/Robust/src/Runtime/bamboo/multicorecache.h b/Robust/src/Runtime/bamboo/multicorecache.h index d71b470a..c3e42b7f 100644 --- a/Robust/src/Runtime/bamboo/multicorecache.h +++ b/Robust/src/Runtime/bamboo/multicorecache.h @@ -88,9 +88,9 @@ void gc_output_cache_sampling_r(); #ifdef GC_CACHE_SAMPLING // reset the sampling arrays -#define CACHEADAPT_SAMPING_RESET() bamboo_dtlb_sampling_reset() +#define CACHEADAPT_SAMPLING_RESET() bamboo_dtlb_sampling_reset() #else // GC_CACHE_SAMPING -#define CACHEADAPT_SAMPING_RESET() +#define CACHEADAPT_SAMPLING_RESET() #endif #define CACHEADAPT_SAMPLING_DATA_REVISE_INIT(o,t) \ diff --git a/Robust/src/Runtime/bamboo/multicoregarbage.c b/Robust/src/Runtime/bamboo/multicoregarbage.c index 2853466c..5e015351 100644 --- a/Robust/src/Runtime/bamboo/multicoregarbage.c +++ b/Robust/src/Runtime/bamboo/multicoregarbage.c @@ -511,8 +511,6 @@ void pregcprocessing() { #if defined(GC_CACHE_ADAPT)&&defined(GC_CACHE_SAMPLING) // disable the timer interrupt bamboo_mask_timer_intr(); -#endif -#if defined(GC_CACHE_ADAPT)&&defined(GC_CACHE_SAMPLING) // get the sampling data bamboo_output_dtlb_sampling(); #endif @@ -523,6 +521,8 @@ void postgcprocessing() { // enable the timer interrupt bamboo_tile_timer_set_next_event(GC_TILE_TIMER_EVENT_SETTING); bamboo_unmask_timer_intr(); + //turn on sampling again + bamboo_dtlb_sampling_init(); #endif }