This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Trace kernel events
#include <sys/neutrino.h> int TraceEvent( int mode, ... );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The TraceEvent() function controls all stages of the instrumentation process such as initialization, starting, execution control and stopping. These stages consist of the following activities:
This function requires the instrumented kernel. For more information, see the documentation for the System Analysis Toolkit (SAT). |
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Read the Caveats |
Signal handler | Yes |
Thread | Yes |
You can call TraceEvent() from an interrupt/event handler. However, not all trace modes are valid in this case. The valid trace modes are:
InterruptAttach(), InterruptHookTrace()