OSDN Git Service

coresight: etm4x: Adds trace return stack option programming for ETMv4.
authorMike Leach <mike.leach@linaro.org>
Wed, 2 Aug 2017 16:22:03 +0000 (10:22 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 14:05:48 +0000 (16:05 +0200)
commit27b8f6673a53a63531922bd4c96623c2b8299cc2
tree29333b70f9c82d9608083e74b754cb8f5b52b2ca
parent557587bede858929eef14c6c2447fe140161bf5a
coresight: etm4x: Adds trace return stack option programming for ETMv4.

Adds handling to program the return stack option into ETMv4 hardware if
specified in the perf command line.

If option is not supported by the hardware then it will be ignored.
This allows capture to move between core/ETM combinations that have the
hardware support to those that do not.

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