Data-capture program (tracelogger)

The QNX Neutrino RTOS includes a tracelogger that you can use to capture data. This daemon receives events from the instrumented kernel and saves them in a file or sends them to a device for later analysis.

Note: The data-capture utilities require root privileges to allocate buffer memory or to use functions such as InterruptHookTrace() (see the QNX Neutrino C Library Reference). Data-capture utilities won't work properly without these privileges.

Because the tracelogger may write data at rates well in excess of 20 MB/minute, running it for prolonged periods or running it repeatedly can use up a large amount of space. If disk space is low, erase old log files regularly. (In its default mode, tracelogger overwrites its previous default file.)

You can also control tracing from your application (e.g., to turn tracing on just for a problematic area) with the TraceEvent() kernel call. This function has over 30 different commands that let you:

For more information, see the Capturing Trace Data chapter in this guide, the entry for tracelogger in the Utilities Reference, and the entry for TraceEvent() in the QNX Neutrino C Library Reference.