Execution tracing for binary lifting.
-
Clone and build MAMBO from here. Last tested commit:
c2d51df. -
Copy
plugins/traceto the MAMBO repository. -
Copy
mambo.patchto MAMBO repository and rungit apply mambo.patch. -
Re-build MAMBO with
make. -
Run binary with MAMBO, for example:
<mambo-root>/dbm ./a.out
Since MAMBO currently does not support passing-in arguments, all settings must be updated ahead of time using #define in source files. The following values can be updated:
ALLOW_CRITICAL_PATH_CHECKS - Enable checks in the code (e.g., verify that memory allocation was successful).
PERFORMANCE_MONITORING - Print tracing time at the end.
Other switches should not be modified, as it may cause unforeseen issues. More information can be found directly inside the source files.
This repository is a port of the original non-public code and as such is more stable but may lack some features. Most notably multi-threading support has not been ported yet.