X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2FRtsFlags.h;h=902e6c064b1d4b4e2af29dec1250a9b9316a6102;hb=fac738e582dcaca1575f5291c83910db01d25284;hp=4bfe27636a522e9ea520c0c7b676b1e19b884ac6;hpb=cbeb99efd4a117de5b028341dc41bc8f50717383;p=ghc-hetmet.git diff --git a/includes/RtsFlags.h b/includes/RtsFlags.h index 4bfe276..902e6c0 100644 --- a/includes/RtsFlags.h +++ b/includes/RtsFlags.h @@ -43,6 +43,8 @@ struct GC_FLAGS { rtsBool frontpanel; int idleGCDelayTime; /* in milliseconds */ + + StgWord heapBase; /* address to ask the OS for memory */ }; struct DEBUG_FLAGS { @@ -173,6 +175,7 @@ struct PAR_FLAGS { rtsBool migrate; /* migrate threads between capabilities */ rtsBool wakeupMigrate; /* migrate a thread on wakeup */ unsigned int maxLocalSparks; + nat gcThreads; /* number of threads for parallel GC */ }; #endif /* THREADED_RTS */ @@ -301,11 +304,13 @@ struct TRACE_FLAGS { rtsBool timestamp; /* add timestamps to traces */ }; -/* Put them together: */ - #ifdef USE_PAPI +#define MAX_PAPI_USER_EVENTS 8 + struct PAPI_FLAGS { nat eventType; /* The type of events to count */ + nat numUserEvents; + char * userEvents[MAX_PAPI_USER_EVENTS]; }; #define PAPI_FLAG_CACHE_L1 1 @@ -313,9 +318,12 @@ struct PAPI_FLAGS { #define PAPI_FLAG_BRANCH 3 #define PAPI_FLAG_STALLS 4 #define PAPI_FLAG_CB_EVENTS 5 +#define PAPI_USER_EVENTS 6 #endif +/* Put them together: */ + typedef struct _RTS_FLAGS { /* The first portion of RTS_FLAGS is invariant. */ struct GC_FLAGS GcFlags;