_TRACE_GET_STRUCT()
QNX SDP8.0C Library ReferenceAPIDeveloper
Get the flag from the header of a trace event
Synopsis:
#include <sys/trace.h>
#define _TRACE_GET_STRUCT(h)...
Arguments:
- h
- The header of a trace event, of type unsigned.
Description:
The _TRACE_GET_STRUCT() macro extracts the flag from the header of a trace event (the header member of a traceevent_t or an event_data_t structure). Once you've extracted the flag, you can compare it to the following values to determine whether it's a simple event of part of a combine event:
| If the flag equals: | The structure is: |
|---|---|
| _TRACE_STRUCT_CB | The beginning of a combine event |
| _TRACE_STRUCT_CC | A continuation of a combine event |
| _TRACE_STRUCT_CE | The end of a combine event |
| _TRACE_STRUCT_S | A simple event |
Classification:
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Signal handler | Yes |
| Thread | Yes |
Page updated:
