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