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

i#2300 reuse distance: add classic reuse distance histogram and stats

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i2300-reuse-histogram into master Mar 20, 2017
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 8

Adds computation of the classic reuse distance (or "stack distance") for each cache line reference under the -reuse_distance tool. Stores the distances in a histogram. Reports the mean, median, and standard deviation by default, and on request via -reuse_distance_histogram prints the full histogram with percentages and cumulative percentages.

The distance is computed with reasonable overhead using a one-layer skip list where each node stores the distance from the head. The skip distance is controlled by -reuse_skip_dist and should be kept close to the average reuse distance, but here we rely on the user setting it and use a reasonable default.

Includes a debug-build option -reuse_verify_skip to verify the skip list results by performing a full walk, and debug-build list printing and diagnostics.

Updates the tool.reuse test and adds a new tool.reuse.offline test that uses a new checked-in trace file to test precise numeric stats and histogram results.

Fixes #2300 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i2300-reuse-histogram