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
  • linux
  • kernel
  • locking
  • mutex.c
Find file BlameHistoryPermalink
  • Namhyung Kim's avatar
    locking: Add lock contention tracepoints · 16edd9b5
    Namhyung Kim authored Mar 22, 2022
    
    
    This adds two new lock contention tracepoints like below:
    
     * lock:contention_begin
     * lock:contention_end
    
    The lock:contention_begin takes a flags argument to classify locks.  I
    found it useful to identify what kind of locks it's tracing like if
    it's spinning or sleeping, reader-writer lock, real-time, and per-cpu.
    
    Move tracepoint definitions into mutex.c so that we can use them
    without lockdep.
    
    Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Tested-by: default avatarHyeonggon Yoo <42.hyeyoo@gmail.com>
    Link: https://lkml.kernel.org/r/20220322185709.141236-2-namhyung@kernel.org
    16edd9b5
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7