Re: [PATCH 3/4] perf: Add 'update' parameter to perf_event_read_value()

2015-03-16 Thread Peter Zijlstra
On Wed, Mar 04, 2015 at 12:35:07AM -0800, Sukadev Bhattiprolu wrote: > extern u64 perf_event_read_value(struct perf_event *event, > - u64 *enabled, u64 *running); > + u64 *enabled, u64 *running, int update); > I think someone recently s

[PATCH 3/4] perf: Add 'update' parameter to perf_event_read_value()

2015-03-04 Thread Sukadev Bhattiprolu
perf_event_read_value() reads the counter from the PMC and computes the total count (including child events). Add an 'update' parameter and have it read the PMC only if 'update' parameter is TRUE (which it always is for now). When we add support for reading multiple events using the transaction int