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
  • tools
  • tracing
  • rtla
  • src
  • utils.c
Find file BlameHistoryPermalink
  • Daniel Bristot de Oliveira's avatar
    rtla/timerlat_top: Add timerlat user-space support · cdca4f4e
    Daniel Bristot de Oliveira authored Jun 06, 2023
    Add the support for running timerlat threads in user-space. In this
    mode, enabled with -u/--user-threads, timerlat dispatches user-space
    processes that will loop in the timerlat_fd, measuring the overhead
    for going to user-space and then returning to the kernel - in addition
    to the existing measurements.
    
    Here is one example of the tool's output with -u enabled:
    
      $ sudo timerlat top -u -d 600 -q
                                           Timer Latency
        0 00:10:01   |          IRQ Timer Latency (us)        |         Thread Timer Latency (us)      |    Ret user Timer Latency (us)
      CPU COUNT      |      cur       min       avg       max |      cur       min       avg       max |      cur       min       avg       max
        0 #600001    |        0         0         0         3 |        2         1         2         9 |        3         2         3        15
        1 #600001    |        0         0         0         2 |        2         1         2        13 |        2         2         3        18
        2 #600001    |        0         0         0        10 |        2         1         2        16 |        3         2         3        20
        3 #600001    |        0         0         0         7 |        2         1         2        10 |        3         2         3        11
        4 #600000    |        0         0         0        16 |        2         1         2        41 |        3         2         3        58
        5 #600000    |        0         0         0         3 |        2         1         2        10 |        3         2         3        13
        6 #600000    |        0         0         0         5 |        2         1         2         7 |        3         2         3        10
        7 #600000    |        0         0         0         1 |        2         1         2         7 |        3         2         3        10
    
    The tuning setup like -p or -C work for the user-space threads as well.
    
    Link: https://lkml.kernel.org/r/758ad2292a0a1d884138d08219e1a0f572d257a2.1686066600.git.bristot@kernel.org
    
    
    
    Cc: William White <chwhite@redhat.com>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Tested-by: default avatarJuri Lelli <juri.lelli@redhat.com>
    Signed-off-by: default avatarDaniel Bristot de Oliveira <bristot@kernel.org>
    Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
    cdca4f4e
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7