Add EventPipe Processor Number support and make NetTrace the default … (dotnet/corecl...
authorNoah Falk <noahfalk@users.noreply.github.com>
Fri, 21 Jun 2019 22:27:21 +0000 (15:27 -0700)
committerGitHub <noreply@github.com>
Fri, 21 Jun 2019 22:27:21 +0000 (15:27 -0700)
commitd71cc2d136971546b3588970a735a1e075ea382f
treef919257ed8979b1d271fb8cb9f5bbbf403fb9001
parent79c74710323cc5c7a3bed24f925dc0965e0217a4
Add EventPipe Processor Number support and make NetTrace the default … (dotnet/coreclr#25276)

* Add EventPipe Processor Number support and make NetTrace the default format

The EventPipe header now has a Processor Number field. On windows we query the correct value, on other OSes we currently have a -1 placeholder, but the field is written to the format regardless.
NetTrace is now the default format when using the environment variable, and the format must be explicitly configured when using the IPC channel or managed API. A parallel change in the diagnostics repo is changing dotnet-trace and dotnet-counter to specify nettrace format which means .NET devs should see nettrace almost exclusively from now on. If for whatever reason it is needed, NetPerf remains available if a scenario explicitly requests to use it.

* PR feedback + attempting to fix broken tests

Commit migrated from https://github.com/dotnet/coreclr/commit/961e8d7bd1bdd058ee5f8f34937e9f3f9d80b65b
19 files changed:
src/coreclr/dependencies.props
src/coreclr/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipe.cs
src/coreclr/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeController.cs
src/coreclr/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeEventDispatcher.cs
src/coreclr/src/inc/clrconfigvalues.h
src/coreclr/src/vm/eventpipe.cpp
src/coreclr/src/vm/eventpipe.h
src/coreclr/src/vm/eventpipeblock.cpp
src/coreclr/src/vm/eventpipeblock.h
src/coreclr/src/vm/eventpipebuffer.cpp
src/coreclr/src/vm/eventpipeconfiguration.cpp
src/coreclr/src/vm/eventpipeeventinstance.cpp
src/coreclr/src/vm/eventpipeeventinstance.h
src/coreclr/src/vm/eventpipeinternal.cpp
src/coreclr/src/vm/eventpipeinternal.h
src/coreclr/src/vm/eventpipeprotocolhelper.cpp
src/coreclr/src/vm/eventpipeprotocolhelper.h
src/coreclr/tests/src/tracing/common/TraceConfiguration.cs
src/coreclr/tests/src/tracing/regress/GitHub_22247/GitHub_22247.cs