perf evsel: Add support for synthesized branch stack sample type
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 29 Apr 2020 15:07:47 +0000 (18:07 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 May 2020 19:35:29 +0000 (16:35 -0300)
commit6cd2cbfc6865589c64ac37ec48937e93725622f1
treea2cfc23c8b8a61cb7d5dee2becd61e89eebd678c
parentec90e42ce5142c4ed2a0061fe23bd4495428c52b
perf evsel: Add support for synthesized branch stack sample type

Allow for a synthesized branch stack to be added to samples. As with
synthesized call chains, the sample type cannot be changed because it is
needed to continue to parse events. So add and use helper function
evsel__has_br_stack() to indicate a branch stack, whether original or
synthesized.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lore.kernel.org/lkml/20200429150751.12570-6-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.h
tools/perf/util/session.c