[PATCH 03/25] perf intel-pt: Fix potential loop forever

2015-09-25 Thread Adrian Hunter
TSC packets contain only 7 bytes of TSC. The 8th byte is assumed to change so infrequently that its value can be inferred. However the logic must cater for a 7 byte wraparound, which it does by adding 1 to the top byte. The existing code was doing that with a while loop even though the addition

[PATCH 03/25] perf intel-pt: Fix potential loop forever

2015-09-25 Thread Adrian Hunter
TSC packets contain only 7 bytes of TSC. The 8th byte is assumed to change so infrequently that its value can be inferred. However the logic must cater for a 7 byte wraparound, which it does by adding 1 to the top byte. The existing code was doing that with a while loop even though the addition