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 480eee9 commit d0a91c5Copy full SHA for d0a91c5
src/native/eventpipe/ep-provider.c
@@ -248,8 +248,12 @@ ep_provider_add_event (
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
- int64_t session_mask = ~0xF00000000000;
252
- keywords &= session_mask;
+ uint64_t session_mask = ~0xF00000000000;
+ // -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,
0 commit comments