1. 15 May, 2024 2 commits
    • Daniel Bristot de Oliveira's avatar
      rtla/auto-analysis: Replace \t with spaces · a40e5e4d
      Daniel Bristot de Oliveira authored
      When copying timerlat auto-analysis from a terminal to some web pages or
      chats, the \t are being replaced with a single ' ' or '    ', breaking
      the output.
      
      For example:
        ## CPU 3 hit stop tracing, analyzing it ##
          IRQ handler delay:                        1.30 us (0.11 %)
          IRQ latency:           1.90 us
          Timerlat IRQ duration:         3.00 us (0.24 %)
          Blocking thread:       1223.16 us (99.00 %)
                           insync:4048         1223.16 us
          IRQ interference          4.93 us (0.40 %)
                      local_timer:236        4.93 us
        ------------------------------------------------------------------------
           Thread latency:       1235.47 us (100%)
      
      Replace \t with spaces to avoid this problem.
      
      Link: https://lkml.kernel.org/r/ec7ed2b2809c22ab0dfc8eb7c805ab9cddc4254a.1713968967.git.bristot@kernel.org
      
      Cc: stable@vger.kernel.org
      Cc: Jonathan Corbet <corbet@lwn.net>
      Cc: Juri Lelli <juri.lelli@redhat.com>
      Fixes: 27e348b2 ("rtla/timerlat: Add auto-analysis core")
      Signed-off-by: default avatarDaniel Bristot de Oliveira <bristot@kernel.org>
      a40e5e4d
    • Daniel Bristot de Oliveira's avatar
      rtla/timerlat: Simplify "no value" printing on top · 5f076933
      Daniel Bristot de Oliveira authored
      Instead of printing three times the same output, print it only once,
      reducing lines and being sure that all no values have the same length.
      
      It also fixes an extra '\n' when running the with kernel threads, like
      here:
      
           =============== %< ==============
                                            Timer Latency
      
         0 00:00:01   |          IRQ Timer Latency (us)        |         Thread Timer Latency (us)
       CPU COUNT      |      cur       min       avg       max |      cur       min       avg       max
         2 #0         |        -         -         -         - |      161       161       161       161
         3 #0         |        -         -         -         - |      161       161       161       161
         8 #1         |       54        54        54        54 |        -         -         -         -'\n'
      
       ---------------|----------------------------------------|---------------------------------------
       ALL #1      e0 |                 54        54        54 |                161       161       161
           =============== %< ==============
      
      This '\n' should have been removed with the user-space support that
      added another '\n' if not running with kernel threads.
      
      Link: https://lkml.kernel.org/r/0a4d8085e7cd706733a5dc10a81ca38b82bd4992.1713968967.git.bristot@kernel.org
      
      Cc: stable@vger.kernel.org
      Cc: Jonathan Corbet <corbet@lwn.net>
      Cc: Juri Lelli <juri.lelli@redhat.com>
      Fixes: cdca4f4e ("rtla/timerlat_top: Add timerlat user-space support")
      Signed-off-by: default avatarDaniel Bristot de Oliveira <bristot@kernel.org>
      5f076933
  2. 12 May, 2024 5 commits
  3. 11 May, 2024 10 commits
  4. 10 May, 2024 20 commits
  5. 09 May, 2024 3 commits