| From | Adrian Hunter <> | Subject | [PATCH 35/52] perf tools: Add flags and insn_len to struct sample | Date | Tue, 22 Jul 2014 16:17:44 +0300 |
| |
Add flags and insn_len to struct sample. The flags will be used to export branch type and transaction status. insn_len is preparation for pairing calls and returns because the return address equals the call address plus the instruction length (insn_len).
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> --- tools/perf/util/event.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index b8e5d1a..17048f7 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h @@ -182,6 +182,8 @@ struct perf_sample { u32 cpu; u32 raw_size; u64 data_src; + u32 flags; + u16 insn_len; void *raw_data; struct ip_callchain *callchain; struct branch_stack *branch_stack; -- 1.8.3.2
|