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

i#3048 func-trace: Add "noret" function tracing

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i3048-functrace-noret into master Mar 11, 2020
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 21

Adds an optional specifier for drcachesim function tracing where "|noret" on a trace request indicates to not record the return value. This can reduce overhead as finding all post-call return points is non-trivial.

Changes the funclist.log format to include multiple comma-separated values prior to the symbol: the id, number of args, PC, and optional flags like "noret". Adding the arg count helps simplify func_view code, and it and the PC should be generally useful, although they can technically be extracted from the trace.

Adds support to the func_view tool to keep the indentation level the same for a noret function, to properly visualize nesting of other functions. Adds thread prefixes to distinguish different thread subtraces when viewing an interleaving.

Renames DRMEMTRACE_FUNCTION_MAP_FILENAME to DRMEMTRACE_FUNCTION_LIST_FILENAME to match all other references which call it the "function list" or "funclist".

Adds support for locating the auxiliary files in either the raw/ or trace/ subdirectories to make it easier to persist trace files.

Adds a new test with a combination of return-value and noret functions. I wanted to test threads as well, and it is difficult to make a deterministic test like that, so I checked in the trace files themselves.

Issue: #3048 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i3048-functrace-noret