summaryrefslogtreecommitdiff
path: root/drivers/hwtracing/coresight/Makefile
diff options
context:
space:
mode:
authorMike Leach <mike.leach@linaro.org>2023-01-16 15:49:14 +0300
committerSuzuki K Poulose <suzuki.poulose@arm.com>2023-01-19 13:16:46 +0300
commit338a588e9db3c5ea7a35bb332cb3bdb532fd1f08 (patch)
tree2fd20657d99c0259094533840ee49082b75c568c /drivers/hwtracing/coresight/Makefile
parent3f3047493b4dc68165505f22cce1af6cc4d36643 (diff)
downloadlinux-338a588e9db3c5ea7a35bb332cb3bdb532fd1f08.tar.xz
coresight: trace-id: Add API to dynamically assign Trace ID values
The existing mechanism to assign Trace ID values to sources is limited and does not scale for larger multicore / multi trace source systems. The API introduces functions that reserve IDs based on availabilty represented by a coresight_trace_id_map structure. This records the used and free IDs in a bitmap. CPU bound sources such as ETMs use the coresight_trace_id_get_cpu_id coresight_trace_id_put_cpu_id pair of functions. The API will record the ID associated with the CPU. This ensures that the same ID will be re-used while perf events are active on the CPU. The put_cpu_id function will pend release of the ID until all perf cs_etm sessions are complete. For backward compatibility the functions will attempt to use the same CPU IDs as the legacy system would have used if these are still available. Non-cpu sources, such as the STM can use coresight_trace_id_get_system_id / coresight_trace_id_put_system_id. Signed-off-by: Mike Leach <mike.leach@linaro.org> [ Fix checkpatch warning in drivers/hwtracing/coresight/coresight-trace-id.c ] Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/20230116124928.5440-2-mike.leach@linaro.org
Diffstat (limited to 'drivers/hwtracing/coresight/Makefile')
-rw-r--r--drivers/hwtracing/coresight/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/coresight/Makefile b/drivers/hwtracing/coresight/Makefile
index 344dba8d6ff8..80f99d915bc9 100644
--- a/drivers/hwtracing/coresight/Makefile
+++ b/drivers/hwtracing/coresight/Makefile
@@ -6,7 +6,7 @@ obj-$(CONFIG_CORESIGHT) += coresight.o
coresight-y := coresight-core.o coresight-etm-perf.o coresight-platform.o \
coresight-sysfs.o coresight-syscfg.o coresight-config.o \
coresight-cfg-preload.o coresight-cfg-afdo.o \
- coresight-syscfg-configfs.o
+ coresight-syscfg-configfs.o coresight-trace-id.o
obj-$(CONFIG_CORESIGHT_LINK_AND_SINK_TMC) += coresight-tmc.o
coresight-tmc-y := coresight-tmc-core.o coresight-tmc-etf.o \
coresight-tmc-etr.o