You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.
Describe the bug
Looks like HK is missing a couple of CFE_ES_PerfLogEntry(HK_APPMAIN_PERF_ID); calls after the CFE_SB_ReceiveBuffer in void HK_AppMain(void).
To Reproduce
Code inspection
Expected behavior
Every time the app wakes up, it should have an CFE_ES_PerfLogEntry call.
Every time the app wakes is about to block, it should have an CFE_ES_PerfLogExit call.
Code snips
while (CFE_ES_RunLoop(&HK_AppData.RunStatus) == true)
{
/* ** Performance Log Exit Stamp. */CFE_ES_PerfLogExit(HK_APPMAIN_PERF_ID);
/* ** Pend on the arrival of the next Software Bus message. */Status=CFE_SB_ReceiveBuffer(&BufPtr, HK_AppData.CmdPipe, HK_SB_TIMEOUT);
if (Status==CFE_SUCCESS)
{
/* ** Performance Log Entry Stamp. */CFE_ES_PerfLogEntry(HK_APPMAIN_PERF_ID);
/* Perform Message Processing */HK_AppPipe(BufPtr);
}
elseif (Status==CFE_SB_TIME_OUT)
{
/* Check for copy table load and runtime dump request. This is * generally done during the housekeeping cycle. If we are * getting routine messages at a rate of less than 1Hz we do * the routine maintenance here. */if (HK_CheckStatusOfTables() !=HK_SUCCESS)
{
HK_AppData.RunStatus=CFE_ES_RunStatus_APP_ERROR;
}
}
else
{
CFE_EVS_SendEvent(HK_RCV_MSG_ERR_EID, CFE_EVS_EventType_ERROR,
"HK_APP Exiting due to CFE_SB_RcvMsg error 0x%08X", (unsigned int)Status);
/* Write to syslog in case there is a problem with event services */CFE_ES_WriteToSysLog("HK_APP Exiting due to CFE_SB_RcvMsg error 0x%08X\n", (unsigned int)Status);
HK_AppData.RunStatus=CFE_ES_RunStatus_APP_ERROR;
}
} /* end while */
System observed on:
Hardware: any
OS: any
Versions: I'm looking at the draco rc4 release, but it looks like this is HK v2.5.1
Additional context
Add any other context about the problem here.
Reporter Info
Keegan Moore
NASA/GSFC
The text was updated successfully, but these errors were encountered:
Checklist (Please check before submitting)
Describe the bug
Looks like HK is missing a couple of
CFE_ES_PerfLogEntry(HK_APPMAIN_PERF_ID);
calls after theCFE_SB_ReceiveBuffer
invoid HK_AppMain(void)
.To Reproduce
Code inspection
Expected behavior
Every time the app wakes up, it should have an
CFE_ES_PerfLogEntry
call.Every time the app wakes is about to block, it should have an
CFE_ES_PerfLogExit
call.Code snips
System observed on:
Additional context
Add any other context about the problem here.
Reporter Info
Keegan Moore
NASA/GSFC
The text was updated successfully, but these errors were encountered: