]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: Interpret ETMv4 config with ATTR_CFG_GET_FLD()
authorJames Clark <james.clark@linaro.org>
Fri, 28 Nov 2025 11:55:21 +0000 (11:55 +0000)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 22 Dec 2025 15:30:54 +0000 (15:30 +0000)
commitafed86e6e141faa2c7433517c9d91ab4d7d9d443
tree960734bb131a19a0b6ed176a83cb109cfeb213a4
parentb945d3677754dc1031515d9cd1604d0b61bb9fa2
coresight: Interpret ETMv4 config with ATTR_CFG_GET_FLD()

Remove hard coded bitfield extractions and shifts and replace with
ATTR_CFG_GET_FLD().

ETM4_CFG_BIT_BB was defined to give the register bit positions to
userspace, TRCCONFIGR_BB should be used in the kernel so replace it.

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-9-4d319764cc58@linaro.org
drivers/hwtracing/coresight/coresight-etm4x-core.c