|
Percepio Trace Recorder v4.11.0
|
Macros | |
| #define | xTraceTaskRegister(pvTask, szName, uxPriority, pxTaskHandle) |
| Register trace task in the trace. | |
| #define | xTraceTaskUnregister(xTaskHandle, uxPriority) |
| Unregister trace task from trace. | |
| #define | xTraceTaskSetName xTraceObjectSetName |
| Sets trace task name. | |
| #define | xTraceTaskGetName xTraceObjectGetName |
| Gets trace task name. | |
| #define | xTraceTaskRegisterWithoutHandle(pvTask, szName, uxPriority) |
| Registers trace task without trace task handle. | |
| #define | xTraceTaskUnregisterWithoutHandle(pvTask, uxPriority) |
| Unregisters trace task without trace task handle. | |
| #define | xTraceTaskSetNameWithoutHandle xTraceObjectSetNameWithoutHandle |
| Sets trace task name without trace task handle. | |
| #define | xTraceTaskSetCurrentOnCore(coreId, pvTask) |
| Sets current trace task on specific core. | |
| #define | xTraceTaskSetCurrent(pvTask) |
| Sets current trace task on current core. | |
| #define | xTraceTaskGetCurrentOnCore(coreId, ppvTask) |
| Gets current trace task on specific core. | |
| #define | xTraceTaskGetCurrent(ppvTask) |
| Gets current trace task on current core. | |
| #define | xTraceTaskGetCurrentOnCoreReturn(coreId) |
| Returns current trace task on specific core. | |
| #define | xTraceTaskGetCurrentReturn() |
| Returns current trace task. | |
| #define | xTraceTaskInstanceFinishedNow() |
| Registers trace task instance finished event. | |
| #define | xTraceTaskInstanceFinishedNext() |
| Marks the current trace task instance as finished on the next kernel call. | |
| #define | xTraceTaskFind(pvTask, pxTaskHandle) |
| Get the TraceTaskHandle_t of the task. | |
| #define | xTraceTaskGetAddress(xTaskHandle, ppvTask) |
| Get the task's address from task handle. | |
| #define | pvTraceTaskGetAddressReturn(xTaskHandle) |
| Returns the task's address from task handle. | |
Functions | |
| traceResult | xTraceTaskSetPriority (TraceTaskHandle_t xTaskHandle, TraceUnsignedBaseType_t uxPriority) |
| Sets trace task priority. | |
| traceResult | xTraceTaskSetPriorityWithoutHandle (void *pvTask, TraceUnsignedBaseType_t uxPriority) |
| Sets trace task priority without trace task handle. | |
| traceResult | xTraceTaskSwitch (void *pvTask, TraceUnsignedBaseType_t uxPriority) |
| Registers trace task switch event. | |
| #define pvTraceTaskGetAddressReturn | ( | xTaskHandle | ) |
Returns the task's address from task handle.
| [in] | xTaskHandle | Task handle. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskFind | ( | pvTask, | |
| pxTaskHandle ) |
Get the TraceTaskHandle_t of the task.
| [in] | pvTask | Task. |
| [out] | pxTaskHandle | Pointer to returned task handle. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskGetAddress | ( | xTaskHandle, | |
| ppvTask ) |
Get the task's address from task handle.
| [in] | xTaskHandle | Task handle. |
| [out] | ppvTask | Pointer to returned task address. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskGetCurrent | ( | ppvTask | ) |
Gets current trace task on current core.
| [out] | ppvTask | Task. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskGetCurrentOnCore | ( | coreId, | |
| ppvTask ) |
Gets current trace task on specific core.
| [in] | coreId | Core id. |
| [out] | ppvTask | Task. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskGetCurrentOnCoreReturn | ( | coreId | ) |
Returns current trace task on specific core.
| [in] | coreId | Core id. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskGetCurrentReturn | ( | ) |
Returns current trace task.
| #define xTraceTaskGetName xTraceObjectGetName |
Gets trace task name.
| [in] | xTaskHandle | Pointer to initialized trace object. |
| [out] | pszName | Pointer to name variable. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskInstanceFinishedNext | ( | ) |
Marks the current trace task instance as finished on the next kernel call.
If that kernel call is blocking, the instance ends after the blocking event and the corresponding return event is then the start of the next instance. If the kernel call is not blocking, the viewer instead splits the current fragment right before the kernel call, which makes this call the first event of the next instance.
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskInstanceFinishedNow | ( | ) |
Registers trace task instance finished event.
This routine creates a trace event that ends the current task instance at this very instant. This makes the viewer split the current fragment at this point and begin a new actor instance, even if no task-switch has occurred
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskRegister | ( | pvTask, | |
| szName, | |||
| uxPriority, | |||
| pxTaskHandle ) |
Register trace task in the trace.
| [in] | pvTask | Task. |
| [in] | szName | Name. |
| [in] | uxPriority | Priority. |
| [out] | pxTaskHandle | Pointer to uninitialized trace task. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskRegisterWithoutHandle | ( | pvTask, | |
| szName, | |||
| uxPriority ) |
Registers trace task without trace task handle.
| [in] | pvTask | Task. |
| [in] | szName | Name. |
| [in] | uxPriority | Priority. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskSetCurrent | ( | pvTask | ) |
Sets current trace task on current core.
| [in] | pvTask | Task. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskSetCurrentOnCore | ( | coreId, | |
| pvTask ) |
Sets current trace task on specific core.
| [in] | coreId | Core id. |
| [in] | pvTask | Task. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskSetName xTraceObjectSetName |
Sets trace task name.
| [in] | pvTask | Task. |
| [in] | szName | Name. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskSetNameWithoutHandle xTraceObjectSetNameWithoutHandle |
Sets trace task name without trace task handle.
| [in] | pvTask | Task. |
| [in] | szName | Name. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskUnregister | ( | xTaskHandle, | |
| uxPriority ) |
Unregister trace task from trace.
| [in] | xTaskHandle | Pointer to initialized trace task. |
| [in] | uxPriority | Priority. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceTaskUnregisterWithoutHandle | ( | pvTask, | |
| uxPriority ) |
Unregisters trace task without trace task handle.
| [in] | pvTask | Task. |
| [in] | uxPriority | Priority. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| traceResult xTraceTaskSetPriority | ( | TraceTaskHandle_t | xTaskHandle, |
| TraceUnsignedBaseType_t | uxPriority ) |
Sets trace task priority.
| [in] | xTaskHandle | Pointer to initialized trace task. |
| [in] | uxPriority | Priority. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| traceResult xTraceTaskSetPriorityWithoutHandle | ( | void * | pvTask, |
| TraceUnsignedBaseType_t | uxPriority ) |
Sets trace task priority without trace task handle.
| [in] | pvTask | Task. |
| [in] | uxPriority | Priority. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| traceResult xTraceTaskSwitch | ( | void * | pvTask, |
| TraceUnsignedBaseType_t | uxPriority ) |
Registers trace task switch event.
| [in] | pvTask | Task. |
| [in] | uxPriority | Priority. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |