]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: Prepare to allow setting the timestamp interval
authorJames Clark <james.clark@linaro.org>
Fri, 28 Nov 2025 11:55:23 +0000 (11:55 +0000)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 22 Dec 2025 15:30:54 +0000 (15:30 +0000)
commitf4d2f5fec06a900214166136d31bdc6fe8ee00d1
tree4110a14c9c86f7c5dafb9896e21da3b512bcee84
parent3285c471d0c0b991e5efc96c1a8bcc9ace17b9b8
coresight: Prepare to allow setting the timestamp interval

Timestamps are currently emitted at the maximum rate possible, which is
much too frequent for most use cases. In the next commit, the timestamp
field will be widened to take a value, so set the interval using the
value now. Granular control is not required, so save space in the config
by interpreting it as 2 ^ timestamp. And then 4 bits (0 - 15) will be
enough to set the interval to be larger than the existing SYNC timestamp
interval.

No sysfs mode support is needed for this attribute because counter
generated timestamps are only configured for Perf mode.

Reviewed-by: Leo Yan <leo.yan@arm.com>
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-11-4d319764cc58@linaro.org
drivers/hwtracing/coresight/coresight-etm4x-core.c