[PATCH v5 4/5] perf cs-etm: Optimize copying last branches