commit | f9b691441ff4ce34d98e459bfc73db3fa052d004 | [log] [tgz] |
---|---|---|
author | Derek Bruening <bruening@google.com> | Fri Dec 08 03:21:54 2017 |
committer | GitHub <noreply@github.com> | Fri Dec 08 03:21:54 2017 |
tree | cffe6e42d553e744210631c960e6b1865b6f506d | |
parent | b4da8d159afb7534266fc8074d9460a88e2e0431 [diff] |
i#2708 trace discontinuity: add test, fix bugs found by test (#2747) Extends the trace_invariants test from #2638 to ensure there's no discontinuity in control flow not indicated by a branch or a kernel xfer marker. Adds an online trace_invariants test. Switches the trace_invariants test to run pthreads.ptsig on UNIX, which is marked un-FLAKY, to test both threads and signals, and on winxfer on Windows. Fixes several issues found by this new test: + Adds TRACE_TYPE_INSTR_SYSENTER to mark the PC discontinuity from OP_sysenter. + Adds proper handling of a mid-bb fault in offline trace conversion by looking ahead after each memref to see whether there's a marker. + #2011 follow-up: fixes the zero-iter code from 2772b0b which it turns out only worked for offline traces. For online, the top-of-bb instr is jecxz, so the instr type and size were wrong. + Fixes pipe write splitting to avoid separating an instr from its bundle entries. + Avoids a marker for a thread init kernel xfer event on Windows. Fixes #2708
DynamoRIO is a runtime code manipulation system that supports code transformations on any part of a program, while it executes. DynamoRIO exports an interface for building dynamic tools for a wide variety of uses: program analysis and understanding, profiling, instrumentation, optimization, translation, etc. Unlike many dynamic tool systems, DynamoRIO is not limited to insertion of callouts/trampolines and allows arbitrary modifications to application instructions via a powerful IA-32/AMD64/ARM/AArch64 instruction manipulation library. DynamoRIO provides efficient, transparent, and comprehensive manipulation of unmodified applications running on stock operating systems (Windows, Linux, or Android) and commodity IA-32, AMD64, ARM, and AArch64 hardware. Mac OSX support is in progress.
Tools built on DynamoRIO and provided in our release package include:
DynamoRIO‘s powerful API abstracts away the details of the underlying infrastructure and allows the tool builder to concentrate on analyzing or modifying the application’s runtime code stream. API documentation is included in the release package and can also be browsed online. Slides from our past tutorials are also available.
DynamoRIO is available free of charge as a binary package for both Windows and Linux. DynamoRIO's source code is available under a BSD license.
Use the discussion list to ask questions.
To report a bug, use the issue tracker.
See also the DynamoRIO home page: http://dynamorio.org/