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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic: x86_64: refactor patch code #1745

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

clementguidi and others added 4 commits July 6, 2023 11:52
Skip the functions where uftrace already injected a call to a
trampoline.

Signed-off-by: Cl茅ment Guidi <cguidi@ciena.com>
Refactor for more clarity.

Signed-off-by: Cl茅ment Guidi <cguidi@ciena.com>
Refactor 'patch_code' so it can later be used at runtime.

Co-authored-by: Gabriel-Andrew Pollo-Guilbert <gabrielpolloguilbert@gmail.com>
Signed-off-by: Cl茅ment Guidi <cguidi@ciena.com>
Check if instruction at a given address is ENDBR64.

Signed-off-by: Cl茅ment Guidi <cguidi@ciena.com>
/*
* We fill the remaining part of the patching region with nops.
*
* 0x0: int3
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did you update the first byte?

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.

None yet

2 participants