coresight: introducing a global trace ID function
authorMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 18 Feb 2016 00:52:02 +0000 (17:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 22:11:01 +0000 (14:11 -0800)
commit17534ceb835a1a96eb921a2a80df168723d6570a
tree6cbfd344150ab19190bf415ef4c328ccbf9dcf3d
parent0bcbf2e30ff2271b54f54c8697a185f7d86ec6e4
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>
drivers/hwtracing/coresight/coresight-etm3x.c
include/linux/coresight-pmu.h