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

i#2062 trace non-mod: handle traced VDSO code

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i2062-vdso into master Nov 17, 2017
  • Overview 1
  • Commits 2
  • Pipelines 0
  • Changes 15

Adds offline trace handling of VDSO code by dumping the actual contents of the VDSO pages into drmodtrack custom data and using it to decode instructions during post-processing.

Updates drmodtrack to handle binary data in custom fields.

Refactors how 3rd-party custom module fields are handled for drcachesim as they now must be multiplexed with the new VDSO data. The 3rd party must now build a custom post-processor by linking with the raw2trace library.

Since the module list file is no longer completely human-readable and contains hidden custom fields, a new interface raw2trace_t::do_module_parsing() is added to support building 3rd-party module file parsing code for use after a trace is gathered.

Adds drmemtrace_get_output_path() for dynamically locating offline trace files.

Updates the burst_replace test to use the new methods.

Includes support for reading legacy trace module files that do not contain VDSO data (in such a case we revert to the prior behavior of skipping the ifetch entries). This is accomplished by using a version field in the module data. If it's missing, and if either the user parser is happy or the next field looks like a path, we assume everything's fine and we're just missing the vdso data. This legacy support was tested manually.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i2062-vdso