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

i#5538 memtrace seek, part 8: Add skip_thread_instructions()

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i5538-seek into master Nov 11, 2022
  • Overview 41
  • Commits 6
  • Pipelines 0
  • Changes 16

Adds a new skip_instructions() reader iterator interface. It is a linear walk for every type of reader except a chunked zipfile walking a single thread.

Adds a drcachesim command line option -skip_instrs which triggers the analyzer to skip from the start before passing anything to the tool.

Refactors the reader_t++ to provide a process_input_entry to update state while skipping.

Adds a unit test with an added trace file with a small chunk size. The test checks the view output for every skip value from 0 to over double the chunk size.

Leaves several pieces for future work:

  • Recording the record count in each chunk so we have an accurate count after skipping.
  • Presenting global headers skipped over as memtrace_stream_t values that tools can query.
  • Reading the schedule files for serial skipping (or the planned cpu iterator and skipping).
  • Repeating the timestamp+cpu for non-zipfile skipping.

Issue: #5538

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i5538-seek