patch applied (ghc): Expose all EventLog events as DTrace probes
chak at cse.unsw.edu.au
chak at cse.unsw.edu.au
Sat Dec 12 07:07:51 EST 2009
Sat Dec 12 02:08:09 PST 2009 Manuel M T Chakravarty <chak at cse.unsw.edu.au>
* Expose all EventLog events as DTrace probes
Ignore-this: 2c5ef30b1ff7fb2ea5fba8cf0a187d45
- Defines a DTrace provider, called 'HaskellEvent', that provides a probe
for every event of the eventlog framework.
- In contrast to the original eventlog, the DTrace probes are available in
all flavours of the runtime system (DTrace probes have virtually no
overhead if not enabled); when -DTRACING is defined both the regular
event log as well as DTrace probes can be used.
- Currently, Mac OS X only. User-space DTrace probes are implemented
differently on Mac OS X than in the original DTrace implementation.
Nevertheless, it shouldn't be too hard to enable these probes on other
platforms, too.
- Documentation is at http://hackage.haskell.org/trac/ghc/wiki/DTrace
M ./configure.ac +10
M ./includes/rts/EventLogFormat.h -1 +2
M ./mk/config.mk.in +3
M ./rts/Capability.c -6 +5
M ./rts/PrimOps.cmm +15
A ./rts/RtsProbes.d
M ./rts/RtsStartup.c +3
M ./rts/Schedule.c -11 +11
M ./rts/Schedule.h -1 +1
M ./rts/Sparks.c -1 +1
M ./rts/Threads.c -2 +2
M ./rts/Trace.c -2 +16
M ./rts/Trace.h -1 +236
M ./rts/eventlog/EventLog.c -1
M ./rts/ghc.mk -1 +26
M ./rts/sm/GC.c -3 +3
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20091212100809-6295e-f6d3da3fa03ec84ac88228f0cb1d48d2c97e0cae.gz
More information about the Cvs-ghc
mailing list