]> www.infradead.org Git - users/jedix/linux-maple.git/commit
coresight: Remove pending trace ID release mechanism
authorJames Clark <james.clark@arm.com>
Mon, 22 Jul 2024 10:11:57 +0000 (11:11 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 20 Aug 2024 14:02:38 +0000 (15:02 +0100)
commitde0029fdde86092c75472c92e56a962f4edee0f6
treea73207d94509a16793fb234c5015c8e8357143fd
parent5ad628a7617607baac53745f8025638b967470a2
coresight: Remove pending trace ID release mechanism

Pending the release of IDs was a way of managing concurrent sysfs and
Perf sessions in a single global ID map. Perf may have finished while
sysfs hadn't, and Perf shouldn't release the IDs in use by sysfs and
vice versa.

Now that Perf uses its own exclusive ID maps, pending release doesn't
result in any different behavior than just releasing all IDs when the
last Perf session finishes. As part of the per-sink trace ID change, we
would have still had to make the pending mechanism work on a per-sink
basis, due to the overlapping ID allocations, so instead of making that
more complicated, just remove it.

Signed-off-by: James Clark <james.clark@arm.com>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
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-16-james.clark@linaro.org
drivers/hwtracing/coresight/coresight-etm-perf.c
drivers/hwtracing/coresight/coresight-trace-id.c
drivers/hwtracing/coresight/coresight-trace-id.h
include/linux/coresight.h