coresight: introducing a global trace ID function
authorMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 18 Feb 2016 00:52:02 +0000 (17:52 -0700)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 1 Jun 2016 21:31:27 +0000 (15:31 -0600)
commitc8ec21bd630e8a56fa811c6542c466b1bdc565ac
treef9006d629298be5bc8410f3ecc050b4e57c57cf0
parentfbeb6125a14d179f9431524d8502af63ef7afe10
coresight: introducing a global trace ID function

TraceID values have to be unique for all tracers and
consistent between drivers and user space.  As such
introducing a central function to be used whenever a
traceID value is required.

The patch also account for data traceIDs, which are usually
I(N) + 1.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 17534ceb835a1a96eb921a2a80df168723d6570a)
drivers/hwtracing/coresight/coresight-etm3x.c
include/linux/coresight-pmu.h