coresight: Emit sink ID in the HW_ID packets
authorJames Clark <james.clark@arm.com>
Mon, 22 Jul 2024 10:11:58 +0000 (11:11 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 20 Aug 2024 14:02:38 +0000 (15:02 +0100)
commit487eec8da80aef16229d30429f1b26090b1bf0eb
tree669b69f72f9e82692f4f70e9bc0f7427c90add7c
parentde0029fdde86092c75472c92e56a962f4edee0f6
coresight: Emit sink ID in the HW_ID packets

For Perf to be able to decode when per-sink trace IDs are used, emit the
sink that's being written to for each ETM.

Perf currently errors out if it sees a newer packet version so instead
of bumping it, add a new minor version field. This can be used to
signify new versions that have backwards compatible fields. Considering
this change is only for high core count machines, it doesn't make sense
to make a breaking change for everyone.

Signed-off-by: James Clark <james.clark@arm.com>
Tested-by: Leo Yan <leo.yan@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-17-james.clark@linaro.org
drivers/hwtracing/coresight/coresight-core.c
drivers/hwtracing/coresight/coresight-etm-perf.c
drivers/hwtracing/coresight/coresight-priv.h
include/linux/coresight-pmu.h