Master Tracealyzer with Linux tracing
Getting Started with Tracealyzer for Linux tracing
Enable tracing, capture your first Linux trace, and analyze it in Tracealyzer.
Step 1
Integrate LTTng
Integrate LTTng into your system, enabling detailed trace analysis.
Step 2
Configure Tracing
Step 3
Capture Your First Trace
Capture your first trace and see how your Linux system executes.
Prerequisites
Before you begin
- Install Tracealyzer. If you haven’t done so, see detailed instructions here
- Existing Linux system that is able to run
- Target/debug connection available
Step 1: Add LTTng
Integrate LTTng into Your Project
Add Tracing Support
- Install LTTng on your target device. The steps will vary depending on your target system. As a first test, and to familiarize yourself with LTTng, you may try installing it on your host computer. On Ubuntu this is easily achieved through apt.
Configure the system
- Make sure the user running the tracing is part of the tracing group, unless you are tracing as root.
- In some cases you need to start lttng-sessiond as root before recording a trace.
Start tracing
- Start tracing by:
lttng create# Add any desired trace configuration, see "Configure Tracing" for further details. Event sched_* enabling example below
lttng enable-event -k sched_*
lttng start
- Stop tracing by:
lttng stoplttng destroy
For complete LTTng Integration details and advanced configuration, see the detailed LTTng documentation.
Step 2: Configure Tracing
Configure Tracing
Initial setup
LTTng allows a magnitude of configuration options for what parts to trace. For a minimal working setup we recommend to use the following:
lttng enable-event -k sched_* lttng add-context -k -t pid lttng add-context -k -t ppid
For further details upon LTTng configuration, please see the LTTng guide
Step 3: Trace Capture
Capture Your First Trace
By file copy
Transfer the trace file (located in ~/lttng-traces) to you host by any connection means available.
By Tracealyzer Target Library Tool
A more convenient way to record traces is using the Tracealyzer Target Library Tool, found in the Trace menu. This lets you control the tracing and download traces directly from Tracealyzer application, using an SSH connection.
Using the Target Library you can setup target profiles for easy access. Use the New button to create a new profile. From there you can setup the address, username and password or private key file. Once a profile has been created, the Connect button will allow you to connect to your target.
A tab will open to the right with three main parts. A trace session control panel, a command log and a command details box. Click the Start New Session button to start a new session. By default, a TzTrace session has been defined which is preconfigured to include scheduling, syscalls, signals and UST events. You can create your own setup using the Sessions And Channels Editor.
Opening the Trace
If using file copy, open the captured trace file in Tracealyzer. If using Tracalyzer Target Library Tool, the trace is automatically transfered to your host.
A successful trace should show recorded task execution, interrupts and other system events in the timeline.
If the trace is empty or doesn’t open correctly, see Troubleshooting.
Using Your Trace
Start by looking at:
-
Task scheduling — See when tasks execute, block and resume.
-
CPU usage — Identify tasks consuming significant CPU time.
-
Timing — Find long execution times and unexpected delays.
-
User events — Correlate trace data with application-specific behavior and custom events/logs. All synchronized into one execution timeline.
To learn more about using Tracealyzer, see Tracealyzer Features and Capabilities.
Troubleshoot Your Linux Trace
Resolve common setup and capture issues when using Tracealyzer.
Check the Setup Before Capturing Again
Start with a Linux system that runs, a working target connection, and Tracealyzer installed on your host. Then follow the checks below for the symptom you see.
System Fails After Adding LTTng
Trace File Is Empty
An empty trace usually means LTTng did not record events or the trace was not transferred completely. Confirm that tracing started successfully with lttng start and that the expected events are enabled, such as sched_*. Check that the tracing session contains data before stopping it, then verify the trace directory and copy the complete trace to your host. If tracing as a regular user, ensure that the user belongs to the tracing group; where required, start lttng-sessiond with the appropriate permissions. Capture a short test trace and open it in Tracealyzer to confirm events appear in the timeline.
Tracing Stops Too Soon
Streaming Data Does Not Arrive
Enhance Your Tracing Skills
Unlock deeper insights by exploring advanced trace analysis techniques and optimize your Linux applications.
Solutions
Tracealyzer
Detect
DevAlert
Try
Buy
Resources
Blog
White Papers
Application Notes
Videos
Company
Management
Press
Contact
Security Policy
Events
Stay in Touch
Copyright © 2026 Percepio AB. All rights reserved. | Privacy Policy | Licensing | Terms and Conditions | Cookie Settings
