diff options
author | David Mason <davmason@microsoft.com> | 2022-11-13 11:13:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 11:13:15 +0300 |
commit | 653be13516cea8317b4c307b31efba0bef8f1678 (patch) | |
tree | 76b9df9e17fcbddba9377634e07c3110549688bf | |
parent | b2cf1c7a3796d5fb5acb0237017d8a61c6d3dc6b (diff) |
Don't emit manifest for NativeRuntimeEventSource (#78213)
-rw-r--r-- | src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs b/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs index fc8c2a8226c..14186011ece 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs @@ -2807,8 +2807,13 @@ namespace System.Diagnostics.Tracing // Today, we only send the manifest to ETW, custom listeners don't get it. private unsafe void SendManifest(byte[]? rawManifest) { - if (rawManifest == null) + if (rawManifest == null + // Don't send the manifest for NativeRuntimeEventSource, it is conceptually + // an extension of the native coreclr provider + || m_name.Equals("Microsoft-Windows-DotNETRuntime")) + { return; + } Debug.Assert(!SelfDescribingEvents); |