]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitba30e7a3ec49960300f0bbad6073b6a4ce96d5a7
tree4e9fb58499f1562e82921c486b784421b2458039
parentd484ef216170d6d5d8840c2f8ff08af7136c282a
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