summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-03-05 11:20:39 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2021-03-07 12:09:01 +0000
commit29c54366989e1e8f1462707e45b7f19d48e4aea1 (patch)
treeb61bd5de33e7a79d33686864870f12bf59fb0a33 /includes
parentcf65cf16c89414273c4f6b2d090d4b2fffb90759 (diff)
downloadhaskell-wip/ghc-eventlog-repost.tar.gz
eventlog: Repost initialisation events when eventlog restartswip/ghc-eventlog-repost
If startEventlog is called after the program has already started running then quite a few useful events are missing from the eventlog because they are only posted when the program starts. This patch adds a mechanism to declare that an event should be reposted everytime the startEventlog function is called. Now in EventLog.c there is a global list of functions called `eventlog_header_funcs` which stores a list of functions which should be called everytime the eventlog starts. When calling `postInitEvent`, the event will not only be immediately posted to the eventlog but also added to the global list. When startEventLog is called, the list is traversed and the events reposted.
Diffstat (limited to 'includes')
0 files changed, 0 insertions, 0 deletions