]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: Define format attributes with GEN_PMU_FORMAT_ATTR()
authorJames Clark <james.clark@linaro.org>
Fri, 28 Nov 2025 11:55:17 +0000 (11:55 +0000)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 22 Dec 2025 15:30:53 +0000 (15:30 +0000)
commit458db6257149f3959469c880de80eba3e2494479
treea4c97aee45a30005873a8acf7116c577657c9992
parent20bc2ea23774a7655d21ce2243eccfdfd4405279
coresight: Define format attributes with GEN_PMU_FORMAT_ATTR()

This allows us to define and consume them in a unified way in later
commits.

A lot of the existing code has open coded bit shifts or direct usage of
whole config values which is error prone and hides which bits are in use
and which are free.

Reviewed-by: Leo Yan <leo.yan@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/20251128-james-cs-syncfreq-v8-5-4d319764cc58@linaro.org
drivers/hwtracing/coresight/coresight-etm-perf.c
drivers/hwtracing/coresight/coresight-etm-perf.h