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#2062 memtrace nonmod part 3: Kernel interruption PC #6001

Merged
merged 5 commits into from
Apr 25, 2023

Conversation

derekbruening
Copy link
Contributor

Changes the kernel interruption PC for 64-bit from a modidx+modoffs scheme that was trying to avoid a 2nd record but which failed to handle a non-module PC to use the absolute PC (a recently added assert fires in this case; previously we could assert or crash or continue with a bogus value in raw2trace depending on the uninitialized value of modidx).

Bumps the raw offline version number. Updates raw2trace to handle both the old version as modix+modoffs plus the new absolute PC version. Adds new unit tests for both.

Adds a SIGILL to the burst_gencode trace which triggers the new tracer assert and passes with this fix.

To build the test, adds 0-valued entries to operand enums: DR_EXTEND_DEFAULT and DR_OPND_NONE, to avoid C++ compiler warnings in INSTR_CREATE_dc_ivac(). #6000 covers using those in all the AArch64 creation macros.

Issue: #2062

Changes the kernel interruption PC for 64-bit from a modidx+modoffs
scheme that was trying to avoid a 2nd record but which failed to
handle a non-module PC to use the absolute PC (a recently added assert
fires in this case; previously we could assert or crash or continue
with a bogus value in raw2trace depending on the uninitialized value
of modidx).

Bumps the raw offline version number.  Updates raw2trace to handle
both the old version as modix+modoffs plus the new absolute PC
version.  Adds new unit tests for both.

Adds a SIGILL to the burst_gencode trace which triggers the new tracer
assert and passes with this fix.

To build the test, adds 0-valued entries to operand enums:
DR_EXTEND_DEFAULT and DR_OPND_NONE, to avoid C++ compiler warnings in
INSTR_CREATE_dc_ivac().  #6000 covers using those in all the AArch64
creation macros.

Issue: #2062
clients/drcachesim/tests/burst_gencode.cpp Outdated Show resolved Hide resolved
core/ir/opnd_api.h Outdated Show resolved Hide resolved
clients/drcachesim/tracer/tracer.cpp Outdated Show resolved Hide resolved
@derekbruening derekbruening merged commit e879d71 into master Apr 25, 2023
@derekbruening derekbruening deleted the i2062-xfer-marker-value branch April 25, 2023 16:16
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