X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2Frts%2Fprof%2FLDV.h;h=64266911bd7cc1eb2a7f7735863f543dca77ea47;hb=58339b06aff704834e8553faaa2db00d746b26f3;hp=c51b10647e97d24e9e3155e2dd4f0973e667c271;hpb=a2a67cd520b9841114d69a87a423dabcb3b4368e;p=ghc-hetmet.git diff --git a/includes/rts/prof/LDV.h b/includes/rts/prof/LDV.h index c51b106..6426691 100644 --- a/includes/rts/prof/LDV.h +++ b/includes/rts/prof/LDV.h @@ -1,9 +1,14 @@ /* ----------------------------------------------------------------------------- * - * (c) The University of Glasgow, 2004 + * (c) The University of Glasgow, 2009 * * Lag/Drag/Void profiling. * + * Do not #include this file directly: #include "Rts.h" instead. + * + * To understand the structure of the RTS headers, see the wiki: + * http://hackage.haskell.org/trac/ghc/wiki/Commentary/SourceTree/Includes + * * ---------------------------------------------------------------------------*/ #ifndef RTS_PROF_LDV_H @@ -23,23 +28,19 @@ * because retainer profiling also expects LDVW(c) to be initialised * to zero. */ -#ifndef CMINUSMINUS -#define LDV_RECORD_CREATE(c) \ - LDVW((c)) = ((StgWord)RTS_DEREF(era) << LDV_SHIFT) | LDV_STATE_CREATE -#endif #ifdef CMINUSMINUS -#define LDV_RECORD_DEAD_FILL_SLOP_DYNAMIC(c) \ - foreign "C" LDV_recordDead_FILL_SLOP_DYNAMIC(c "ptr") + #else -#define LDV_RECORD_DEAD_FILL_SLOP_DYNAMIC(c) \ - LDV_recordDead_FILL_SLOP_DYNAMIC(c) + +#define LDV_RECORD_CREATE(c) \ + LDVW((c)) = ((StgWord)RTS_DEREF(era) << LDV_SHIFT) | LDV_STATE_CREATE + #endif #else /* !PROFILING */ #define LDV_RECORD_CREATE(c) /* nothing */ -#define LDV_RECORD_DEAD_FILL_SLOP_DYNAMIC(c) /* nothing */ #endif /* PROFILING */