X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FTrace.h;h=1544971077c5f86545cfcf8a94b51d01e24f025e;hb=cd47700887365ca2a6af17d03e731efce65cf2ac;hp=f253280b260f349a33c199e3bfb32c7f443a5625;hpb=43c7d555c8d7eea6ba0d76bce33be8d25a01c6fd;p=ghc-hetmet.git diff --git a/rts/Trace.h b/rts/Trace.h index f253280..1544971 100644 --- a/rts/Trace.h +++ b/rts/Trace.h @@ -182,6 +182,8 @@ void traceCapsetModify_ (EventTypeNum tag, CapsetID capset, StgWord32 other); +void traceOSProcessInfo_ (void); + #else /* !TRACING */ #define traceSchedEvent(cap, tag, tso, other) /* nothing */ @@ -194,6 +196,7 @@ void traceCapsetModify_ (EventTypeNum tag, #define traceThreadStatus(class, tso) /* nothing */ #define traceEventStartup_(n_caps) /* nothing */ #define traceCapsetModify_(tag, capset, other) /* nothing */ +#define traceOSProcessInfo_() /* nothing */ #endif /* TRACING */ @@ -469,6 +472,13 @@ INLINE_HEADER void traceCapsetRemoveCap(CapsetID capset STG_UNUSED, dtraceCapsetRemoveCap(capset, capno); } +INLINE_HEADER void traceOSProcessInfo(void) +{ + traceOSProcessInfo_(); + /* Note: no DTrace equivalent because all this OS process info + * is available to DTrace directly */ +} + #include "EndPrivate.h" #endif /* TRACE_H */