Running a kernel event trace
You can create log configurations to define kernel event trace parameters, then run one of these configurations to perform a trace. The generated log file contains data gathered from a target machine, including kernel events, CPU activity, and process and thread activity.
-
In the Launch Configuration dropdown, select a log configuration.
Log configurations for kernel event traces are indicated by the System Profiler icon (
). You can create a log configuration by selecting New Launch Configuration, which opens a wizard that guides you through this task. If you have an existing configuration, skip to Step 3.
-
Follow the steps in the New Launch Configuration wizard:
- Select an initial launch mode of Log.
- Select a launch configuration type of Neutrino Kernel Event Trace.
- Set the log configuration properties as needed.
- When you're finished setting the properties, click Finish to exit the wizard.
You can then select the new Launch Configuration entry for this new log configuration to continue. - In the Launch Target dropdown, select the target that you want to trace.
-
Click the Log button (
) on the left of the launch bar.
The kernel on the target begins logging event data to the output named in the log configuration. The procedure is explained inHow kernel event tracing works
. In the Kernel trace window, you can see the progress of the trace and choose to run it in the background.
When the trace finishes, the IDE asks you to open the kernel event log (.kev) file. If you select Yes, it then displays the file's data in the editor pane and switches to the QNX System Profiler perspective, which contains many views that let you interpret the trace data for analysis.


Starting a kernel event trace from the Target Navigator
You can also manage log configurations and start kernel event traces from the Target Navigator view.
- In the Target Navigator view, select the target (or any process listed under it) that you want to trace, then right-click to display the context menu.
-
Point to Log With... to display the log configurations submenu.
This submenu lists the supported log types. You can click the 1 Kernel Event Trace entry to bring up the Kernel Event Trace window, which lists the available log configurations for running kernel event traces. If you have an existing configuration that you want to use, skip to Step 3.
If you haven't created a kernel event trace configuration, the IDE opens the Log Configurations window and defines a default configuration with a name like Kernel Log of target.
Note:Even if you click Close without changing any settings or clicking Log to run a trace, the IDE still saves this configuration and you will see it listed in the Kernel Event Trace window.The Log With... submenu also contains the Log Configurations... option, which opens the window for managing log configurations. Here, the toolbar in the upper left corner lets you create, duplicate, and delete log configurations, as well as edit their property settings.
When the trace finishes, the IDE asks you to open the kernel event log (.kev) file. If you select Yes, it then displays the file's data in the editor pane and switches to the QNX System Profiler perspective, which contains many views that let you interpret the trace data for analysis.
The Target Navigator view also provides a logging button in the title bar
(),
which starts a new trace based on the selected log configuration. The dropdown button
(
)
next to this icon lists the recently used configurations, the Log With... submenu,
and an option for defining favorites.