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#5505 kernel tracing: Support clac and stac in DR decoder #6484

Merged
merged 12 commits into from
Nov 30, 2023

Conversation

abhinav92003
Copy link
Contributor

@abhinav92003 abhinav92003 commented Nov 29, 2023

Adds encoding-decoding support for clac and stac which are observed in some kernel traces.

decode_fast does not need any change and already should get the 3-byte size correctly.

Adds EFLAGS_READ_AC and EFLAGS_WRITE_AC to track reads/writes to the Alignment Check flag.
Currently we try to avoid a major binary compatibility break by adding them to the end. This makes
some code more complicated. Added a TODO with #6485 to re-number when we're about to do the
next major release.

Issue: #5505
Fixes: #2103

Adds encoding-decoding support for clac and stac which are observed
in some kernel traces.

Adds EFLAGS_READ_AC and EFLAGS_WRITE_AC to track reads/writes to
the Alignment Check flag.

Issue: #5505
@abhinav92003 abhinav92003 marked this pull request as ready for review November 30, 2023 00:08
core/ir/instr_api.h Outdated Show resolved Hide resolved
core/ir/instr_api.h Outdated Show resolved Hide resolved
core/ir/instr_api.h Outdated Show resolved Hide resolved
core/ir/x86/decode_table.c Outdated Show resolved Hide resolved
core/ir/x86/opcode_api.h Outdated Show resolved Hide resolved
core/ir/x86/opcode_api.h Show resolved Hide resolved
core/ir/x86/opcode_api.h Show resolved Hide resolved
@abhinav92003
Copy link
Contributor Author

Okay I made the bitset adjustments for eflags. Would be good to get another review. Also had to make a temporary change to the decenc test to avoid a large diff.

core/ir/instr_api.h Outdated Show resolved Hide resolved
@abhinav92003
Copy link
Contributor Author

x86-32 failures are #6417.

@abhinav92003 abhinav92003 merged commit 30031e0 into master Nov 30, 2023
14 of 15 checks passed
@abhinav92003 abhinav92003 deleted the i5505-add-priv-opcodes branch November 30, 2023 16:44
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.

add decoder support for SMAP instructions STAC and CLAC
2 participants