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

Add a CodeHook class for mid-function hooking #52

Open
alexrp opened this issue Dec 15, 2022 · 0 comments
Open

Add a CodeHook class for mid-function hooking #52

alexrp opened this issue Dec 15, 2022 · 0 comments
Assignees
Labels
area: hooking Issues related to the function hooking APIs. area: samples Issues related to the sample projects. state: approved Enhancements and tasks that have been approved.
Milestone

Comments

@alexrp
Copy link
Member

alexrp commented Dec 15, 2022

  • Such a hook should receive a pointer to a machine context containing all register values from the target function at the point the hook is called.
  • The hook should be able to modify the context before returning and have those modifications flow to the remainder of the target function.
  • The user should be able to specify which registers (GPR, XMM/YMM/ZMM, ...) are captured/flowed to reduce the performance impact.
  • The hook should use the hook gate infrastructure.

I think all of this should be technically feasible. Probably...

@alexrp alexrp added state: approved Enhancements and tasks that have been approved. type: feature area: samples Issues related to the sample projects. area: hooking Issues related to the function hooking APIs. labels Dec 15, 2022
@alexrp alexrp added this to the v2.0 milestone Dec 15, 2022
@alexrp alexrp self-assigned this Dec 15, 2022
@alexrp alexrp modified the milestones: v3.0, v4.0 Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: hooking Issues related to the function hooking APIs. area: samples Issues related to the sample projects. state: approved Enhancements and tasks that have been approved.
Development

No branches or pull requests

1 participant