-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NativeAOT] GC events don't get logged on Linux #87445
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsThe event firing in Native AOT is under a mix of Some things don't even attempt to fire: runtime/src/coreclr/nativeaot/Runtime/gctoclreventsink.cpp Lines 30 to 37 in eb65022
Implementation of runtime/src/coreclr/nativeaot/Runtime/CMakeLists.txt Lines 110 to 115 in c32bee1
(There's a bunch of stuff in there, so it's not quite as simple as including it on non-Windows) Related (but more involved than): #87325 cc @LakshanF
|
More details - the tracking of whether the runtime provider is enabled for ETW vs event pipe is happening/stored in different places. Event pipe is tracked in
And updated in EtwCallbackCommon (called by EventPipeEtwCallbackDotNETRuntime , isn't registered as an ETW callback):runtime/src/coreclr/nativeaot/Runtime/eventpipe/dotnetruntime.cpp Lines 1924 to 1926 in 39bbff8
ETW is tracked in runtime/src/coreclr/nativeaot/Runtime/gcrhenv.cpp Lines 154 to 164 in 39bbff8
And updated in RhEtwControlCallback :runtime/src/coreclr/nativeaot/Runtime/EtwEvents.h Lines 42 to 53 in 39bbff8
The runtime/src/coreclr/nativeaot/Runtime/rheventtrace.h Lines 18 to 21 in 39bbff8
runtime/src/coreclr/nativeaot/Runtime/eventtracebase.h Lines 106 to 107 in 39bbff8
Implementation of runtime/src/coreclr/nativeaot/Runtime/eventtrace.cpp Lines 902 to 905 in 39bbff8
|
The event firing in Native AOT is under a mix of
FEATURE_EVENT_TRACE
andFEATURE_ETW
.Some things don't even attempt to fire:
runtime/src/coreclr/nativeaot/Runtime/gctoclreventsink.cpp
Lines 30 to 37 in eb65022
Implementation of
ETW::GCLog
is in eventtrace.cpp, which is only included on Windows:runtime/src/coreclr/nativeaot/Runtime/CMakeLists.txt
Lines 110 to 115 in c32bee1
(There's a bunch of stuff in there, so it's not quite as simple as including it on non-Windows)
Related (but more involved than): #87325
cc @LakshanF
The text was updated successfully, but these errors were encountered: