[PATCH v3 00/18] perf cs-etm: Per-thread mode fixes and snapshot wrap support