Hello Leguan,
Sorry for my late response.
Currently, there are no software examples and low-level implementations that I could provide you that match your application.
Besides the reference manual, by this point, I´m not sure if you are aware of the NXP´s MCUxpresso guide offers MCUXpresso IDE Instruction Trace Guide.
Chapter 3.3 Embedded Trace Buffer (ETB) provides more details in the ETB, including techniques to configure the buffer, but not for a specific MCU.
I have to mention that the read of the trace data from the ETB is made trough a LinkServer connection I (including many other CMSIS-DAP probes, OpenSDA circuits) during a debug session in MCUXpresso, which
differs from reading the ETB during a task.
About the differences that you notice among the ARM documentation, you are right, since the implementation of ETM and ETB is vendor-specific.
Best regards, Diego.