From: Adrian Hunter Date: Mon, 20 May 2019 11:37:12 +0000 (+0300) Subject: perf tools: Add IPC information to perf_sample X-Git-Tag: v5.3-rc1~162^2~17^2~76 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61d276f428a11f0e4ce5203462fa488e6570684f;p=thirdparty%2Flinux.git 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 Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190520113728.14389-7-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index 9e999550f247c..1f1da60828064 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;