[PATCH v5 06/12] coresight: etm4x: fix leaked trace id

Leo Yan leo.yan at arm.com
Fri Apr 17 01:41:18 PDT 2026


Hi Jie,

On Fri, Apr 17, 2026 at 09:01:17AM +0800, Jie Gan wrote:

[...]

> ... we still need support static trace ID allocation in parallel for
> the dummy sources and we should not break this logic in future refactor.

Just confirm what is the reason you need to use static trace ID for the
dummy sources?

I am wandering if we could use dev->devt as trace ID for dummy
devices.  Since the device's MAJOR number is non-zero and occupies the
upper bits (see MINORBITS), it is naturally separated from the hardware
trace ID range.  If so, we even don't need to bother ID alloc/release.

Thanks,
Leo



More information about the linux-arm-kernel mailing list