Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #979, add fields to task info struct #1159

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion fsw/cfe-core/src/es/cfe_es_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1208,9 +1208,11 @@ int32 CFE_ES_GetTaskInfo(CFE_ES_TaskInfo_t *TaskInfo, CFE_ES_TaskId_t TaskId)
TaskInfo->TaskId = CFE_ES_TaskRecordGetID(TaskRecPtr);

/*
** Get the Execution counter for the task
** Get the other stats for the task
*/
TaskInfo->ExecutionCounter = TaskRecPtr->ExecutionCounter;
TaskInfo->StackSize = TaskRecPtr->StartParams.StackSize;
TaskInfo->Priority = TaskRecPtr->StartParams.Priority;

/*
** Get the Application Details
Expand Down
13 changes: 8 additions & 5 deletions fsw/cfe-core/src/inc/cfe_es_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -1497,11 +1497,14 @@ typedef struct CFE_ES_AppInfo
*/
typedef struct CFE_ES_TaskInfo
{
CFE_ES_TaskId_t TaskId; /**< \brief Task Id */
uint32 ExecutionCounter; /**< \brief Task Execution Counter */
char TaskName[CFE_MISSION_MAX_API_LEN]; /**< \brief Task Name */
CFE_ES_AppId_t AppId; /**< \brief Parent Application ID */
char AppName[CFE_MISSION_MAX_API_LEN]; /**< \brief Parent Application Name */
CFE_ES_TaskId_t TaskId; /**< \brief Task Id */
uint32 ExecutionCounter; /**< \brief Task Execution Counter */
char TaskName[CFE_MISSION_MAX_API_LEN]; /**< \brief Task Name */
CFE_ES_AppId_t AppId; /**< \brief Parent Application ID */
char AppName[CFE_MISSION_MAX_API_LEN]; /**< \brief Parent Application Name */
CFE_ES_MemOffset_t StackSize; /**< Size of task stack */
CFE_ES_TaskPriority_Atom_t Priority; /**< Priority of task */
uint8 Spare[2]; /**< Spare bytes for alignment */
} CFE_ES_TaskInfo_t;

/**
Expand Down