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
  • include
  • linux
  • perf_event.h
Find file BlameHistoryPermalink
  • Ravi Bangoria's avatar
    perf/core: Rework forwarding of {task|cpu}-clock events · 0d6d062c
    Ravi Bangoria authored May 04, 2023
    
    
    Currently, PERF_TYPE_SOFTWARE is treated specially since task-clock and
    cpu-clock events are interfaced through it but internally gets forwarded
    to their own pmus.
    
    Rework this by overwriting event->attr.type in perf_swevent_init() which
    will cause perf_init_event() to retry with updated type and event will
    automatically get forwarded to right pmu. With the change, SW pmu no
    longer needs to be treated specially and can be included in 'pmu_idr'
    list.
    
    Suggested-by: default avatarPeter Zijlstra <peterz@infradead.org>
    Signed-off-by: default avatarRavi Bangoria <ravi.bangoria@amd.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Link: https://lkml.kernel.org/r/20230504110003.2548-2-ravi.bangoria@amd.com
    0d6d062c
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7