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