mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-08 07:07:47 -04:00
Rename xTaskGetSystemState() uxTaskGetSystemState().
This commit is contained in:
parent
92fae7d262
commit
203ae64600
47 changed files with 79 additions and 78 deletions
|
@ -86,7 +86,7 @@ privileged Vs unprivileged linkage and placement. */
|
|||
#if ( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS == 1 ) )
|
||||
/* At the bottom of this file are two optional functions that can be used
|
||||
to generate human readable text from the raw data generated by the
|
||||
xTaskGetSystemState() function. Note the formatting functions are provided
|
||||
uxTaskGetSystemState() function. Note the formatting functions are provided
|
||||
for convenience only, and are NOT considered part of the kernel. */
|
||||
#include <stdio.h>
|
||||
#endif /* ( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS == 1 ) ) */
|
||||
|
@ -1472,7 +1472,7 @@ unsigned portBASE_TYPE uxTaskGetNumberOfTasks( void )
|
|||
|
||||
#if ( configUSE_TRACE_FACILITY == 1 )
|
||||
|
||||
unsigned portBASE_TYPE xTaskGetSystemState( xTaskStatusType *pxTaskStatusArray, unsigned portBASE_TYPE uxArraySize, unsigned long *pulTotalRunTime )
|
||||
unsigned portBASE_TYPE uxTaskGetSystemState( xTaskStatusType *pxTaskStatusArray, unsigned portBASE_TYPE uxArraySize, unsigned long *pulTotalRunTime )
|
||||
{
|
||||
unsigned portBASE_TYPE uxTask = 0, uxQueue = configMAX_PRIORITIES;
|
||||
|
||||
|
@ -2755,8 +2755,8 @@ tskTCB *pxNewTCB;
|
|||
* of the demo applications. Do not consider it to be part of the
|
||||
* scheduler.
|
||||
*
|
||||
* vTaskList() calls xTaskGetSystemState(), then formats part of the
|
||||
* xTaskGetSystemState() output into a human readable table that
|
||||
* vTaskList() calls uxTaskGetSystemState(), then formats part of the
|
||||
* uxTaskGetSystemState() output into a human readable table that
|
||||
* displays task names, states and stack usage.
|
||||
*
|
||||
* vTaskList() has a dependency on the sprintf() C library function that
|
||||
|
@ -2767,7 +2767,7 @@ tskTCB *pxNewTCB;
|
|||
* printf-stdarg.c (note printf-stdarg.c does not provide a full
|
||||
* snprintf() implementation!).
|
||||
*
|
||||
* It is recommended that production systems call xTaskGetSystemState()
|
||||
* It is recommended that production systems call uxTaskGetSystemState()
|
||||
* directly to get access to raw stats data, rather than indirectly
|
||||
* through a call to vTaskList().
|
||||
*/
|
||||
|
@ -2786,7 +2786,7 @@ tskTCB *pxNewTCB;
|
|||
if( pxTaskStatusArray != NULL )
|
||||
{
|
||||
/* Generate the (binary) data. */
|
||||
uxArraySize = xTaskGetSystemState( pxTaskStatusArray, uxArraySize, NULL );
|
||||
uxArraySize = uxTaskGetSystemState( pxTaskStatusArray, uxArraySize, NULL );
|
||||
|
||||
/* Create a human readable table from the binary data. */
|
||||
for( x = 0; x < uxArraySize; x++ )
|
||||
|
@ -2838,8 +2838,8 @@ tskTCB *pxNewTCB;
|
|||
* of the demo applications. Do not consider it to be part of the
|
||||
* scheduler.
|
||||
*
|
||||
* vTaskGetRunTimeStats() calls xTaskGetSystemState(), then formats part
|
||||
* of the xTaskGetSystemState() output into a human readable table that
|
||||
* vTaskGetRunTimeStats() calls uxTaskGetSystemState(), then formats part
|
||||
* of the uxTaskGetSystemState() output into a human readable table that
|
||||
* displays the amount of time each task has spent in the Running state
|
||||
* in both absolute and percentage terms.
|
||||
*
|
||||
|
@ -2851,7 +2851,7 @@ tskTCB *pxNewTCB;
|
|||
* a file called printf-stdarg.c (note printf-stdarg.c does not provide
|
||||
* a full snprintf() implementation!).
|
||||
*
|
||||
* It is recommended that production systems call xTaskGetSystemState()
|
||||
* It is recommended that production systems call uxTaskGetSystemState()
|
||||
* directly to get access to raw stats data, rather than indirectly
|
||||
* through a call to vTaskGetRunTimeStats().
|
||||
*/
|
||||
|
@ -2869,7 +2869,7 @@ tskTCB *pxNewTCB;
|
|||
if( pxTaskStatusArray != NULL )
|
||||
{
|
||||
/* Generate the (binary) data. */
|
||||
uxArraySize = xTaskGetSystemState( pxTaskStatusArray, uxArraySize, &ulTotalTime );
|
||||
uxArraySize = uxTaskGetSystemState( pxTaskStatusArray, uxArraySize, &ulTotalTime );
|
||||
|
||||
/* For percentage calculations. */
|
||||
ulTotalTime /= 100UL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue