Re: [PATCH v2 5/5] powerpc/perf/hv-24x7: Use PMU_TXN_READ interface

2015-04-08 Thread Peter Zijlstra
On Tue, Apr 07, 2015 at 05:34:59PM -0700, Sukadev Bhattiprolu wrote: > @@ -1213,9 +1221,47 @@ static void update_event_count(struct perf_event > *event, u64 now) > static void h_24x7_event_read(struct perf_event *event) > { > u64 now; > + struct h_24x7_hw *h24x7hw; > + struct hv_24

[PATCH v2 5/5] powerpc/perf/hv-24x7: Use PMU_TXN_READ interface

2015-04-07 Thread Sukadev Bhattiprolu
The 24x7 counters in Powerpc allow monitoring a large number of counters simultaneously. They also allow reading several counters in a single HCALL so we can get a more consistent snapshot of the system. Use the PMU's transaction interface to monitor and read several event counters at once. The id