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
  • !4920

i#4865: Add emulation instr-only and convenience features

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i4865-use-emulation-labels into master May 24, 2021
  • Overview 39
  • Commits 5
  • Pipelines 0
  • Changes 7

Adds a convenience routine drmgr_in_emulation_region() and flag DR_EMULATE_FIRST_INSTR to make it easier to query emulation markers.

Adds a new flag DR_EMULATE_INSTR_ONLY for expansions where the sequence being executed should be examined for data references and only instruction observation should look at the original instruction. Sets the flag for drutil_expand_rep_string*() and drx_expand_scatter_gather().

Clarifies that the flags field added in PR #4877 is a source compatibility break if source code was not zeroing the full struct.

Ports the emulation_api_simple test to x86_64. Augments the test to perform a partial DR_EMULATE_INSTR_ONLY emulation as well for both platforms. Adds checks for various invariants in the test.

Future work will add emulation awareness to tracing clients.

Issue: #4866 (closed), #4865 (closed) Fixes #4865 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i4865-use-emulation-labels