Using perf inject to transform ETM traces into branch events