Messages in this thread | | | Date | Fri, 9 Apr 2021 17:51:56 +0200 | From | Peter Zijlstra <> | Subject | Re: [PATCH V5 21/25] perf: Introduce PERF_TYPE_HARDWARE_PMU and PERF_TYPE_HW_CACHE_PMU |
| |
On Fri, Apr 09, 2021 at 11:24:07AM -0400, Liang, Kan wrote:
> diff --git a/include/uapi/linux/perf_event.h > b/include/uapi/linux/perf_event.h > index ad15e40..7ec80ac9 100644 > --- a/include/uapi/linux/perf_event.h > +++ b/include/uapi/linux/perf_event.h > @@ -38,6 +38,20 @@ enum perf_type_id { > }; > > /* > + * attr.config layout for type PERF_TYPE_HARDWARE and PERF_TYPE_HW_CACHE > + * PERF_TYPE_HARDWARE: 0xEE000000AA > + * AA: hardware event ID > + * EE: PMU type ID > + * PERF_TYPE_HW_CACHE: 0xEE00DDCCBB > + * BB: hardware cache ID > + * CC: hardware cache op ID > + * DD: hardware cache op result ID > + * EE: PMU type ID
it's: 0xEEEEEEEE00DDCCBB and 0xEEEEEEEE000000AA
| |