We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1281a4a commit 28c7eb8Copy full SHA for 28c7eb8
src/native/eventpipe/ep-provider.c
@@ -245,6 +245,16 @@ ep_provider_add_event (
245
246
ep_requires_lock_not_held ();
247
248
+ // Keyword bits 44-47 are reserved for use by EventSources, and every EventSource sets them all.
249
+ // We filter out those bits here so later comparisons don't have to take them in to account. Without
250
+ // filtering, EventSources wouldn't show up with Keywords=0.
251
+ uint64_t session_mask = ~0xF00000000000;
252
+ // -1 is special, it means all keywords. Don't change it.
253
+ uint64_t all_keywords = (uint64_t)(-1);
254
+ if (keywords != all_keywords) {
255
+ keywords &= session_mask;
256
+ }
257
+
258
EventPipeEvent *instance = ep_event_alloc (
259
provider,
260
keywords,
0 commit comments