[PATCH 02/10] coresight: trbe: Add a helper to calculate the trace generated