-
Notifications
You must be signed in to change notification settings - Fork 70
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
Including register values in the trace #8
Comments
Hi Jan No, the current plugins don't support it yet. If you are ready to help, feel free to try :) For Valgrind I've no idea. |
Thanks for the hints and the instant answer! |
What format would you suggest for a (hypothetical) trace including register values? E.g. the name of the register in ASCII text followed by the value in 'raw' bytes? |
hmm you're talking about the bin log produced by TracerGrind? For TracerGrind, see trace_protocol.h and add a MsgType in the enum, e.g. MSG_REG and a structure e.g.
To reduce trace size, try to log only the registers that were written to, if any For TracerPIN in human format, e.g. sth like this, one line per written register:
([R] is already taken...) |
Hi!
In your paper you write:
Does this mean TracerGrind / TracerPIN can do it already? Or does it mean, in principle, a DBI framework can do this?
If the first is the case: How can I tell the tracer to include the register values in the trace?
If the second is the case: Do you have any hints for me how to extend TracerGrind / TracerPIN to support the tracing of register values?
Thanks for your help!
Best regards
The text was updated successfully, but these errors were encountered: