aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.h
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2019-05-20 14:37:12 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-06-05 09:47:55 -0300
commit61d276f428a11f0e4ce5203462fa488e6570684f (patch)
tree0925ed476509d3da6a9c42bd86bb36d76d78fbc7 /tools/perf/util/event.h
parentperf intel-pt: Accumulate cycle count from CYC packets (diff)
downloadlinux-dev-61d276f428a11f0e4ce5203462fa488e6570684f.tar.xz
linux-dev-61d276f428a11f0e4ce5203462fa488e6570684f.zip
perf tools: Add IPC information to perf_sample
Add counts of instructions and cycles, in order to represent instructions-per-cycle (IPC). Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/20190520113728.14389-7-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r--tools/perf/util/event.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
index 9e999550f247..1f1da6082806 100644
--- a/tools/perf/util/event.h
+++ b/tools/perf/util/event.h
@@ -204,6 +204,8 @@ struct perf_sample {
u64 period;
u64 weight;
u64 transaction;
+ u64 insn_cnt;
+ u64 cyc_cnt;
u32 cpu;
u32 raw_size;
u64 data_src;