coresight: etm4x: Fix enabling of cycle accurate tracing in perf.
authorMike Leach <mike.leach@linaro.org>
Mon, 23 Jan 2017 17:41:23 +0000 (10:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2017 10:46:42 +0000 (11:46 +0100)
commitae3fabcda00de54029b5342a3d6d82d65e7c4e6b
tree4e9fb58499f1562e82921c486b784421b2458039
parentf09444639099584bc4784dfcd85ada67c6f33e0f
coresight: etm4x: Fix enabling of cycle accurate tracing in perf.

Using perf record 'cyclacc' option in cs_etm event was not setting up cycle
accurate trace correctly.

Corrects bit set in TRCCONFIGR to enable cycle accurate trace.
Programs TRCCCCTLR with a valid threshold value as required by ETMv4 spec.

Signed-off-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm4x.c
drivers/hwtracing/coresight/coresight-etm4x.h