perf cs-etm: Generate branch sample for CS_ETM_TRACE_ON packet
authorLeo Yan <leo.yan@linaro.org>
Wed, 11 Jul 2018 07:45:45 +0000 (15:45 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 31 Jul 2018 14:22:50 +0000 (11:22 -0300)
commit14a85b1eca348e00a9f209b522f94ec3ead94acb
tree78c7f3a2378eddc492e0b92deb6e840d6718cd86
parentd603b4e9f9c3181f2dacb989bba60081b99befe4
perf cs-etm: Generate branch sample for CS_ETM_TRACE_ON packet

CS_ETM_TRACE_ON packet itself can give the info that there have a
discontinuity in the trace, this patch is to add branch sample for
CS_ETM_TRACE_ON packet if it is inserted in the middle of CS_ETM_RANGE
packets; as result we can have hint for the trace discontinuity.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kim Phillips <kim.phillips@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Robert Walker <robert.walker@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/1531295145-596-7-git-send-email-leo.yan@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/cs-etm.c