coresight: Expose map arguments in trace ID API
authorJames Clark <james.clark@arm.com>
Mon, 22 Jul 2024 10:11:54 +0000 (11:11 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 20 Aug 2024 14:02:38 +0000 (15:02 +0100)
commit7e52877868ae2546ead8ba07cdf1d3e4c9e931f7
tree2a7563855fc7cf90e35cf71899623182559a694b
parentacb0184fe9bca3bb7103dadc76ba9d38c969ca86
coresight: Expose map arguments in trace ID API

The trace ID API is currently hard coded to always use the global map.
Add public versions that allow the map to be passed in so that Perf
mode can use per-sink maps. Keep the non-map versions so that sysfs
mode can continue to use the default global map.

System ID functions are unchanged because they will always use the
default map.

Signed-off-by: James Clark <james.clark@arm.com>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Tested-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: James Clark <james.clark@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20240722101202.26915-13-james.clark@linaro.org
drivers/hwtracing/coresight/coresight-trace-id.c
drivers/hwtracing/coresight/coresight-trace-id.h