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

ETW tracing to generate custom events on hook execution #7

Open
morallo opened this issue Nov 14, 2021 · 0 comments
Open

ETW tracing to generate custom events on hook execution #7

morallo opened this issue Nov 14, 2021 · 0 comments

Comments

@morallo
Copy link
Contributor

morallo commented Nov 14, 2021

This would allow easy visualization of the frame rendering timeline in GPUView.
It will help modify the hook_d3d to optimize performance and reduce latency.

I would propose to emit one event each time a hook callback function is called, so it should be implemented in hook_main.

Before putting a big effort on it, do you think it makes sense @JeremyAnsel ?

An additional feature could be generating a ETW on demand for a list of given call instructions, provided by their address in a config file.
This would allow a low-overhead dynamic instrumentation of xwingalliance.exe useful for reversing and hooking analysis/design.
Hook_main would need to implement the necessary memory patching to capture the flow without altering the execution.
Is this second feature even feasible?

Thanks in advance!

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

No branches or pull requests

1 participant