Skip to content
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

i#6713: Remove same-input-same-start cpu_schedule entries #6715

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

derekbruening
Copy link
Contributor

Removes same-input-same-start cpu_schedule entries when reading the schedule file in the scheduler. The scheduler cannot emulate a switch with no instructions in between in replay mode, and these same-start entries cause problems.

Adds a scheduler unit test.

Tested on a larger app in as-traced mode where there are many of these same-start entries and without this fix the scheduler advances too early, causing problems.

Fixes #6713

Removes same-input-same-start cpu_schedule entries when reading the
schedule file in the scheduler.  The scheduler cannot emulate a switch
with no instructions in between in replay mode, and these same-start
entries cause problems.

Adds a scheduler unit test.

Tested on a larger app in as-traced mode where there are many of these
same-start entries and without this fix the scheduler advances too
early, causing problems.

Fixes #6713
clients/drcachesim/tests/scheduler_unit_tests.cpp Outdated Show resolved Hide resolved
clients/drcachesim/tests/scheduler_unit_tests.cpp Outdated Show resolved Hide resolved
clients/drcachesim/scheduler/scheduler.h Show resolved Hide resolved
clients/drcachesim/scheduler/scheduler.cpp Show resolved Hide resolved
clients/drcachesim/scheduler/scheduler.cpp Outdated Show resolved Hide resolved
@derekbruening derekbruening merged commit 781f15e into master Mar 22, 2024
16 checks passed
@derekbruening derekbruening deleted the i6713-rm-same-start-sched-entries branch March 22, 2024 19:49
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.

Replaying a drmemtrace as-traced hits problems with same-start schedule entries
2 participants