RDKEVD-8305: Adding debug prints#413
Open
neethuas379 wants to merge 2 commits into
Open
Conversation
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds timing/debug instrumentation around AVInput device enumeration to help investigate RDKEVD-8305 by logging entry/exit timestamps and per-port connection checks.
Changes:
- Adds
clock_gettime(CLOCK_MONOTONIC, ...)timestamps togetInputDevicesWrapper()andgetInputDevices(). - Introduces additional per-port entry/exit logs around
isPortConnected()calls. - Changes the per-device enumeration log from
LOGWARNtoLOGERRand addsprintf-based exit tracing.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+549
to
+553
| clock_gettime(CLOCK_MONOTONIC, &ts); | ||
|
|
||
| LOGERR("RDKEVD-8305 [Wrapper] Entry : %ld.%06ld\n", | ||
| ts.tv_sec, | ||
| ts.tv_nsec / 1000); |
Comment on lines
+574
to
+578
| clock_gettime(CLOCK_MONOTONIC, &ts); | ||
|
|
||
| printf("[wrapper] Exit : %ld.%06ld\n", | ||
| ts.tv_sec, | ||
| ts.tv_nsec / 1000); |
Comment on lines
+631
to
+635
| clock_gettime(CLOCK_MONOTONIC, &ts); | ||
|
|
||
| LOGERR("RDKEVD-8305 [THUNDER] Entry : %ld.%06ld\n", | ||
| ts.tv_sec, | ||
| ts.tv_nsec / 1000); |
Comment on lines
+657
to
+659
| LOGERR("RDKEVD-8305 [HDMI port : %d] Entry : %d %ld.%06ld\n",i, | ||
| ts.tv_sec, | ||
| ts.tv_nsec / 1000); |
Comment on lines
+663
to
+665
| LOGERR("RDKEVD-8305 [HDMI port : %d] Exit : %d %ld.%06ld\n",i, | ||
| ts.tv_sec, | ||
| ts.tv_nsec / 1000); |
Comment on lines
+677
to
+679
| LOGERR("RDKEVD-8305 [composite port : %d] Exit : %d %ld.%06ld\n",i, | ||
| ts.tv_sec, | ||
| ts.tv_nsec / 1000); |
| } | ||
| hash["locator"] = locator.str(); | ||
| LOGWARN("AVInputService::getInputDevices id %d, locator=[%s], connected=[%d]", i, hash["locator"].String().c_str(), hash["connected"].Boolean()); | ||
| LOGERR("AVInputService::getInputDevices id %d, locator=[%s], connected=[%d]", i, hash["locator"].String().c_str(), hash["connected"].Boolean()); |
Comment on lines
+690
to
+694
| clock_gettime(CLOCK_MONOTONIC, &ts); | ||
|
|
||
| printf("RDKEVD-8305 [THUNDER] Exit : %ld.%06ld\n", | ||
| ts.tv_sec, | ||
| ts.tv_nsec / 1000); |
| uint32_t AVInput::getInputDevicesWrapper(const JsonObject& parameters, JsonObject& response) | ||
| { | ||
| LOGINFOMETHOD(); | ||
| struct timespec ts; |
| JsonArray AVInput::getInputDevices(int iType) | ||
| { | ||
| JsonArray list; | ||
| struct timespec ts; |
Comment on lines
+549
to
+553
| clock_gettime(CLOCK_MONOTONIC, &ts); | ||
|
|
||
| LOGERR("RDKEVD-8305 [Wrapper] Entry : %ld.%06ld\n", | ||
| ts.tv_sec, | ||
| ts.tv_nsec / 1000); |
Comment on lines
+574
to
+578
| clock_gettime(CLOCK_MONOTONIC, &ts); | ||
|
|
||
| printf("RDKEVD-8305 [wrapper] Exit : %ld.%06ld\n", | ||
| ts.tv_sec, | ||
| ts.tv_nsec / 1000); |
Comment on lines
+655
to
+659
| clock_gettime(CLOCK_MONOTONIC, &ts); | ||
|
|
||
| LOGERR("RDKEVD-8305 [HDMI port : %d] Entry : %d %ld.%06ld\n",i, | ||
| ts.tv_sec, | ||
| ts.tv_nsec / 1000); |
Comment on lines
+661
to
+665
| clock_gettime(CLOCK_MONOTONIC, &ts); | ||
|
|
||
| LOGERR("RDKEVD-8305 [HDMI port : %d] Exit : %d %ld.%06ld\n",i, | ||
| ts.tv_sec, | ||
| ts.tv_nsec / 1000); |
Comment on lines
+669
to
+673
| clock_gettime(CLOCK_MONOTONIC, &ts); | ||
|
|
||
| LOGERR("RDKEVD-8305 [HDMI port : %d] Entry : %d %ld.%06ld\n",i, | ||
| ts.tv_sec, | ||
| ts.tv_nsec / 1000); |
Comment on lines
+675
to
+679
| clock_gettime(CLOCK_MONOTONIC, &ts); | ||
|
|
||
| LOGERR("RDKEVD-8305 [composite port : %d] Exit : %d %ld.%06ld\n",i, | ||
| ts.tv_sec, | ||
| ts.tv_nsec / 1000); |
| } | ||
| hash["locator"] = locator.str(); | ||
| LOGWARN("AVInputService::getInputDevices id %d, locator=[%s], connected=[%d]", i, hash["locator"].String().c_str(), hash["connected"].Boolean()); | ||
| LOGERR("AVInputService::getInputDevices id %d, locator=[%s], connected=[%d]", i, hash["locator"].String().c_str(), hash["connected"].Boolean()); |
Comment on lines
+690
to
+694
| clock_gettime(CLOCK_MONOTONIC, &ts); | ||
|
|
||
| printf("RDKEVD-8305 [THUNDER] Exit : %ld.%06ld\n", | ||
| ts.tv_sec, | ||
| ts.tv_nsec / 1000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.