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

i#4014 dr$sim phys: Use physaddr markers in simulators

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i4014-phys-sim into master Aug 03, 2022
  • Overview 18
  • Commits 5
  • Pipelines 0
  • Changes 11

When -use_physical is set, the cache and TLB simulators read the new virtual-to-physical translation markers and use them to simulate physical addresses.


Tested: Ran manually and looked at logs. Open to suggestions for how to automate testing.

$ rm -rf drmemtrace.sim*.dir; ninja && sudo bin64/drrun -stderr_mask 0 -t drcachesim -use_physical -offline -- suite/tests/bin/simple_app && sudo chown -R $USER drmemtrace.sim*.dir && bin64/drrun -t drcachesim -indir drmemtrace.sim*.dir -use_physical -verbose 3 > OUT 2>&1
$ less OUT
translating virtual 0x7fed14de0050 to 0xf52ace050
::3036256.3036256::  @0xf52ace050 instr x3
translating virtual 0x7fed14de0053 to 0xf52ace053
::3036256.3036256::  @0xf52ace053 instr x5
translating virtual 0x7ffca0af9068 to 0xb3f975068
translating virtual 0x7fed14de0053 to 0xf52ace053
::3036256.3036256::  @0xf52ace053 write 0xb3f975068 x8

$ bin64/drrun -t drcachesim -indir drmemtrace.sim*.dir -use_physical -simulator_type TLB -verbose 3 > OUT 2>&1
$ les OUT
translating virtual 0x7f6f263a3050 to 0xf52ace050
::3080711.3080711::  @0x7070615f656c706d instr 0xf52ace050 x3
translating virtual 0x7f6f263a3053 to 0xf52ace053
::3080711.3080711::  @0x7070615f656c706d direct_call 0xf52ace053 x5
translating virtual 0x7ffdeaab3798 to 0xed4c52798
translating virtual 0x7f6f263a3053 to 0xf52ace053

Issue: #4014

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i4014-phys-sim