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

i#5675 record filter: Add filter that toggles at given instr count

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Abhinav Anil Sharma requested to merge i5675-toggle-filter into master Nov 15, 2022
  • Overview 28
  • Commits 5
  • Pipelines 0
  • Changes 7

toggle_filter_t starts off either enabled (outputting all entries) or disabled (not outputting any entry), and then toggles when the given instr count is reached. This is useful for splitting/shortening/delaying a trace.

Adds logic to record_filter that ensures that essential trace entries, like the shard header, unit header, and footers, are not skipped. Also, misc entries like v2p mappings and encodings are conservatively output almost always.

Adds a new parameter to record_filter_func_t::parallel_shard_filter() that allows the filter to let the record_filter tool know that the remaining trace can be skipped, at least as far as that filter is concerned. This allows the record_filter to exclude misc entries (like encodings, and v2p mappings).

Adds the functionality to truncate or delay a trace using the toggle_filter_t, to record_filter_launcher.

Adds a test for toggle filter.

Issue: #5675

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i5675-toggle-filter