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

i#2463: code cache pre-population

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i2463-prepop into master Jul 07, 2017
  • Overview 2
  • Commits 2
  • Pipelines 0
  • Changes 8

Adds a new API routine dr_prepopulate_cache() meant to be called between dr_app_setup() and dr_app_start() to build up a code cache in parallel with app execution, to avoid the cost of a cold cache upon attach.

Fixes some auxiliary issues with building blocks ahead of time from sampling data:

  • Sets up TLS during bb building for dcontexts but does not enable signal handlers to avoid perturbing the app.
  • Adds is_DR_segment_reader_entry() to avoid pre-building a problematic self-sampled bb that reads DR segments when DR is a static library and we do not support mangling such reads.
  • Fixes an initialized-dcontext issue in dr_get_isa_mode().

Adds a test.

Fixes #2463 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i2463-prepop