diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2019-05-20 07:37:12 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-06-05 08:47:55 -0400 |
commit | 61d276f428a11f0e4ce5203462fa488e6570684f (patch) | |
tree | 0925ed476509d3da6a9c42bd86bb36d76d78fbc7 | |
parent | 7b4b4f83881e11b1fe5d8743953f81addb0871de (diff) |
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>
-rw-r--r-- | tools/perf/util/event.h | 2 |
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 { | |||
204 | u64 period; | 204 | u64 period; |
205 | u64 weight; | 205 | u64 weight; |
206 | u64 transaction; | 206 | u64 transaction; |
207 | u64 insn_cnt; | ||
208 | u64 cyc_cnt; | ||
207 | u32 cpu; | 209 | u32 cpu; |
208 | u32 raw_size; | 210 | u32 raw_size; |
209 | u64 data_src; | 211 | u64 data_src; |