Issue #2777, Fix Add QUERY_TASK_AFFINITY command to TA CFE module - #2834
dmolock-NASA wants to merge 1 commit into
Conversation
03ae018 to
df113f5
Compare
jphickey
left a comment
There was a problem hiding this comment.
If the intent is to have all task affinities reported in a single TLM, my suggestion would be to consider including the CFE ES TaskID (32 bits) rather than the full task name. This should reduce the size of the overall message considerably, and if the user wants to get task names then they can use the ES query command for that.
| uint16 CoresConfigured; /**< \brief Number of physical cores configured */ | ||
| uint16 TACoresMax; /**< \brief Maximum TA support bits*/ | ||
| CFE_TA_AffinityTlm_Data_t TaskAffinity[OS_MAX_TASKS]; /**< \brief Tracked task array */ | ||
| } CFE_TA_AffinityTlm_Payload_t; |
There was a problem hiding this comment.
Did you check the size of this Payload structure?
We should try to avoid single TLM messages that are larger than ~1500 bytes (ethernet MTU). Large TLM have caused problems in the past requiring code mods to send them out as a series of smaller packets.
| .QueryAllTasksCmd_indication = (int32_t (*)(const EdsDataType_CFE_TA_QueryAllTasksCmd_t *)) CFE_TA_QueryAllTasksCmd, | ||
| .SetTaskAffinityCmd_indication = (int32_t (*)(const EdsDataType_CFE_TA_SetTaskAffinityCmd_t *)) CFE_TA_SetTaskAffinityCmd, | ||
| .GetTaskAffinityCmd_indication = (int32_t (*)(const EdsDataType_CFE_TA_GetTaskAffinityCmd_t *)) CFE_TA_GetTaskAffinityCmd | ||
| .QueryTaskAffinityCmd_indication = (int32_t (*)(const EdsDataType_CFE_TA_QueryTaskAffinityCmd_t *)) CFE_TA_QueryTaskAffinityCmd |
There was a problem hiding this comment.
These should not need casts (I know this isn't introduced by this PR, but can we clean it up?)
sylvesterkaczmarek
left a comment
There was a problem hiding this comment.
There is a comma missing after GetTaskAffinityCmd_indication in the EDS dispatch table. QueryTaskAffinityCmd_indication starts immediately on the next line, so this configuration will not compile. Just needs the separator before the new initializer.
name: FSW Code Change
about: Flight Software code changes
labels: fsw
Description of Change
Linked Issue
Closes #
Requirements Impact
Testing Evidence
Unit Tests (UT Assert)
COSMOS Test Suite
Areas of Expertise Touched
Author Checklist
.clang-formatReviewer Checklist
.clang-formathas been appliedReviewer Testing Notes