X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2Frts%2FFlags.h;h=b4e7b64c4e3301c6fa99c7a27bde663ea10be034;hb=96d64fe2175d829f9499656750d51cf577ff9892;hp=e78bed2d85d910077875f1f3a78ede69425aa4a4;hpb=5407ad8e0a5c08ac5193c1a9ede2a12570baee0b;p=ghc-hetmet.git diff --git a/includes/rts/Flags.h b/includes/rts/Flags.h index e78bed2..b4e7b64 100644 --- a/includes/rts/Flags.h +++ b/includes/rts/Flags.h @@ -29,11 +29,14 @@ struct GC_FLAGS { nat maxStkSize; /* in *words* */ nat initialStkSize; /* in *words* */ + nat stkChunkSize; /* in *words* */ + nat stkChunkBufferSize; /* in *words* */ nat maxHeapSize; /* in *blocks* */ nat minAllocAreaSize; /* in *blocks* */ nat minOldGenSize; /* in *blocks* */ nat heapSizeSuggestion; /* in *blocks* */ + rtsBool heapSizeSuggestionAuto; double oldGenFactor; double pcFreeHeap; @@ -145,8 +148,7 @@ struct MISC_FLAGS { struct PAR_FLAGS { nat nNodes; /* number of threads to run simultaneously */ rtsBool migrate; /* migrate threads between capabilities */ - rtsBool wakeupMigrate; /* migrate a thread on wakeup */ - unsigned int maxLocalSparks; + unsigned int maxLocalSparks; rtsBool parGcEnabled; /* enable parallel GC */ unsigned int parGcGen; /* do parallel GC in this generation * and higher only */ @@ -172,6 +174,8 @@ struct PAPI_FLAGS { nat eventType; /* The type of events to count */ nat numUserEvents; char * userEvents[MAX_PAPI_USER_EVENTS]; + /* Allow user to enter either PAPI preset or native events */ + nat userEventsKind[MAX_PAPI_USER_EVENTS]; }; #define PAPI_FLAG_CACHE_L1 1 @@ -180,6 +184,8 @@ struct PAPI_FLAGS { #define PAPI_FLAG_STALLS 4 #define PAPI_FLAG_CB_EVENTS 5 #define PAPI_USER_EVENTS 6 +#define PAPI_PRESET_EVENT_KIND 0 +#define PAPI_NATIVE_EVENT_KIND 1 #endif @@ -213,13 +219,6 @@ extern RTS_FLAGS RtsFlags[]; extern RTS_FLAGS RtsFlags; #endif -/* Routines that operate-on/to-do-with RTS flags: */ - -void initRtsFlagsDefaults(void); -void setupRtsFlags(int *argc, char *argv[], int *rts_argc, char *rts_argv[]); -void setProgName(char *argv[]); - - /* * The printf formats are here, so we are less likely to make * overly-long filenames (with disastrous results). No more than 128