Running a kernel event trace from the IDE

The IDE uses a special type of launch configuration called a log configuration to control kernel event tracing. You must create a log configuration to run a kernel event trace from the IDE.
To create a log configuration:
  1. In any perspective with a Target Navigator view, right-click the target on which you want to run a trace, then select Log With > Kernel Event Trace.
  2. In the dialog that appears, click Open Launch Config in the bottom right corner.
  3. In the Log Configurations dialog, fill in the fields to configure the kernel event trace as needed.
    This dialog provides multiple tabs for selecting:
    • the location of the log file that will contain the data captured from the kernel event trace
    • the log period, which is the duration of the kernel event trace
    • the target on which the kernel event tracing is done
    • the event-capture filters, which specify the exact events and how much data to capture

    For a description of all log configuration fields, see "Kernel event trace log configuration" below.

  4. When you're finished defining the kernel event trace settings, click Apply to save them.
  5. Click Log to start the kernel event trace on the target.
    The instrumented kernel on the target begins logging event data to the output named in the log configuration. The procedure is explained in "Kernel event data logging process".
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.