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.
Before you can gather data from a QNX target, you must
create a connection
to it.
Note:
In this SDP release, the instrumented version of the kernel (procnto*-instr) is the only version
that we ship. This component includes a small, efficient module that generates events based on process and thread activity
such as kernel calls and context switches. So, you don't need to confirm that this process is running on the target,
unlike in previous releases.
To run a kernel event trace from the launch bar:
-
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 in
How 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.
Note:
You can also use the logging button
(
) in the
toolbar (in the upper right area of the IDE) to start a new trace based on the selected log configuration. The dropdown
button (
)
next to this icon opens a menu that lists the recently used log configurations, the
Log With...
submenu (which is explained in the next subsection),
the
Log Configurations option (which opens a window listing all log configurations),
and an option for defining favorite configurations.