-
Notifications
You must be signed in to change notification settings - Fork 1
RDK-56291 - [RDKE] Increase L2 Test Coverage For Remote Debugger : Target 80% [ Phase 2 ] #147
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,5 +39,30 @@ | |
"Commands": "systemctl list-units --type=service --all", | ||
"Timeout" : 10 | ||
} | ||
} | ||
}, | ||
"DeepSleep": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The DeepSleep config is added only for L2? Does it stay in the device root FS even if it's not required? Also need to check any security concerns. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file wont be available in rootfs. this file is only for test purpose. the real json file installations are done in meta layer. |
||
"Audio" : { | ||
"AudioStatus" : { | ||
"Commands": "cat /sys/class/avsync_session0/session_stat;cat /sys/class/vdec/vdec_status;hal_dump", | ||
"Timeout" : 10 | ||
} | ||
}, | ||
"Video" : { | ||
"VideoStatus" : { | ||
"Commands": "cat /sys/class/avsync_session0/session_stat;cat /sys/class/vdec/vdec_status;hal_dump", | ||
"Timeout" : 10 | ||
} | ||
}, | ||
"Process" : { | ||
"ProcessStatus" : { | ||
"Commands": "cat /opt/logs/top_log.txt*", | ||
"Timeout" : 10 | ||
}, | ||
"ServiceStatus" : { | ||
"Commands": "systemctl list-units --type=service --all", | ||
"Timeout" : 10 | ||
} | ||
|
||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,12 +157,14 @@ void _pwrManagerEventHandler(const PowerController_PowerState_t currentState, | |
rbusValue_Init(&value); | ||
rbusValue_SetString(value,"root"); | ||
rc = rbus_set(rrdRbusHandle, RRD_WEBCFG_FORCE_SYNC, value, NULL); | ||
if (rc != RBUS_ERROR_SUCCESS) | ||
#ifndef USE_L2_SUPPORT | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Having changes specific to L2 code in main source files is not the right way. |
||
if (rc != RBUS_ERROR_SUCCESS) | ||
{ | ||
RDK_LOG(RDK_LOG_ERROR, LOG_REMDEBUG, "[%s:%d]: rbus_set failed for [%s] with error [%d]\n\n", __FUNCTION__, __LINE__,RRD_WEBCFG_FORCE_SYNC ,rc); | ||
return; | ||
} | ||
RDK_LOG(RDK_LOG_INFO, LOG_REMDEBUG, "[%s:%d]: Invoking WebCfg Force Sync: %s... \n", __FUNCTION__, __LINE__, RRD_WEBCFG_FORCE_SYNC); | ||
#endif | ||
RDK_LOG(RDK_LOG_INFO, LOG_REMDEBUG, "[%s:%d]: Invoking WebCfg Force Sync: %s... \n", __FUNCTION__, __LINE__, RRD_WEBCFG_FORCE_SYNC); | ||
RDK_LOG(RDK_LOG_DEBUG, LOG_REMDEBUG, "[%s:%d]: Copying Message Received to the queue.. \n", __FUNCTION__, __LINE__); | ||
sbuf = (data_buf *)malloc(sizeof(data_buf)); | ||
if (!sbuf) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,16 +74,24 @@ int RRD_subscribe() | |
subscriptions[1].handler = _remoteDebuggerWebCfgDataEventHandler; | ||
subscriptions[1].userData = NULL; | ||
|
||
#ifndef IARMBUS_SUPPORT | ||
subscriptions[2].eventName = RDM_DOWNLOAD_EVENT; | ||
subscriptions[2].filter = NULL; | ||
subscriptions[2].duration = 0; | ||
subscriptions[2].handler = _rdmDownloadEventHandler; | ||
subscriptions[2].userData = NULL; | ||
|
||
ret = rbusEvent_SubscribeEx(rrdRbusHandle, subscriptions, 3, 60); | ||
#ifdef IARMBUS_SUPPORT | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't look right . |
||
#ifdef USE_L2_SUPPORT | ||
subscriptions[2].eventName = RDM_DOWNLOAD_EVENT; | ||
subscriptions[2].filter = NULL; | ||
subscriptions[2].duration = 0; | ||
subscriptions[2].handler = _rdmDownloadEventHandler; | ||
subscriptions[2].userData = NULL; | ||
ret = rbusEvent_SubscribeEx(rrdRbusHandle, subscriptions, 3, 60); | ||
#else | ||
ret = rbusEvent_SubscribeEx(rrdRbusHandle, subscriptions, 2, 60); | ||
#endif | ||
#else | ||
ret = rbusEvent_SubscribeEx(rrdRbusHandle, subscriptions, 2, 60); | ||
subscriptions[2].eventName = RDM_DOWNLOAD_EVENT; | ||
subscriptions[2].filter = NULL; | ||
subscriptions[2].duration = 0; | ||
subscriptions[2].handler = _rdmDownloadEventHandler; | ||
subscriptions[2].userData = NULL; | ||
ret = rbusEvent_SubscribeEx(rrdRbusHandle, subscriptions, 3, 60); | ||
#endif | ||
#endif | ||
if(ret != 0) | ||
|
@@ -431,4 +439,3 @@ int RRD_unsubscribe() | |
#endif | ||
return ret; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for enabling USE_IARMBUS in L2 . My understanding was we don't have IARM available in our L2 environment .