[PATCH 32/32] perf/stat: revamp error handling for snapshot and per_pkg events

2016-04-28 Thread David Carrillo-Cisneros
A package wide event can return a valid read even if it has not run in a specific cpu, this does not fit well with the assumption that run == 0 is equivalent to a . To fix the problem, this patch defines special error values for val, run and ena (~0ULL), and use them to signal read errors,

[PATCH 32/32] perf/stat: revamp error handling for snapshot and per_pkg events

2016-04-28 Thread David Carrillo-Cisneros
A package wide event can return a valid read even if it has not run in a specific cpu, this does not fit well with the assumption that run == 0 is equivalent to a . To fix the problem, this patch defines special error values for val, run and ena (~0ULL), and use them to signal read errors,