From 1e89a59c77690482cbd889545a401e0be04a71b1 Mon Sep 17 00:00:00 2001 From: jjenista Date: Wed, 10 Nov 2010 00:18:40 +0000 Subject: [PATCH] coreprof events, RCR stuff will be online onyl after rcr threads register with coreprof --- Robust/src/Runtime/coreprof/coreprof.h | 5 +++++ Robust/src/Runtime/workschedule.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/Robust/src/Runtime/coreprof/coreprof.h b/Robust/src/Runtime/coreprof/coreprof.h index 45922faf..dcd39a58 100644 --- a/Robust/src/Runtime/coreprof/coreprof.h +++ b/Robust/src/Runtime/coreprof/coreprof.h @@ -92,6 +92,11 @@ #define CP_EVENTID_TASKSTALLMEM 0x61 #endif +#ifdef cpe_rcr_traverse +#define CP_EVENTID_RCR_TRAVERSE 0x80 +#endif + + // debug events don't require a preprocessor // guard because normally they are not in the code // base--its helpful to define them in case you diff --git a/Robust/src/Runtime/workschedule.c b/Robust/src/Runtime/workschedule.c index afa16582..00e9e12a 100644 --- a/Robust/src/Runtime/workschedule.c +++ b/Robust/src/Runtime/workschedule.c @@ -313,9 +313,13 @@ void workScheduleInit( int numProcessors, void workScheduleSubmit( void* workUnit ) { +#ifdef CP_EVENTID_WORKSCHEDSUBMIT CP_LOGEVENT( CP_EVENTID_WORKSCHEDSUBMIT, CP_EVENTTYPE_BEGIN ); +#endif dqPushBottom( &(deques[myWorkerID]), workUnit ); +#ifdef CP_EVENTID_WORKSCHEDSUBMIT CP_LOGEVENT( CP_EVENTID_WORKSCHEDSUBMIT, CP_EVENTTYPE_END ); +#endif } -- 2.34.1