Enable Portable ThreadPool events to be written using NativeRuntimeEventSource (...
authorSung Yoon Whang <suwhang@microsoft.com>
Thu, 11 Feb 2021 00:21:39 +0000 (16:21 -0800)
committerGitHub <noreply@github.com>
Thu, 11 Feb 2021 00:21:39 +0000 (16:21 -0800)
commitba3681375cb978c5539815bc6b319b49899025e1
treef281960061e08b06f9c03566bda7563f002e36c9
parent008de9a4a4d0d903a7b3148c7bac8b167ee4b399
Enable Portable ThreadPool events to be written using NativeRuntimeEventSource (#47829)

* match up the GUID

* why is this returning nothing

* Make ThreadPool emit events via NativeRuntimeEventSource

* found error...

* hack around having duplicate events generated

* make portable threadpool fire events through nativeruntimeeventsource

* make the initializer live in correct namespace

* EventListener tests are passing now

* make native QCall endpoints that sink into LTTng

* send events through XplatEventLogger sink

* Fix merge error

* double registration

* fix callback not getting handled when lttng is enabled

* cleanup 1

* rename file

* remove stale comments

* remove stale comment

* undo useless change

* fix broken EventListener

* apply code review feedback

* fix windows build

* fix incorrect qcall

* fix up ifdefs for Windows builds

* fix ifdef

* put back removed code

* tests pass now

* Fix NativeRuntimeEventSource not getting enabled for lttng

* Add some more comments

* Add comment in generated code

* fix mono build

* PR feedback

* fix typo

* code review feedback
15 files changed:
src/coreclr/scripts/genRuntimeEventSources.py
src/coreclr/vm/corelib.cpp
src/coreclr/vm/ecalllist.h
src/coreclr/vm/nativeeventsource.cpp
src/coreclr/vm/nativeeventsource.h
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/NativeRuntimeEventSource.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/TraceLogging/XplatEventLogger.cs
src/libraries/System.Private.CoreLib/src/System/Threading/NativeRuntimeEventSource.PortableThreadPool.cs [moved from src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPoolEventSource.cs with 55% similarity]
src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.GateThread.cs
src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.HillClimbing.cs
src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.WaitThread.cs
src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.WorkerThread.cs
src/native/eventpipe/ep-config.c