Trace entry

The size of one PxTrace entry is always 24 bytes. The entry structure (meaning of each byte) is user-configurable.

Example of user trace entry

typedef struct
{
    PxUShort_t Type;    /* Service type */
    PxUShort_t From;    /* ID of a task that called PxTrace */
    PxUShort_t Error;   /* Error passed to PxTrace */
    PxUShort_t UserArg; /* User-defined argument */
    PxULong_t Data1;    /* Argument 1 to PxTrace */
    PxULong_t Data2;    /* Argument 2 to PxTrace */
} TraceUserEntry_t;


typedef struct
{
    unsigned long long timestamp;
    TraceUserEntry_t traceUserEntry;
} TraceEntry_t;
trace entry
Fig. 1. Trace entry structure (24 bytes)