Percepio Trace Recorder v4.8.0.hotfix1
|
Macros | |
#define | xTraceRunnableStart(xRunnableHandle) xTraceEventCreate1(PSF_EVENT_RUNNABLE_START, (TraceUnsignedBaseType_t)(xRunnableHandle)) |
Creates an event indicating a runnable started. | |
#define | xTraceRunnableStop() xTraceEventCreate0(PSF_EVENT_RUNNABLE_STOP) |
Creates an event indicating a runnable stopped. | |
#define | xTraceRunnableRegisterStaticSet(szName, uiMajor, uiMinor, uiPatch, uiRunnableCount, pxRunnableSetHandle) xTraceExtensionCreate(szName, uiMajor, uiMinor, uiPatch, uiRunnableCount, pxRunnableSetHandle) |
Registers a set of static runnables. Requires XML configuration to properly interpret. | |
#define | xTraceRunnableStartStatic(xRunnableSetHandle, uiRunnableId) xTraceEventCreate0(xTraceExtensionGetEventId(xRunnableSetHandle, uiRunnableId)) |
Start a static runnable. Requires XML configuration to properly interpret. | |
#define | xTraceRunnableStopStatic() xTraceRunnableStop() |
Stop a static runnable. Requires XML configuration to properly interpret. | |
Functions | |
traceResult | xTraceRunnableRegister (const char *szName, TraceRunnableRegisterMethod_t uxRegisterMethod, TraceRunnableHandle_t *pxRunnableHandle) |
Registers a runnable. Can be called multiple times, will not create additional entries. | |
#define xTraceRunnableRegisterStaticSet | ( | szName, | |
uiMajor, | |||
uiMinor, | |||
uiPatch, | |||
uiRunnableCount, | |||
pxRunnableSetHandle | |||
) | xTraceExtensionCreate(szName, uiMajor, uiMinor, uiPatch, uiRunnableCount, pxRunnableSetHandle) |
Registers a set of static runnables. Requires XML configuration to properly interpret.
[in] | szName | Name. |
[in] | uiMajor | Major version. |
[in] | uiMinor | Minor version. |
[in] | uiPatch | Patch version. |
[in] | uiRunnableCount | Runnables count. |
[out] | pxRunnableSetHandle | Pointer to uninitialized TraceRunnableStaticSetHandle_t. |
TRC_FAIL | Failure |
TRC_SUCCESS | Success |
#define xTraceRunnableStart | ( | xRunnableHandle | ) | xTraceEventCreate1(PSF_EVENT_RUNNABLE_START, (TraceUnsignedBaseType_t)(xRunnableHandle)) |
Creates an event indicating a runnable started.
[in] | xRunnableHandle | Runnable handle. |
TRC_FAIL | Failure |
TRC_SUCCESS | Success |
#define xTraceRunnableStartStatic | ( | xRunnableSetHandle, | |
uiRunnableId | |||
) | xTraceEventCreate0(xTraceExtensionGetEventId(xRunnableSetHandle, uiRunnableId)) |
Start a static runnable. Requires XML configuration to properly interpret.
[in] | xRunnableSetHandle | Pointer to initialized runnable set handle. |
[out] | puiBaseEventId | Base event id. |
TRC_FAIL | Failure |
TRC_SUCCESS | Success |
#define xTraceRunnableStop | ( | ) | xTraceEventCreate0(PSF_EVENT_RUNNABLE_STOP) |
Creates an event indicating a runnable stopped.
TRC_FAIL | Failure |
TRC_SUCCESS | Success |
#define xTraceRunnableStopStatic | ( | ) | xTraceRunnableStop() |
Stop a static runnable. Requires XML configuration to properly interpret.
TRC_FAIL | Failure |
TRC_SUCCESS | Success |
traceResult xTraceRunnableRegister | ( | const char * | szName, |
TraceRunnableRegisterMethod_t | uxRegisterMethod, | ||
TraceRunnableHandle_t * | pxRunnableHandle | ||
) |
Registers a runnable. Can be called multiple times, will not create additional entries.
[in] | szName | Name. |
[in] | uxRegisterMethod | Indicates how to register the runnable. Since there can be thousands of runnables, storing in entry table is not always a good idea. TRC_RUNNABLE_REGISTER_METHOD_USE_ENTRY_TABLE: Store in entry table normally and handle will point to entry. TRC_RUNNABLE_REGISTER_METHOD_USE_STRING_ADDRESS: For this method the string address must be unique and will be used as handle value. TRC_RUNNABLE_REGISTER_METHOD_USE_HANDLE_ADDRESS: For this method the handle address must be unique and will be used as handle value. |
[out] | pxRunnableHandle | Pointer to 0 initialized TraceRunnableHandle_t. If handle that is pointed to is not 0 no entry will be created. |
TRC_FAIL | Failure |
TRC_SUCCESS | Success |