[PATCH 5.1 073/371] perf cs-etm: Properly set the value of old and head in snapshot mode