Skip to content

i#7504 scale time: Scale sleep durations #7568

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

Merged
merged 4 commits into from
Jul 25, 2025
Merged

Conversation

derekbruening
Copy link
Contributor

Adds scaling of Linux SYS_nanosleep, SYS_clock_nanosleep, and SYS_clock_nanosleep_time64 system calls.

Augments the pre-existing timer scaling to check for syscall failure; checking the return code is required for sleep as the remaining time is only written when EINTR is returned.

Augments the pre-existing timer scaling to better handle an absolute flag by setting the TLS fields for post-handling prior to exiting pre-handling early, while putting this in place for sleep.

Adds a test.

Issue: #7504

Adds scaling of Linux SYS_nanosleep, SYS_clock_nanosleep, and
SYS_clock_nanosleep_time64 system calls.

Augments the pre-existing timer scaling to check for syscall failure;
checking the return code is required for sleep as the remaining time
is only written when EINTR is returned.

Augments the pre-existing timer scaling to better handle an absolute
flag by setting the TLS fields for post-handling prior to exiting
pre-handling early, while putting this in place for sleep.

Adds a test.

Issue: #7504
@derekbruening derekbruening merged commit 2f75791 into master Jul 25, 2025
24 checks passed
@derekbruening derekbruening deleted the i7504-drx-scale-sleep branch July 25, 2025 01:36
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.

2 participants