| 67 | { |
| 68 | public: |
| 69 | Filter() |
| 70 | { |
| 71 | // there are events from providers that are not explicitly enabled / filtered by presentmon |
| 72 | // but that are nonetheless required for PresentMon tracking operations |
| 73 | // they are likely enabled by default when doing ETW tracing |
| 74 | // we must add them manually here instead of adding them by listening to the FilteredProvider |
| 75 | |
| 76 | // NT_Process |
| 77 | // |
| 78 | ProviderEnabled(NT_Process::GUID, 0, 0, EnableAllLevels, EVENT_CONTROL_CODE_ENABLE_PROVIDER); |
| 79 | |
| 80 | // Microsoft_Windows_EventMetadata::GUID |
| 81 | // |
| 82 | ProviderEnabled(Microsoft_Windows_EventMetadata::GUID, 0, 0, EnableAllLevels, EVENT_CONTROL_CODE_ENABLE_PROVIDER); |
| 83 | } |
| 84 | // Inherited via IFilterBuildListener |
| 85 | void EventAdded(uint16_t id) override |
| 86 | { |
nothing calls this directly
no outgoing calls
no test coverage detected