Percepio Trace Recorder v4.11.0
Loading...
Searching...
No Matches
Trace Runnable APIs

Macros

#define xTraceRunnableStart(xRunnableHandle)
 Creates an event indicating a runnable started.
#define xTraceRunnableStop()
 Creates an event indicating a runnable stopped.
#define xTraceRunnableRegisterStaticSet(szName, uiMajor, uiMinor, uiPatch, uiRunnableCount, pxRunnableSetHandle)
 Registers a set of static runnables. Requires XML configuration to properly interpret.
#define xTraceRunnableStartStatic(xRunnableSetHandle, uiRunnableId)
 Start a static runnable. Requires XML configuration to properly interpret.
#define xTraceRunnableStopStatic()
 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.

Detailed Description

Macro Definition Documentation

◆ xTraceRunnableRegisterStaticSet

#define xTraceRunnableRegisterStaticSet ( szName,
uiMajor,
uiMinor,
uiPatch,
uiRunnableCount,
pxRunnableSetHandle )
Value:
xTraceExtensionCreate(szName, uiMajor, uiMinor, uiPatch, uiRunnableCount, pxRunnableSetHandle)
traceResult xTraceExtensionCreate(const char *szName, uint8_t uiMajor, uint8_t uiMinor, uint16_t uiPatch, uint32_t uiEventCount, TraceExtensionHandle_t *pxExtensionHandle)
Creates trace extension.
Definition trcExtension.c:40

Registers a set of static runnables. Requires XML configuration to properly interpret.

Parameters
[in]szNameName.
[in]uiMajorMajor version.
[in]uiMinorMinor version.
[in]uiPatchPatch version.
[in]uiRunnableCountRunnables count.
[out]pxRunnableSetHandlePointer to uninitialized TraceRunnableStaticSetHandle_t.
Return values
TRC_FAILFailure
TRC_SUCCESSSuccess

◆ xTraceRunnableStart

#define xTraceRunnableStart ( xRunnableHandle)
Value:
xTraceEventCreate1(PSF_EVENT_RUNNABLE_START, (TraceUnsignedBaseType_t)(xRunnableHandle))
traceResult xTraceEventCreate1(uint32_t uiEventCode, TraceUnsignedBaseType_t uxParam1)
Creates an event with 1 parameters.
Definition trcCTI.c:1250

Creates an event indicating a runnable started.

Parameters
[in]xRunnableHandleRunnable handle.
Return values
TRC_FAILFailure
TRC_SUCCESSSuccess

◆ xTraceRunnableStartStatic

#define xTraceRunnableStartStatic ( xRunnableSetHandle,
uiRunnableId )
Value:
xTraceEventCreate0(xTraceExtensionGetEventId(xRunnableSetHandle, uiRunnableId))
traceResult xTraceEventCreate0(uint32_t uiEventCode)
Creates an event with 0 parameters.
Definition trcCTI.c:1226
#define xTraceExtensionGetEventId(xExtensionHandle, uiLocalEventId)
Returns extension event id.
Definition trcExtension.h:96

Start a static runnable. Requires XML configuration to properly interpret.

Parameters
[in]xRunnableSetHandleHandle to initialized runnable set.
[in]uiRunnableIdIndex in the runnable set.
Return values
TRC_FAILFailure
TRC_SUCCESSSuccess

◆ xTraceRunnableStop

#define xTraceRunnableStop ( )
Value:
xTraceEventCreate0(PSF_EVENT_RUNNABLE_STOP)

Creates an event indicating a runnable stopped.

Return values
TRC_FAILFailure
TRC_SUCCESSSuccess

◆ xTraceRunnableStopStatic

#define xTraceRunnableStopStatic ( )
Value:
#define xTraceRunnableStop()
Creates an event indicating a runnable stopped.
Definition trcRunnable.h:70

Stop a static runnable. Requires XML configuration to properly interpret.

Return values
TRC_FAILFailure
TRC_SUCCESSSuccess

Function Documentation

◆ xTraceRunnableRegister()

traceResult xTraceRunnableRegister ( const char * szName,
TraceRunnableRegisterMethod_t uxRegisterMethod,
TraceRunnableHandle_t * pxRunnableHandle )

Registers a runnable. Can be called multiple times, will not create additional entries.

Parameters
[in]szNameName.
[in]uxRegisterMethodIndicates 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]pxRunnableHandlePointer to zero-initialized TraceRunnableHandle_t. If handle that is pointed to is not 0 no entry will be created.
Return values
TRC_FAILFailure
TRC_SUCCESSSuccess