simpleperf: Enable ETM PID tracing when the kernel is running in EL2

When the kernel was booted in EL2, the PID of the traced processes
will be written to the VMIDs instead of the context IDs. This change
detects if this is the case and sets up recording and decoding to
handle it appropriately.

Change-Id: Ia3ccefa97ca4e30d1d37715f7372f570d2999ec0
4 files changed