Move EventSource to shared CoreLib partition (#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)
commitf7020d98c49d8c89fdad41aae64c018be63c623a
tree81f553e9650bcf0d9b8e50595fee289b5185c78c
parent994a50ee370cfe62ea4e56d3e55dc5babb65d575
Move EventSource to shared CoreLib partition (#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
20 files changed:
src/System.Private.CoreLib/System.Private.CoreLib.csproj
src/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.ActivityControl.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.EVENT_INFO_CLASS.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.EtwEnableCallback.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.EventActivityIdControl.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.EventRegister.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.EventSetInformation.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.EventTraceGuidsEx.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.EventUnregister.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.EventWriteString.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.EventWriteTransfer.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Interop.Errors.cs
src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs
src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs
src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/IEventProvider.cs
src/System.Private.CoreLib/src/Microsoft/Win32/UnsafeNativeMethods.cs
src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipe.cs
src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeEventProvider.cs
src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventSource_CoreCLR.cs [deleted file]