Skip to content

Commit 61d276f

Browse files
ahunter6acmel
authored andcommitted
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>
1 parent 7b4b4f8 commit 61d276f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/perf/util/event.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ struct perf_sample {
204204
u64 period;
205205
u64 weight;
206206
u64 transaction;
207+
u64 insn_cnt;
208+
u64 cyc_cnt;
207209
u32 cpu;
208210
u32 raw_size;
209211
u64 data_src;

0 commit comments

Comments
 (0)