Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Merge requests
  • !2821

i#2006 drcachesim: add opcode_mix tool and augmented instr API

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i2006-trace-opcodes into master Feb 04, 2018
  • Overview 1
  • Commits 5
  • Pipelines 0
  • Changes 17

Adds further support for tools that want information beyond just memory addresses by adding an API to leverage the raw2trace code to map in the binaries used during traced execution and examine the instruction bytes. This takes the shape of two new routines: raw2trace_t::do_module_parsing_and_mapping() and raw2trace_t::find_mapped_trace_address().

Adds a new simulator tool "opcode_mix" which uses the new API to decode the opcode for each executed instruction and print out the dynamic count of each opcode. The tool only operates with offline traces and needs access to the modules.log and binaries of the traced execution.

Adds documentation and a test.

Issue: #2006 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i2006-trace-opcodes