diff options
author | Ben Gamari <ben@smart-cactus.org> | 2015-08-31 22:39:13 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-09-05 10:54:45 +0200 |
commit | 062feee4e7408ad5b9d882e5fed2c700e337db72 (patch) | |
tree | 5a683dc20960e9a245bc52bb38b5afa35d4c1cc1 /rts/eventlog | |
parent | 96b986b669410cf4b6945d1039f9e16e54f4e53f (diff) | |
download | haskell-062feee4e7408ad5b9d882e5fed2c700e337db72.tar.gz |
tracing: Kill EVENT_STARTUP
This has been unnecessary for quite some time due to the create/delete
capability events.
Diffstat (limited to 'rts/eventlog')
-rw-r--r-- | rts/eventlog/EventLog.c | 14 | ||||
-rw-r--r-- | rts/eventlog/EventLog.h | 2 |
2 files changed, 0 insertions, 16 deletions
diff --git a/rts/eventlog/EventLog.c b/rts/eventlog/EventLog.c index c55ac2c644..2153942648 100644 --- a/rts/eventlog/EventLog.c +++ b/rts/eventlog/EventLog.c @@ -62,7 +62,6 @@ char *EventDesc[] = { [EVENT_MIGRATE_THREAD] = "Migrate thread", [EVENT_THREAD_WAKEUP] = "Wakeup thread", [EVENT_THREAD_LABEL] = "Thread label", - [EVENT_STARTUP] = "Create capabilities", [EVENT_CAP_CREATE] = "Create capability", [EVENT_CAP_DELETE] = "Delete capability", [EVENT_CAP_DISABLE] = "Disable capability", @@ -312,7 +311,6 @@ initEventLogging(void) + sizeof(EventThreadID); break; - case EVENT_STARTUP: // (cap_count) case EVENT_CAP_CREATE: // (cap) case EVENT_CAP_DELETE: // (cap) case EVENT_CAP_ENABLE: // (cap) @@ -1022,18 +1020,6 @@ void postCapMsg(Capability *cap, char *msg, va_list ap) postLogMsg(&capEventBuf[cap->no], EVENT_LOG_MSG, msg, ap); } -void postEventStartup(EventCapNo n_caps) -{ - ACQUIRE_LOCK(&eventBufMutex); - ensureRoomForEvent(&eventBuf, EVENT_STARTUP); - - // Post a STARTUP event with the number of capabilities - postEventHeader(&eventBuf, EVENT_STARTUP); - postCapNo(&eventBuf, n_caps); - - RELEASE_LOCK(&eventBufMutex); -} - void postUserEvent(Capability *cap, EventTypeNum type, char *msg) { EventsBuf *eb; diff --git a/rts/eventlog/EventLog.h b/rts/eventlog/EventLog.h index 9c2f265970..abe7880fe4 100644 --- a/rts/eventlog/EventLog.h +++ b/rts/eventlog/EventLog.h @@ -49,8 +49,6 @@ void postUserEvent(Capability *cap, EventTypeNum type, char *msg); void postCapMsg(Capability *cap, char *msg, va_list ap); -void postEventStartup(EventCapNo n_caps); - /* * Post an event relating to a capability itself (create/delete/etc) */ |