[PATCH v6 05/15] coresight: trbe: Add a helper to calculate the trace generated