summaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/coresight/coresight-etm4x.h
diff options
context:
space:
mode:
authorMike Leach2017-01-23 18:41:23 +0100
committerGreg Kroah-Hartman2017-01-25 11:46:42 +0100
commitae3fabcda00de54029b5342a3d6d82d65e7c4e6b (patch)
tree4e9fb58499f1562e82921c486b784421b2458039 /drivers/hwtracing/coresight/coresight-etm4x.h
parentcoresight: fix kernel panic caused by invalid CPU (diff)
downloadkernel-qcow2-linux-ae3fabcda00de54029b5342a3d6d82d65e7c4e6b.tar.gz
kernel-qcow2-linux-ae3fabcda00de54029b5342a3d6d82d65e7c4e6b.tar.xz
kernel-qcow2-linux-ae3fabcda00de54029b5342a3d6d82d65e7c4e6b.zip
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>
Diffstat (limited to 'drivers/hwtracing/coresight/coresight-etm4x.h')
-rw-r--r--drivers/hwtracing/coresight/coresight-etm4x.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwtracing/coresight/coresight-etm4x.h b/drivers/hwtracing/coresight/coresight-etm4x.h
index ba8d3f86de21..b3b5ea7b7fb3 100644
--- a/drivers/hwtracing/coresight/coresight-etm4x.h
+++ b/drivers/hwtracing/coresight/coresight-etm4x.h
@@ -146,6 +146,7 @@
#define ETM_ARCH_V4 0x40
#define ETMv4_SYNC_MASK 0x1F
#define ETM_CYC_THRESHOLD_MASK 0xFFF
+#define ETM_CYC_THRESHOLD_DEFAULT 0x100
#define ETMv4_EVENT_MASK 0xFF
#define ETM_CNTR_MAX_VAL 0xFFFF
#define ETM_TRACEID_MASK 0x3f