Currently, userevents are only enabled through record-trace. dotnet-trace collect-linux wraps around record-trace, which does all the work.
record-trace detects .NET processes using an implementation detail of PerfMaps, which isn't used by NativeAOT. Therefore, no .NET 10 NativeAOT apps are able to emit userevents through the supported profiling tools.
Steps to resolution:
In addition, UserEvents tests are temporarily disabled for NativeAOT until the above and the following are resolved:
Currently, userevents are only enabled through
record-trace.dotnet-trace collect-linuxwraps around record-trace, which does all the work.record-tracedetects .NET processes using an implementation detail of PerfMaps, which isn't used by NativeAOT. Therefore, no .NET 10 NativeAOT apps are able to emit userevents through the supported profiling tools.Steps to resolution:
In addition, UserEvents tests are temporarily disabled for NativeAOT until the above and the following are resolved:
MicrosoftOneCollectRecordTraceVersionis updated to the corresponding version - Update OneCollect.RecordTrace to 0.1.33304 and re-enable UserEvents NativeAOT tests #124616NativeAotIncompatibleis removed from userevents tests - Update OneCollect.RecordTrace to 0.1.33304 and re-enable UserEvents NativeAOT tests #124616