Insert a trace event of an arbitrary class and type with arbitrary data
#include <sys/neutrino.h> #include <sys/trace.h> int trace_logbc( int class, int event, const void *data, size_t nbytes );
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The trace_logbc() function calls TraceEvent() to insert an event of the given class and type with the given data. For information about the classes and events, see the Events and the Kernel chapter of the System Analysis Toolkit User's Guide.
|If the length of the data isn't an even multiple of 32-bit values, or the data address isn't 32-bit aligned, the function creates a temporary copy of the data.|
trace_func_enter(), trace_func_exit(), trace_here(), trace_logb(), trace_logf(), trace_logi(), trace_nlogf(), trace_vnlogf(), TraceEvent()
tracelogger in the Utilities Reference
System Analysis Toolkit User's Guide
Analyzing Your System with Kernel Tracing chapter of the Integrated Development Environment User's Guide