Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • tools
  • perf
  • Documentation
  • perf-script-python.txt
Find file BlameHistoryPermalink
  • Ben Gainey's avatar
    tools: perf: Expose sample ID / stream ID to python scripts · acfd65c8
    Ben Gainey authored Jan 23, 2024
    
    
    perf script exposes the evsel_name to python scripts as part of the data
    passed to the sample or tracepoint handler function, and it passes the id and
    stream_id to the throttled/unthrottled handler functions. This makes matching
    throttle events and samples difficult.
    
    To make this possible, this change exposes the sample id and stream_id values
    to the script.
    
    Signed-off-by: default avatarBen Gainey <ben.gainey@arm.com>
    Reviewed-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
    Cc: will@kernel.org
    Cc: linux-arm-kernel@lists.infradead.org
    Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Link: https://lore.kernel.org/r/20240123103137.1890779-2-ben.gainey@arm.com
    acfd65c8
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7