commit | 11bf678444ba309e9d1b97f31620d67790bed53d | [log] [tgz] |
---|---|---|
author | Abhinav Anil Sharma <sharmaabhinav@google.com> | Fri Nov 18 22:39:54 2022 |
committer | GitHub <noreply@github.com> | Fri Nov 18 22:39:54 2022 |
tree | 17f925e753efff2e0e77d6789bdb574c7c20f6a0 | |
parent | 127c2dbe31d573ef24e402a2a52e8d4d31d53339 [diff] |
i#5675 record filter: Add cache_filter and type_filter. (#5742) Adds cache_filter that allows filtering data and/or instr trace_entry_ts in a stored offline trace by passing the addresses through a cache. Uses the existing drcachesim cache simulator to implement this. Adds a did_last_access_hit() public API in a sub-class of cache_stats_t to get the status of the last processed access. This is used in cache_filter to determine whether the current trace_entry_t should be output or not. Adds type_filter that allows filtering trace entries by their type, including markers by their type. Adds the ability to stop filtering when a certain timestamp is reached. At this point, a new marker TRACE_MARKER_TYPE_FILTER_ENDPOINT is added to help tools figure out the warmup region in the trace. Adds a new get_last_timestamp() public API to memtrace_stream_t to enable this. Adds a test that verifies cache and type filter operation. Adds command line options to the record_filter_launcher executable to allow using the cache and type filters. Issue: #5675
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.
DynamoRIO is the basis for some well-known external tools:
Tools built on DynamoRIO and available in the 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 primarily 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/