Move EventSource to shared CoreLib partition (dotnet/coreclr#23925)
authorFilip Navara <filip.navara@gmail.com>
Tue, 16 Apr 2019 13:52:53 +0000 (15:52 +0200)
committerJan Kotas <jkotas@microsoft.com>
Tue, 16 Apr 2019 13:52:53 +0000 (06:52 -0700)
commite13509e5f473a9a0b0e8c9ff00004043d9b27a2a
tree91831ea2d6e81d45514704742c3e745e18637c19
parentb92a385d3db1af275d9530c168d6e4385aec19b2
Move EventSource to shared CoreLib partition (dotnet/coreclr#23925)

* Move most of EventSource to shared CoreLib partition

* Reenable some code that can be shared with Microsoft.Diagnostics.Tracing.EventSource.Redist in CoreFX

* Remove unused functions

* Fix placement of #endregion

* Clean up P/Invoke prototypes

* Move remaining code from EventSource_CoreCLR to shared partition (guarded by !CORERT)

* Remove more unnecessary marshalling attributes

* Move remaining CoreRT/ProjectN code to shared partition

* Avoid using Windows errors on non-Windows platforms

Commit migrated from https://github.com/dotnet/coreclr/commit/f7020d98c49d8c89fdad41aae64c018be63c623a
20 files changed:
src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj
src/coreclr/src/System.Private.CoreLib/src/Microsoft/Win32/UnsafeNativeMethods.cs
src/coreclr/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipe.cs
src/coreclr/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeEventProvider.cs
src/coreclr/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventSource_CoreCLR.cs [deleted file]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Advapi32/Interop.ActivityControl.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Advapi32/Interop.EVENT_INFO_CLASS.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Advapi32/Interop.EtwEnableCallback.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Advapi32/Interop.EventActivityIdControl.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Advapi32/Interop.EventRegister.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Advapi32/Interop.EventSetInformation.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Advapi32/Interop.EventTraceGuidsEx.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Advapi32/Interop.EventUnregister.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Advapi32/Interop.EventWriteString.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Advapi32/Interop.EventWriteTransfer.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Interop.Errors.cs
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventProvider.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/IEventProvider.cs