On Mon, Jan 19, 2026 at 03:43:18PM +0000, Coresight ML wrote:
[...]
auxtrace_fragment.auxtrace.idx = etmq->queue_nr;
Indeed, per-thread mode needs to be handled separately.
On the Juno board (6 CPUs), I see "etmq->queue_nr=6". It seems a bit odd that this value is used as the index. Even in per-thread mode, the index is still set to 6. For correctness, should we instead set the index to the CPU ID, and use 0 for per-thread mode?
Sorry I made a mistake.
I messed up "etm->queues.nr_queues" and "etmq->queue_nr". I can confirm that "etmq->queue_nr" stores the CPU ID and 0 for per-thread mode. I verified the patch:
Tested-by: Leo Yan leo.yan@arm.com