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
  • Issues
  • #4280
Closed
Open
Issue created May 02, 2020 by John F.X. Galea@johnfxgaleaContributor

Add opcode instrumentation to drmgr

Often, during the insertion per instruction stage (i.e., stage 3), a client adds instrumentation according to the opcode of the instruction.

In order to alleviate the boiler code required by clients to check the opcode, the proposal is to add support for opcode events to drmgr. The call-backs are similar to drmgr_insertion_cb_t with the exception that they are called only when the instruction has a specific opcode as registered by the user.

In particular:

bool
drmgr_register_opcode_instrumentation_event(drmgr_opcode_insertion_cb_t insertion_func,
                                            int opcode, drmgr_priority_t *priority);
bool
drmgr_unregister_opcode_instrumentation_event(drmgr_opcode_insertion_cb_t insertion_func,
                                              int opcode);
Assignee
Assign to
Time tracking