Re: [PATCH v2 09/27] perf parse-events: Create two hybrid hardware events

2021-03-15 Thread Jin, Yao
Hi Jiri, On 3/16/2021 7:05 AM, Jiri Olsa wrote: On Thu, Mar 11, 2021 at 03:07:24PM +0800, Jin Yao wrote: For hardware events, they have pre-defined configs. The kernel needs to know where the event comes from (e.g. from cpu_core pmu or from cpu_atom pmu). But the perf type 'PERF_TYPE_HARDWARE'

Re: [PATCH v2 09/27] perf parse-events: Create two hybrid hardware events

2021-03-15 Thread Jiri Olsa
On Thu, Mar 11, 2021 at 03:07:24PM +0800, Jin Yao wrote: > For hardware events, they have pre-defined configs. The kernel > needs to know where the event comes from (e.g. from cpu_core pmu > or from cpu_atom pmu). But the perf type 'PERF_TYPE_HARDWARE' > can't carry pmu information. > > So the

Re: [PATCH v2 09/27] perf parse-events: Create two hybrid hardware events

2021-03-15 Thread Jiri Olsa
On Mon, Mar 15, 2021 at 10:04:56AM +0800, Jin, Yao wrote: > Hi Jiri, > > On 3/13/2021 3:15 AM, Jiri Olsa wrote: > > On Thu, Mar 11, 2021 at 03:07:24PM +0800, Jin Yao wrote: > > > > SNIP > > > > >cycles: 4: 800933425 1002536659 1002536659 > > >cycles: 5: 800928573 1002528386 1002528386 >

Re: [PATCH v2 09/27] perf parse-events: Create two hybrid hardware events

2021-03-14 Thread Jin, Yao
Hi Jiri, On 3/13/2021 3:15 AM, Jiri Olsa wrote: On Thu, Mar 11, 2021 at 03:07:24PM +0800, Jin Yao wrote: SNIP cycles: 4: 800933425 1002536659 1002536659 cycles: 5: 800928573 1002528386 1002528386 cycles: 6: 800924347 1002520527 1002520527 cycles: 7: 800922009 1002513176

Re: [PATCH v2 09/27] perf parse-events: Create two hybrid hardware events

2021-03-12 Thread Jiri Olsa
On Thu, Mar 11, 2021 at 03:07:24PM +0800, Jin Yao wrote: SNIP > cycles: 4: 800933425 1002536659 1002536659 > cycles: 5: 800928573 1002528386 1002528386 > cycles: 6: 800924347 1002520527 1002520527 > cycles: 7: 800922009 1002513176 1002513176 > cycles: 8: 800919624 1002507326 1002507326

[PATCH v2 09/27] perf parse-events: Create two hybrid hardware events

2021-03-10 Thread Jin Yao
For hardware events, they have pre-defined configs. The kernel needs to know where the event comes from (e.g. from cpu_core pmu or from cpu_atom pmu). But the perf type 'PERF_TYPE_HARDWARE' can't carry pmu information. So the kernel introduces a new type 'PERF_TYPE_HARDWARE_PMU'. The new