[PATCH 05/11] perf stat: Avoid skew when reading events

2016-08-09 Thread Arnaldo Carvalho de Melo
From: Mark Rutland When we don't have a tracee (i.e. we're attaching to a task or CPU), counters can still be running after our workload finishes, and can still be running as we read their values. As we read events one-by-one, there can be arbitrary skew between values of

[PATCH 05/11] perf stat: Avoid skew when reading events

2016-08-09 Thread Arnaldo Carvalho de Melo
From: Mark Rutland When we don't have a tracee (i.e. we're attaching to a task or CPU), counters can still be running after our workload finishes, and can still be running as we read their values. As we read events one-by-one, there can be arbitrary skew between values of events, even within a