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

i#2039 trace trim, part 3: Add nop mode to drmemtrace

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i2039-memtrace-nop-mode into master Oct 25, 2022
  • Overview 13
  • Commits 4
  • Pipelines 0
  • Changes 12

Adds a new drbbdup mode to drmemtrace which performs zero instrumentation (except drwrap cleanup). This mode is used when attaching for the period prior to full control of all threads and when detaching prior to starting to let threads go native, to avoid uneven thread instrumentation during these incremental staggered processes. The mode is initially under an off-by-default new option -align_endpoints while drbbdup stability is being worked on (i#5686).

Threads that did nothing during the trace-mode period are now omitted from the trace.

Adds a test by adding 4 idle threads to burst_threads and ensuring they do not show up in the trace.

Alignment itself was tested manually by running larger applications and analyzing the timestamp ranges in the trace.

Fixes the burst_replace test to work properly with .zip output (the output regex still matched despite a printed error from raw2trace, it seems).

Timestamps during detach require further work as they inaccurately imply executing after tracing mode was turned off. The next part will address this issue.

Issue: #2039 (closed), #5686

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i2039-memtrace-nop-mode