perf db-export: Add trace begin / end branch type variants
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 20 Sep 2018 13:00:44 +0000 (16:00 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 20 Sep 2018 14:10:25 +0000 (11:10 -0300)
commitff645daf30cafb6fa74bee9a73733700bac2aff7
tree01fb6be715bdc73bf76e79d05a4cff4e4a18c5ce
parent62cb1b8868a70c932b15959a98594df537df2ffc
perf db-export: Add trace begin / end branch type variants

Add branch types to cover different combinations with "trace begin" or
"trace end".

Previously, the Intel PT decoder would indicate begin / end by a branch
from / to zero. That hides useful information, in particular when a
trace ends with a call. Before remedying that, prepare the database
export to export branch types with more combinations that include trace
begin / end.  In those cases extend the descriptions to include 'trace
begin' and 'trace end' separately.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20180920130048.31432-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/db-export.c