coresight: perf: traceid: Add perf ID allocation and notifiers
authorMike Leach <mike.leach@linaro.org>
Mon, 16 Jan 2023 12:49:16 +0000 (12:49 +0000)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 19 Jan 2023 10:16:47 +0000 (10:16 +0000)
commit4ff1fdb4125c4e500dcbb8bf3826bb65f7a79429
tree305c0de84045e85f8f3d0614beed75989628f345
parentbdeb62a386bed6df4f13c4592263158e004c64b4
coresight: perf: traceid: Add perf ID allocation and notifiers

Adds in calls to allocate and release Trace ID for the CPUs in use
by the perf session.

Adds in notifier calls to the trace ID allocator that perf
events are starting and stopping.

This ensures that Trace IDs associated with CPUs remain the same
throughout the perf session, and are only released when all perf
sessions are complete.

Signed-off-by: Mike Leach <mike.leach@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230116124928.5440-4-mike.leach@linaro.org
drivers/hwtracing/coresight/coresight-etm-perf.c