Only trace cap/capset events if we're tracing anything else
authorSimon Marlow <marlowsd@gmail.com>
Tue, 2 Aug 2016 08:57:19 +0000 (09:57 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 3 Aug 2016 07:07:34 +0000 (08:07 +0100)
commitd1fe08ec15230d5a6c3025ef798a8c911d2fa1c7
treefafd1d019805eff2a819a27f0940f52d49e2c83a
parent988ad8ba8e709eff3cea59728e481bb269fa6185
Only trace cap/capset events if we're tracing anything else

Summary:
I was getting annoyed by cap/capset messages when using +RTS -DS, which
doesn't cause any other trace messages to be emitted.  This makes it
possible to add --with-rtsopts=-DS when running tests, and not have all
the tests fail due to spurious trace messages.

Test Plan: validate

Reviewers: duncan, bgamari, ezyang, austin, erikd

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2438
rts/Trace.c
rts/Trace.h