linux_dsm_epyc7002/tools/perf
Andi Kleen f8f4aaead5 perf annotate: Finally display IPC and cycle accounting
Add two new columns to the annotate display and display the average
cycles and the compute IPC if available.

When the LBR was not in any branch mode the IPC computation is
automatically disabled. We still display the cycle information.

Example output (with made up numbers):

The second column is the IPC and third average cycles.

                 │    __attribute__((noinline)) f2()
                 │    {
  5.15  0.07     │       push   %rbp
  0.01  0.07     │       mov    %rsp,%rbp
                 │            c = a / b;
  9.87  0.07     │       mov    a,%eax
        0.07     │       mov    b,%ecx
        0.07     │       cltd
  4.92  0.07  123│       idiv   %ecx
 70.79  0.07     │       mov    %eax,__TMC_END__
                 │    }
  9.25  0.07     │       pop    %rbp
  0.01  0.07  123│     ← retq

v2: Fix display problems.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1437233094-12844-7-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-08-06 16:37:22 -03:00
..
arch perf tools: Add empty Build files for architectures lacking them 2015-08-06 16:24:15 -03:00
bench
config Merge branch 'perf/urgent' into perf/core, to merge fixes before pulling more changes 2015-07-31 09:59:28 +02:00
Documentation perf tools: Add support for cycles, weight branch_info field 2015-08-06 16:29:45 -03:00
python perf python: Make twatch.py use soft dummy event, freq=0 2015-07-29 10:51:45 -03:00
scripts
tests perf tests: Adding build test for having ending double slash 2015-07-30 12:23:08 -03:00
trace/strace/groups
ui perf annotate: Finally display IPC and cycle accounting 2015-08-06 16:37:22 -03:00
util perf annotate: Compute IPC and basic block cycles 2015-08-06 16:36:12 -03:00
.gitignore
Build
builtin-annotate.c perf report: Add infrastructure for a cycles histogram 2015-08-06 16:32:45 -03:00
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-data.c
builtin-diff.c
builtin-evlist.c
builtin-help.c
builtin-inject.c perf tools: Add new PERF_RECORD_SWITCH event 2015-07-23 22:51:13 -03:00
builtin-kmem.c
builtin-kvm.c
builtin-list.c
builtin-lock.c
builtin-mem.c
builtin-probe.c
builtin-record.c perf tools: Refine parse/config callchain functions 2015-08-05 16:42:11 -03:00
builtin-report.c perf report: Add processing for cycle histograms 2015-08-06 16:35:30 -03:00
builtin-sched.c
builtin-script.c perf script: No tracepoints? Don't call libtraceevent. 2015-08-04 12:28:10 -03:00
builtin-stat.c perf stat: Move counter processing code into stat object 2015-08-06 16:08:16 -03:00
builtin-timechart.c
builtin-top.c
builtin-trace.c perf trace: Add total time column to summary. 2015-08-06 11:29:49 -03:00
builtin.h
command-list.txt
CREDITS
design.txt
Makefile
Makefile.perf
MANIFEST
perf-archive.sh
perf-completion.sh
perf-read-vdso.c
perf-sys.h
perf-with-kcore.sh
perf.c
perf.h perf tools: Introduce callgraph_set for callgraph option 2015-07-29 16:18:45 -03:00