linux_dsm_epyc7002/tools/perf/ui
Jiri Olsa 96c47f1984 perf diff: Add option to sort entries based on diff computation
Adding support to sort hist entries based on the outcome of selected
computation. It's now possible to specify '+' as a first character of
'-c' option value to make such sort.

Example:

  $ perf diff -c ratio -b
  # Event 'cache-misses'
  #
  #   Baseline           Ratio      Shared Object                            Symbol
  #   ........  ..............  .................  ................................
  #
        19.64%            0.69  [kernel.kallsyms]  [k] clear_page
         0.30%            0.17  [kernel.kallsyms]  [k] mm_alloc
         0.04%            0.20  [kernel.kallsyms]  [k] kmem_cache_alloc

  $ perf diff -c +ratio -b
  # Event 'cache-misses'
  #
  #   Baseline           Ratio      Shared Object                            Symbol
  #   ........  ..............  .................  ................................
  #
        19.64%            0.69  [kernel.kallsyms]  [k] clear_page
         0.04%            0.20  [kernel.kallsyms]  [k] kmem_cache_alloc
         0.30%            0.17  [kernel.kallsyms]  [k] mm_alloc

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1349448287-18919-4-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-10-05 14:08:54 -03:00
..
browsers perf hists: Introduce struct he_stat 2012-10-04 13:34:22 -03:00
gtk perf hists: Introduce struct he_stat 2012-10-04 13:34:22 -03:00
stdio perf hists: Introduce struct he_stat 2012-10-04 13:34:22 -03:00
tui perf tools: Use __maybe_used for unused variables 2012-09-11 12:19:15 -03:00
browser.c perf tools: Use __maybe_used for unused variables 2012-09-11 12:19:15 -03:00
browser.h perf annotate browser: Read perf config file for settings 2012-05-29 22:06:30 -03:00
helpline.c perf tools: Use __maybe_used for unused variables 2012-09-11 12:19:15 -03:00
helpline.h perf tools: Convert to GTK2_SUPPORT 2012-10-02 18:36:23 -03:00
hist.c perf diff: Add option to sort entries based on diff computation 2012-10-05 14:08:54 -03:00
keysyms.h perf tools: Move UI bits to tools/perf/ui directory 2012-04-11 17:16:40 -03:00
libslang.h perf tools: Move UI bits to tools/perf/ui directory 2012-04-11 17:16:40 -03:00
progress.c perf tools: Move UI bits to tools/perf/ui directory 2012-04-11 17:16:40 -03:00
progress.h perf tools: Move UI bits to tools/perf/ui directory 2012-04-11 17:16:40 -03:00
setup.c perf tool: Add hpp interface to enable/disable hpp column 2012-10-04 13:30:27 -03:00
ui.h perf tools: Move UI bits to tools/perf/ui directory 2012-04-11 17:16:40 -03:00
util.c perf ui: Introduce struct perf_error_ops 2012-06-19 13:06:18 -03:00
util.h perf ui: Introduce struct perf_error_ops 2012-06-19 13:06:18 -03:00