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#5953 rseq: Fix rseq adjust issues with filtering #5971

Merged
merged 3 commits into from
Apr 13, 2023

Conversation

derekbruening
Copy link
Contributor

@derekbruening derekbruening commented Apr 13, 2023

Fixes problems with the new rseq adjustment code with filtered traces:

  • Load and update the buffer pointer when emitting the rseq entry label
  • Do not try to adjust for i-filtered

Adds 2 new tests for filtering the linux.rseq app.

The new tests revealed a problem with the instr counts in the schedule file:
raw2trace was counting the PC-only entries as instructions; we fix that here.

Reverts the rseq abort event and marker value back to the interrupted
PC for a signal in the instrumented execution. Leaves all other cases
(all aborts in the native execution) as the handler. This lets us
properly place the abort+signal for the instrumented interruption
case.

Adjusts the invariant checker abort check to use the new end PC for a
more accurate test to avoid false positives and negatives.

Fixes #5953, #4041

Fixes problems with the new rseq adjustment code with filtered traces:
+ Load and update the buffer pointer when emitting the rseq entry label
+ Do not try to adjust for i-filtered

Adds 2 new tests for filtering the linux.rseq app.

The new tests revealed a problem with the instr counts in the schedule
file: raw2trace was counting the PC-only entries as instructions; we
fix that here.

Issue: #5953
clients/drcachesim/tracer/raw2trace.cpp Outdated Show resolved Hide resolved
clients/drcachesim/tracer/tracer.cpp Outdated Show resolved Hide resolved
PC for a signal in the instrumented execution.  Leaves all other cases
(all aborts in the native execution) as the handler.  This lets us
properly place the abort+signal for the instrumented interruption
case.

Adjusts the invariant checker abort check to use the new end PC for a
more accurate test to avoid false positives and negatives.
@derekbruening
Copy link
Contributor Author

x64 failure is raw-zlib: known zlib stability issue: #5635

@derekbruening derekbruening merged commit 27f7579 into master Apr 13, 2023
@derekbruening derekbruening deleted the i5953-filtered-rseq branch April 13, 2023 19:42
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.

rseq side exit in native run results in PC discontinuity in drmemtrace
2 participants