Skip to content

Commit bf49390

Browse files
ahunter6acmel
authored andcommitted
perf tools: 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> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1406786474-9306-22-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent cfe1c41 commit bf49390

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tools/perf/util/event.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ struct perf_sample {
156156
u32 cpu;
157157
u32 raw_size;
158158
u64 data_src;
159+
u32 flags;
160+
u16 insn_len;
159161
void *raw_data;
160162
struct ip_callchain *callchain;
161163
struct branch_stack *branch_stack;

0 commit comments

Comments
 (0)