coresight: ptm: Adds trace return stack option programming for PTM.
authorMike Leach <mike.leach@linaro.org>
Wed, 2 Aug 2017 16:22:02 +0000 (10:22 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 14:05:48 +0000 (16:05 +0200)
commit557587bede858929eef14c6c2447fe140161bf5a
tree05eaac701ebffe5da5cd5ad0a5745bab773db288
parentb97971bee55dc45420e0fe352d0b4df6e74716d4
coresight: ptm: Adds trace return stack option programming for PTM.

Adds handling to program the return stack option into PTM 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-etm.h
drivers/hwtracing/coresight/coresight-etm3x.c