| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9e5fe2b commit 8df627e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -94,6 +94,13 @@ extern int events_enabled; | |||
| 94 | 94 | dataDescriptors); \ | |
| 95 | 95 | CHECK_EQ(status, ERROR_SUCCESS); | |
| 96 | 96 | ||
| 97 | + #define ETW_WRITE_EMPTY_EVENT(eventDescriptor) \ | ||
| 98 | + DWORD status = event_write(node_provider, \ | ||
| 99 | + &eventDescriptor, \ | ||
| 100 | + 0, \ | ||
| 101 | + NULL); \ | ||
| 102 | + CHECK_EQ(status, ERROR_SUCCESS); | ||
| 103 | + | ||
| 97 | 104 | ||
| 98 | 105 | void NODE_HTTP_SERVER_REQUEST(node_dtrace_http_server_request_t* req, | |
| 99 | 106 | node_dtrace_connection_t* conn, const char *remote, int port, | |
@@ -189,10 +196,7 @@ void NODE_V8SYMBOL_MOVE(const void* addr1, const void* addr2) { | |||
| 189 | 196 | ||
| 190 | 197 | void NODE_V8SYMBOL_RESET() { | |
| 191 | 198 | if (events_enabled > 0) { | |
| 192 | - int val = 0; | ||
| 193 | - EVENT_DATA_DESCRIPTOR descriptors[1]; | ||
| 194 | - ETW_WRITE_INT32_DATA(descriptors, &val); | ||
| 195 | - ETW_WRITE_EVENT(NODE_V8SYMBOL_RESET_EVENT, descriptors); | ||
| 199 | + ETW_WRITE_EMPTY_EVENT(NODE_V8SYMBOL_RESET_EVENT); | ||
| 196 | 200 | } | |
| 197 | 201 | } | |
| 198 | 202 | ||
@@ -244,7 +248,7 @@ void NODE_V8SYMBOL_ADD(LPCSTR symbol, | |||
| 244 | 248 | line, | |
| 245 | 249 | col, | |
| 246 | 250 | symbuf, | |
| 247 | - symbol_len * sizeof(symbuf[0])); | ||
| 251 | + (symbol_len + 1) * sizeof(symbuf[0])); | ||
| 248 | 252 | ETW_WRITE_EVENT(MethodLoad, descriptors); | |
| 249 | 253 | } | |
| 250 | 254 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments