]> Git Repo - linux.git/commit - tools/perf/Build
perf report: Show random usage tip on the help line
authorNamhyung Kim <[email protected]>
Thu, 7 Jan 2016 11:41:53 +0000 (20:41 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 8 Jan 2016 16:15:46 +0000 (13:15 -0300)
commit14cbfbeb76540cc0c53fbb0ba34b3a4900ebe40f
tree51bc19a46a576c64d784b6c0713eee59c8f73de3
parentfc284be9d88528dd2a28d5471e40a6acde6c3036
perf report: Show random usage tip on the help line

Currently perf report only shows a help message "For a higher level
overview, try: perf report --sort comm,dso" unconditionally (even if
the sort keys were used).  Add more help tips and show randomly.

Load tips from ${prefix}/share/doc/perf-tip/tips.txt file.

  $ perf report | tail
      0.10%  swapper  [kernel.vmlinux]   [k] irq_exit
      0.09%  swapper  [kernel.vmlinux]   [k] flush_smp_call_function_queue
      0.08%  swapper  [kernel.vmlinux]   [k] native_write_msr_safe
      0.03%  swapper  [kernel.vmlinux]   [k] group_sched_in
      0.01%  perf     [kernel.vmlinux]   [k] native_write_msr_safe

  #
  # (Tip: Search options using a keyword: perf report -h <keyword>)
  #

Signed-off-by: Namhyung Kim <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Renamed it to perf_tip() and the parameter dirname to dirpath to fix the build on older distros ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/Build
tools/perf/Documentation/tips.txt [new file with mode: 0644]
tools/perf/Makefile.perf
tools/perf/builtin-report.c
tools/perf/config/Makefile
tools/perf/perf.c
tools/perf/util/util.c
tools/perf/util/util.h
This page took 0.046329 seconds and 4 git commands to generate.