Skip to content

LTTng support for Mono runtime #65181

@stefan-sf-ibm

Description

@stefan-sf-ibm

Description

The document Performance Tracing on Linux speaks only about CoreCLR when it comes to LTTng. Thus, I'm wondering whether LTTng is supported while using the Mono runtime.

What makes me curios is that while building the .NET6 SDK with Mono as its primary runtime flavor I see that genLttngProvider.py is executed and code for the LTTng event provider is generated. However, a trace, for example generated via perfcollect does not include any user space event. In contrast if the same example is run with a .NET6 SDK utilizing CoreCLR, then user space events are recorded.

Can someone shed some light on whether LTTng is supported for Mono runtime?

Reproduction Steps

Run perfcollect collect foobar and use a .NET6 SDK with Mono as its primary runtime flavor:

dotnet new console
export DOTNET_PerfMapEnabled=1
export DOTNET_EnableEventLog=1
dotnet run

Afterwards inspect the trace file via babeltrace:

perfcollect view foobar.trace.zip -viewer lttng

Expected behavior

Thousands of user space events.

Actual behavior

Not a single event is shown.

Regression?

No response

Known Workarounds

No response

Configuration

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions