Re: [PATCH v3 02/11] perf: add PMU_FORMAT_RANGE() helper for use by sw-like pmus

2014-03-05 Thread Cody P Schafer
On 03/04/2014 12:09 AM, Cody P Schafer wrote: On 03/03/2014 09:19 PM, Michael Ellerman wrote: On Thu, 2014-27-02 at 21:04:55 UTC, Cody P Schafer wrote: Add PMU_FORMAT_RANGE() and PMU_FORMAT_RANGE_RESERVED() (for reserved areas) which generate functions to extract the relevent bits from event->a

Re: [PATCH v3 02/11] perf: add PMU_FORMAT_RANGE() helper for use by sw-like pmus

2014-03-04 Thread Cody P Schafer
On 03/03/2014 09:19 PM, Michael Ellerman wrote: On Thu, 2014-27-02 at 21:04:55 UTC, Cody P Schafer wrote: Add PMU_FORMAT_RANGE() and PMU_FORMAT_RANGE_RESERVED() (for reserved areas) which generate functions to extract the relevent bits from event->attr.config{,1,2} for use by sw-like pmus where

Re: [PATCH v3 02/11] perf: add PMU_FORMAT_RANGE() helper for use by sw-like pmus

2014-03-03 Thread Michael Ellerman
On Thu, 2014-27-02 at 21:04:55 UTC, Cody P Schafer wrote: > Add PMU_FORMAT_RANGE() and PMU_FORMAT_RANGE_RESERVED() (for reserved > areas) which generate functions to extract the relevent bits from > event->attr.config{,1,2} for use by sw-like pmus where the > 'config{,1,2}' values don't map directl

[PATCH v3 02/11] perf: add PMU_FORMAT_RANGE() helper for use by sw-like pmus

2014-02-27 Thread Cody P Schafer
Add PMU_FORMAT_RANGE() and PMU_FORMAT_RANGE_RESERVED() (for reserved areas) which generate functions to extract the relevent bits from event->attr.config{,1,2} for use by sw-like pmus where the 'config{,1,2}' values don't map directly to hardware registers. Signed-off-by: Cody P Schafer --- incl