• Namhyung Kim's avatar
    perf sched timehist: Add -I/--idle-hist option · 07235f84
    Namhyung Kim authored
    The --idle-hist option is to analyze system idle state so which process
    makes cpu to go idle.  If this option is specified, non-idle events will
    be skipped and processes switching to/from idle will be shown.
    
    This option is mostly useful when used with --summary(-only) option.  In
    the idle-time summary view, idle time is accounted to previous thread
    which is run before idle task.
    
    The example output looks like following:
    
      Idle-time summary
                      comm parent sched-out idle-time min-idle avg-idle max-idle stddev migrations
                                    (count)    (msec)   (msec)   (msec)   (msec)      %
      --------------------------------------------------------------------------------------------
            rcu_preempt[7]      2        95   550.872    0.011    5.798   23.146   7.63      0
           migration/1[16]      2         1    15.558   15.558   15.558   15.558   0.00      0
            khugepaged[39]      2         1     3.062    3.062    3.062    3.062   0.00      0
         kworker/0:1H[124]      2         2     4.728    0.611    2.364    4.116  74.12      0
      systemd-journal[167]      1         1     4.510    4.510    4.510    4.510   0.00      0
        kworker/u16:3[558]      2        13    74.737    0.080    5.749   12.960  21.96      0
       irq/34-iwlwifi[628]      2        21   118.403    0.032    5.638   23.990  24.00      0
        kworker/u17:0[673]      2         1     3.523    3.523    3.523    3.523   0.00      0
          dbus-daemon[722]      1         1     6.743    6.743    6.743    6.743   0.00      0
              ifplugd[741]      1         1    58.826   58.826   58.826   58.826   0.00      0
      wpa_supplicant[1490]      1         1    13.302   13.302   13.302   13.302   0.00      0
         wpa_actiond[1492]      1         2     4.064    0.168    2.032    3.896  91.72      0
             dockerd[1500]      1         1     0.055    0.055    0.055    0.055   0.00      0
      ...
    Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Tested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    Acked-by: default avatarDavid Ahern <dsahern@gmail.com>
    Cc: Andi Kleen <andi@firstfloor.org>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Minchan Kim <minchan@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Link: http://lkml.kernel.org/r/20161208144755.16673-6-namhyung@kernel.org
    Link: http://lkml.kernel.org/r/20161213080632.19099-2-namhyung@kernel.org
    [ Merged fix sent by Namhyumg, as posted in the second Link: tag ]
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    07235f84
perf-sched.txt 4.23 KB