Fixes to EtwCallback and EtwCallbackCommon: (#35793)
authorPeter Sollich <petersol@microsoft.com>
Wed, 6 May 2020 09:37:03 +0000 (02:37 -0700)
committerGitHub <noreply@github.com>
Wed, 6 May 2020 09:37:03 +0000 (11:37 +0200)
commit09501e33ca6e7decb1b9c13a3d84dc798023a0c8
tree39b27bf2129fa56e41c4076f82f88c0db8b0817a
parenta4c050ebf45a9745e2941863a8d7ae9c70ee88b2
Fixes to EtwCallback and EtwCallbackCommon: (#35793)

* Fixes to EtwCallback and EtwCallbackCommon:
- Windows only: only call GCHeapUtilities::RecordEventStateChange for EVENT_CONTROL_CODE_ENABLE_PROVIDER or  EVENT_CONTROL_CODE_DISABLE_PROVIDER, *not* for EVENT_CONTROL_CODE_CAPTURE_STATE.
- Only call GCHeapUtilities::RecordEventStateChange for DotNETRuntime and DotNETRuntimePrivate providers
- Windows only: Consolidate level and keywords between EventPipe and ETW, so that disabling an event on one side does not disable it for the other side, if the other side is still interested in it.
src/coreclr/src/vm/eventtrace.cpp