X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2FRtsExternal.h;h=30a5b567021cd9079bbf911471aca1654d3ff0d8;hb=dcc66f7459ce8b815c1c82521ac6b6214a91ba7b;hp=0c606e99b9de0b729afbfbbbc87775c7775582bf;hpb=c8217b3d269ccbdcc6eb8a6e9a9e202d247ca7f4;p=ghc-hetmet.git diff --git a/includes/RtsExternal.h b/includes/RtsExternal.h index 0c606e9..30a5b56 100644 --- a/includes/RtsExternal.h +++ b/includes/RtsExternal.h @@ -71,10 +71,19 @@ extern void* createAdjustor(int cconv, StgStablePtr hptr, StgFunPtr wptr, extern void freeHaskellFunctionPtr(void* ptr); /* Hpc stuff */ -extern int hs_hpc_module(char *modName,int modCount,StgWord64 *tixArr); -extern void hs_hpc_tick(int globIx,struct StgTSO_ *current_tso); -extern void hs_hpc_raise_event(struct StgTSO_ *current_tso); -extern void hs_hpc_thread_finished_event(struct StgTSO_ *current_tso); +extern int hs_hpc_module(char *modName,int modCount,int modHashNo,StgWord64 *tixArr); +// Simple linked list of modules +typedef struct _HpcModuleInfo { + char *modName; // name of module + int tickCount; // number of ticks + int tickOffset; // offset into a single large .tix Array + int hashNo; // Hash number for this module's mix info + StgWord64 *tixArr; // tix Array; local for this module + struct _HpcModuleInfo *next; +} HpcModuleInfo; + +extern HpcModuleInfo *hs_hpc_rootModule(void); + #if defined(mingw32_HOST_OS) extern int rts_InstallConsoleEvent ( int action, StgStablePtr *handler ); @@ -99,6 +108,11 @@ extern void setIOManagerPipe (int fd); extern void* allocateExec(unsigned int len); +// Breakpoint stuff +extern int rts_stop_next_breakpoint; +extern int rts_stop_on_exception; +extern HsStablePtr rts_breakpoint_io_action; + /* ----------------------------------------------------------------------------- Storage manager stuff exported -------------------------------------------------------------------------- */