X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fprelude%2Fprimops.txt.pp;h=3aa093a81793168175208796aa0b545c2dc7ac7d;hb=609e7ddfb10bc04762b820e70e0487ad6c514c2e;hp=0af4c881f60ee5691d8a3a22fc4bee5071b9d1bd;hpb=d874b8c93b737bf26c949ef7bf19fc43e335bd1f;p=ghc-hetmet.git diff --git a/compiler/prelude/primops.txt.pp b/compiler/prelude/primops.txt.pp index 0af4c88..3aa093a 100644 --- a/compiler/prelude/primops.txt.pp +++ b/compiler/prelude/primops.txt.pp @@ -1769,6 +1769,16 @@ pseudoop "unsafeCoerce#" -- the wrapper had type () -> (), and hence the wrapper de-constructed the (), the worker re-constructed -- a new (), with the result that the code ended up with "case () of (a,b) -> ...". +primop TraceEventOp "traceEvent#" GenPrimOp + Addr# -> State# s -> State# s + { Emits an event via the RTS tracing framework. The contents + of the event is the zero-terminated byte string passed as the first + argument. The event will be emitted either to the .eventlog file, + or to stderr, depending on the runtime RTS flags. } + with + has_side_effects = True + out_of_line = True + ------------------------------------------------------------------------ --- --- ------------------------------------------------------------------------