diff options
author | Simon Marlow <marlowsd@gmail.com> | 2009-10-06 15:47:47 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2009-10-06 15:47:47 +0000 |
commit | 41a801223a8bd07659ea1178df67912f5dc3d588 (patch) | |
tree | 6b5ed71f2ca0c6537617c4c78a6ba9022666bb51 /rts/Trace.c | |
parent | a9fd21c9a231b862f6034c7e142f0216063f11ed (diff) | |
download | haskell-41a801223a8bd07659ea1178df67912f5dc3d588.tar.gz |
tracing wibble (make -ls work with a -debug RTS)
Diffstat (limited to 'rts/Trace.c')
-rw-r--r-- | rts/Trace.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/rts/Trace.c b/rts/Trace.c index a26a919561..81a2eb2c24 100644 --- a/rts/Trace.c +++ b/rts/Trace.c @@ -58,17 +58,11 @@ void initTracing (void) initMutex(&trace_utx); #endif -#define TRACE_FLAG(name, class) \ - class = RtsFlags.TraceFlags.name ? 1 : 0; - - TRACE_FLAG(scheduler, TRACE_sched); - #ifdef DEBUG #define DEBUG_FLAG(name, class) \ class = RtsFlags.DebugFlags.name ? 1 : 0; DEBUG_FLAG(scheduler, DEBUG_sched); - DEBUG_FLAG(scheduler, TRACE_sched); // -Ds enabled all sched events DEBUG_FLAG(interpreter, DEBUG_interp); DEBUG_FLAG(weak, DEBUG_weak); @@ -85,6 +79,11 @@ void initTracing (void) DEBUG_FLAG(sparks, DEBUG_sparks); #endif + // -Ds turns on scheduler tracing too + TRACE_sched = + RtsFlags.TraceFlags.scheduler || + RtsFlags.DebugFlags.scheduler; + eventlog_enabled = RtsFlags.TraceFlags.tracing == TRACE_EVENTLOG; if (eventlog_enabled) { |