diff options
author | Rama <ramarag@microsoft.com> | 2015-10-08 18:53:59 -0700 |
---|---|---|
committer | Rama <ramarag@microsoft.com> | 2015-10-11 18:50:39 -0700 |
commit | ff328b606c4edad13e9a211a8d89288340952f4c (patch) | |
tree | 61db95b33101397875ec50713471aa341e25cac5 /src/vm/method.cpp | |
parent | 66b24ad114f991cd882387f1a3bb280c7cd6877f (diff) | |
download | coreclr-ff328b606c4edad13e9a211a8d89288340952f4c.tar.gz coreclr-ff328b606c4edad13e9a211a8d89288340952f4c.tar.bz2 coreclr-ff328b606c4edad13e9a211a8d89288340952f4c.zip |
This enables Lttng Logging for CoreClr,
The Tracepoint Providers are built as a separate shared object called libcoreclrtraceptprovider and it is
available in the same directory as libcoreclr.so
By Default the ability of Tracing will not be present
To enable the ability of Tracing, the apps need to be run like:
LD_PRELOAD=libcoreclrtraceptprovider.so ./corerun HelloWorld.exe
For now to change Xplat Event Logging mechanism add any events to:
<root>/src/vm/ClrEtwAll.man
Then regenerate files by running :
<root>/src/inc/genXplatLtnng.pl
Conflicts:
Documentation/building/linux-instructions.md
Diffstat (limited to 'src/vm/method.cpp')
-rw-r--r-- | src/vm/method.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/vm/method.cpp b/src/vm/method.cpp index fcd96d3e9d..6926ce4b6e 100644 --- a/src/vm/method.cpp +++ b/src/vm/method.cpp @@ -4456,9 +4456,7 @@ void MethodDesc::CheckRestore(ClassLoadLevel level) pIMD->m_wFlags2 = pIMD->m_wFlags2 & ~InstantiatedMethodDesc::Unrestored; } -#if defined(FEATURE_EVENT_TRACE) - if (MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER_Context.IsEnabled) -#endif + if (ETW_PROVIDER_ENABLED(MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER)) { ETW::MethodLog::MethodRestored(this); } @@ -4475,9 +4473,7 @@ void MethodDesc::CheckRestore(ClassLoadLevel level) PTR_DynamicMethodDesc pDynamicMD = AsDynamicMethodDesc(); pDynamicMD->Restore(); -#if defined(FEATURE_EVENT_TRACE) - if (MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER_Context.IsEnabled) -#endif + if (ETW_PROVIDER_ENABLED(MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER)) { ETW::MethodLog::MethodRestored(this); } |