coresight: config: Add preloaded configurations
authorMike Leach <mike.leach@linaro.org>
Wed, 18 Aug 2021 19:40:19 +0000 (13:40 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Aug 2021 20:33:28 +0000 (22:33 +0200)
commit7fdc9bb2ce113c5318fdacbb717897fede81949d
treefef93a47a41169ac91ab943966d075d20fa0b60e
parent810ac401db1fe432020d7936a199591000de8279
coresight: config: Add preloaded configurations

Preload set of configurations.

This patch creates a small set of preloaded configurations and features
that are available immediately after coresight has been initialised.

The current set provides a strobing feature for ETMv4, that creates a
periodic sampling of trace by switching trace generation on and off
using counters in the ETM.

A configuration called "autofdo" is also provided that uses the 'strobing'
feature and provides a couple of preset values, selectable on the perf
command line.

Link: https://lore.kernel.org/r/20210723165444.1048-9-mike.leach@linaro.org
Signed-off-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20210818194022.379573-9-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/Makefile
drivers/hwtracing/coresight/coresight-cfg-afdo.c [new file with mode: 0644]
drivers/hwtracing/coresight/coresight-cfg-preload.c [new file with mode: 0644]
drivers/hwtracing/coresight/coresight-cfg-preload.h [new file with mode: 0644]
drivers/hwtracing/coresight/coresight-etm4x-cfg.h
drivers/hwtracing/coresight/coresight-syscfg.c
drivers/hwtracing/coresight/coresight-syscfg.h