1. 18 12月, 2018 4 次提交
  2. 06 11月, 2018 1 次提交
    • J
      perf top: Display the LBR stats in callchain entry · 590ac60d
      Jin Yao 提交于
      'perf report' has supported the displaying of LBR stats (such as cycles,
      predicted%) in callchain entry.
      
      For example:
      
        $ perf report --branch-history --stdio
      
        --1.01%--intel_idle mwait.h:29
                  intel_idle cpufeature.h:164 (cycles:5)
                  intel_idle cpufeature.h:164 (predicted:76.4%)
                  intel_idle mwait.h:102 (cycles:41)
                  intel_idle current.h:15
      
      While 'perf top' doesn't support that.
      
      For example:
      
        $ perf top -a -b --call-graph branch
      
        -   13.86%     0.23%  [kernel]		[k] __x86_indirect_thunk_rax
           - 13.65% __x86_indirect_thunk_rax
              + 1.69% do_syscall_64
              + 1.68% do_select
              + 1.41% ktime_get
              + 0.70% __schedule
              + 0.62% do_sys_poll
                0.58% __x86_indirect_thunk_rax
      
      Actually it's very easy to enable this feature in 'perf top'.
      
      With this patch, the result is:
      
        $ perf top -a -b --call-graph branch
      
        $ -   13.58%     0.00%  [kernel]		[k] __x86_indirect_thunk_rax
           $ - 13.57% __x86_indirect_thunk_rax (predicted:93.9%)
              $ + 1.78% do_select (cycles:2)
              $ + 1.68% perf_pmu_disable.part.99 (cycles:1)
              $ + 1.45% ___sys_recvmsg (cycles:25)
              $ + 0.81% unix_stream_sendmsg (cycles:18)
              $ + 0.80% ktime_get (cycles:400)
                $ 0.58% pick_next_task_fair (cycles:47)
              $ + 0.56% i915_request_retire (cycles:2)
              $ + 0.52% do_sys_poll (cycles:4)
      Signed-off-by: NJin Yao <yao.jin@linux.intel.com>
      Tested-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/1540983995-20462-1-git-send-email-yao.jin@linux.intel.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      590ac60d
  3. 31 10月, 2018 2 次提交
  4. 30 10月, 2018 1 次提交
    • A
      perf top: Allow disabling the overwrite mode · 4e303fbe
      Arnaldo Carvalho de Melo 提交于
      In ebebbf08 ("perf top: Switch default mode to overwrite mode") we
      forgot to leave a way to disable that new default, add a --overwrite
      option that can be disabled using --no-overwrite, since the code already
      in such a way that we can readily disable this mode.
      
      This is useful when investigating bugs with this mode like the recent
      report from David Miller where lots of unknown symbols appear due to
      disabling the events while processing them which disables all record
      types, not just PERF_RECORD_SAMPLE, which makes it impossible to resolve
      maps when we lose PERF_RECORD_MMAP records.
      
      This can be easily seen while building a kernel, when there are lots of
      short lived processes.
      Reported-by: NDavid Miller <davem@davemloft.net>
      Acked-by: NKan Liang <kan.liang@intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jin Yao <yao.jin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Wang Nan <wangnan0@huawei.com>
      Fixes: ebebbf08 ("perf top: Switch default mode to overwrite mode")
      Link: https://lkml.kernel.org/n/tip-oqgsz2bq4kgrnnajrafcdhie@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      4e303fbe
  5. 25 7月, 2018 1 次提交
  6. 04 6月, 2018 9 次提交
  7. 18 5月, 2018 1 次提交
  8. 27 4月, 2018 2 次提交
  9. 26 4月, 2018 1 次提交
  10. 21 3月, 2018 1 次提交
  11. 17 3月, 2018 1 次提交
  12. 08 3月, 2018 3 次提交
  13. 05 3月, 2018 2 次提交
  14. 27 2月, 2018 1 次提交
  15. 15 2月, 2018 6 次提交
  16. 27 12月, 2017 1 次提交
  17. 06 12月, 2017 1 次提交
  18. 29 11月, 2017 2 次提交