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

i#4318 xarch memtrace: Add library search dir

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i4318-alt-mod-dir into master Jun 22, 2020
  • Overview 7
  • Commits 4
  • Pipelines 0
  • Changes 26

Adds a new option -alt_module_dir which specifies an alternate directory in which to look for libraries in a modules.log offline drcachesim file. Hooks the option up to the opcode_mix and view tools and to raw2trace (both its standalone launcher and drcachesim frontend integration).

This will be useful in general, but is needed for adding tests with checked-in raw files and binaries, where the checked-in modules.log has a hardcoded path that will never match all test environments.

Adds a test that runs both raw2trace and opcode_mix on a new checked-in aarch64 raw trace (this test will evolve for future cross-arch testing, which is the reason for using aarch64). The binaries are stripped, with the two libraries "fake" binaries: libmemtrace.so is not executed, and libdynamorio.so is only used for dynamorio_sigreturn, so these are synthetic binaries (created from asm files) to keep them smaller. The tests deliberately fail on x86 and match an error message that will improve when architecture tags are added.

Issue: #4318

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i4318-alt-mod-dir