-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Sleep tracer is not finding matching driver when performing an unlock #8205
Labels
Comments
@scartmell-arm Could you please comment? |
Internal Jira reference: https://jira.arm.com/browse/IOTCORE-489 |
ghost
mentioned this issue
Feb 12, 2019
@scartmell-arm Ping? |
@cmonr We have a dialogue on the internal JIRA and I'm now testing the PR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
We are not properly performing the driver lookup when we perform an unlock of the deep sleep counter. This only affects the stats counter and not the sleep counter itself, but it leads to confusing results when using the sleep tracer to monitor sleep.
Test Program:
This results in:
It still shows the timer holding a sleep lock when it has actually been released.
If we revert commit 9a0e879 then the problem goes away. We were doing a strcmp instead of a pointer compare in sleep_tracker_find():
9a0e879#diff-4ef16dda46f5130a57b304fed2459ee3L53
Issue request type
[ ] Question
[ ] Enhancement
[X] Bug
The text was updated successfully, but these errors were encountered: