Skip to content

RDKEVD-8305: Adding debug prints#413

Open
neethuas379 wants to merge 2 commits into
support/8.3.4.0from
feature/RDKEVD-8305_debug
Open

RDKEVD-8305: Adding debug prints#413
neethuas379 wants to merge 2 commits into
support/8.3.4.0from
feature/RDKEVD-8305_debug

Conversation

@neethuas379

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 13, 2026 16:34
@neethuas379
neethuas379 requested a review from a team as a code owner July 13, 2026 16:34
@github-advanced-security

Copy link
Copy Markdown

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:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 to getInputDevicesWrapper() and getInputDevices().
  • Introduces additional per-port entry/exit logs around isPortConnected() calls.
  • Changes the per-device enumeration log from LOGWARN to LOGERR and adds printf-based exit tracing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AVInput/AVInput.cpp
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 thread AVInput/AVInput.cpp
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 thread AVInput/AVInput.cpp
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 thread AVInput/AVInput.cpp
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 thread AVInput/AVInput.cpp
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 thread AVInput/AVInput.cpp
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);
Comment thread AVInput/AVInput.cpp
}
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 thread AVInput/AVInput.cpp
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);
Comment thread AVInput/AVInput.cpp
uint32_t AVInput::getInputDevicesWrapper(const JsonObject& parameters, JsonObject& response)
{
LOGINFOMETHOD();
struct timespec ts;
Comment thread AVInput/AVInput.cpp
JsonArray AVInput::getInputDevices(int iType)
{
JsonArray list;
struct timespec ts;
Copilot AI review requested due to automatic review settings July 13, 2026 16:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 8 comments.

Comment thread AVInput/AVInput.cpp
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 thread AVInput/AVInput.cpp
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 thread AVInput/AVInput.cpp
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 thread AVInput/AVInput.cpp
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 thread AVInput/AVInput.cpp
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 thread AVInput/AVInput.cpp
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);
Comment thread AVInput/AVInput.cpp
}
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 thread AVInput/AVInput.cpp
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants