Re: [PATCH] perf/x86/intel: Fix n_metric for the canceled group

2020-10-02 Thread Kim Phillips
On 10/2/20 8:16 AM, Liang, Kan wrote: > On 10/2/2020 7:02 AM, Peter Zijlstra wrote: >> On Wed, Sep 30, 2020 at 07:29:35AM -0700, kan.li...@linux.intel.com wrote: >>> From: Kan Liang >>> >>> When a group that has TopDown members is failed to be scheduled, any >>> later TopDown groups will not

Re: [PATCH] perf/x86/intel: Fix n_metric for the canceled group

2020-10-02 Thread Liang, Kan
On 10/2/2020 7:02 AM, Peter Zijlstra wrote: On Wed, Sep 30, 2020 at 07:29:35AM -0700, kan.li...@linux.intel.com wrote: From: Kan Liang When a group that has TopDown members is failed to be scheduled, any later TopDown groups will not return valid values. Here is an example. A background

Re: [PATCH] perf/x86/intel: Fix n_metric for the canceled group

2020-10-02 Thread Peter Zijlstra
On Wed, Sep 30, 2020 at 07:29:35AM -0700, kan.li...@linux.intel.com wrote: > From: Kan Liang > > When a group that has TopDown members is failed to be scheduled, any > later TopDown groups will not return valid values. > > Here is an example. > > A background perf that occupies all the GP

[PATCH] perf/x86/intel: Fix n_metric for the canceled group

2020-09-30 Thread kan . liang
From: Kan Liang When a group that has TopDown members is failed to be scheduled, any later TopDown groups will not return valid values. Here is an example. A background perf that occupies all the GP counters and the fixed counter 1. $perf stat -e