X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fprelude%2Fprimops.txt.pp;fp=compiler%2Fprelude%2Fprimops.txt.pp;h=3aa093a81793168175208796aa0b545c2dc7ac7d;hp=0af4c881f60ee5691d8a3a22fc4bee5071b9d1bd;hb=5407ad8e0a5c08ac5193c1a9ede2a12570baee0b;hpb=e43a5e498520b933a0d9f4c7e9ddfb7ed2032cfd 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 + ------------------------------------------------------------------------ --- --- ------------------------------------------------------------------------