Managing trace buffers

Updated: May 06, 2022

As mentioned above, you can use TraceEvent() to manage the instrumented kernel's buffers, but it's probably easier to run tracelogger in daemon mode and let it look after the buffers. Nevertheless, here's a summary of how to do it with TraceEvent():

Note: In order to allocate or free the trace buffers, your application must have the PROCMGR_AID_TRACE ability enabled. For more information, see the entry procmgr_ability() in the QNX Neutrino C Library Reference.

For examples of some of these commands, see Data-capture program in the Sample Programs appendix.