To create a log file and capture data from a kernel event trace, there are three possible methods:
- In the IDE, create a log configuration to automate kernel event tracing on a given target.
You can configure many trace settings, such as the log period and which events get captured.
After the kernel event trace finishes running, the generated log file is uploaded to the host machine.
- Run the tracelogger command-line utility on your target to generate a
log file, then copy that log file to your development host for analysis.
- Run a custom application that uses the TraceEvent() API to
control what event information is captured, then copy the resulting log file to your development host.
Note:
To get timing information from the kernel, you need to run tracelogger as root.
If you gather system-profiling data through qconn by running a kernel event trace through
the IDE, you're already accessing the instrumented kernel as root.
To view the trace data in the System Profiler, you must store the log file in an IDE project.
The System Profiler can analyze a log file generated by any of the methods listed above.
You can put the file in any project, but it's common to use
the QNX Target System project for the target where the trace ran.