[PATCH v2 0/4] arm_pmu: Add PERF_PMU_CAP_EXTENDED_HW_TYPE capability

James Clark posted 4 patches 2 years, 6 months ago
arch/x86/events/core.c     |  1 -
drivers/perf/arm_pmu.c     | 10 ++++++----
include/linux/perf_event.h |  7 +++----
3 files changed, 9 insertions(+), 9 deletions(-)
[PATCH v2 0/4] arm_pmu: Add PERF_PMU_CAP_EXTENDED_HW_TYPE capability
Posted by James Clark 2 years, 6 months ago
Changes since v1:

  * Removed "legacy" description of PERF_TYPE_HARDWARE and
    PERF_TYPE_HW_CACHE events
  * Shift down remaining capability bits instead of inserting
    /* Unused */ in the gap (last commit)

Applies to v6.5-rc3

---------------------

This came out of the discussion here [1]. It seems like we can get some
extra big.LITTLE stuff working pretty easily. The test issues mentioned
in the linked thread are actually fairly unrelated and I've fixed them
in a different set on the list.

After adding it in the first commit, the remaining ones tidy up a
related capability that doesn't do anything any more.

I've added a fixes tag for the commit where
PERF_PMU_CAP_EXTENDED_HW_TYPE was originally added because it probably
should have been added to the Arm PMU at the same time. It doesn't apply
cleanly that far back because another capability was added between then,
but the resolution is trivial.

Thanks
James

[1]: https://lore.kernel.org/linux-perf-users/CAP-5=fVkRc9=ySJ=fG-SQ8oAKmE_1mhHHzSASmGHUsda5Qy92A@mail.gmail.com/T/#t

James Clark (4):
  arm_pmu: Add PERF_PMU_CAP_EXTENDED_HW_TYPE capability
  perf/x86: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability
  arm_pmu: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability
  perf: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability

 arch/x86/events/core.c     |  1 -
 drivers/perf/arm_pmu.c     | 10 ++++++----
 include/linux/perf_event.h |  7 +++----
 3 files changed, 9 insertions(+), 9 deletions(-)

-- 
2.34.1
Re: [PATCH v2 0/4] arm_pmu: Add PERF_PMU_CAP_EXTENDED_HW_TYPE capability
Posted by Peter Zijlstra 2 years, 6 months ago
On Mon, Jul 24, 2023 at 02:44:55PM +0100, James Clark wrote:

> James Clark (4):
>   arm_pmu: Add PERF_PMU_CAP_EXTENDED_HW_TYPE capability
>   perf/x86: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability
>   arm_pmu: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability
>   perf: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability
> 
>  arch/x86/events/core.c     |  1 -
>  drivers/perf/arm_pmu.c     | 10 ++++++----
>  include/linux/perf_event.h |  7 +++----
>  3 files changed, 9 insertions(+), 9 deletions(-)

Thanks!
Re: [PATCH v2 0/4] arm_pmu: Add PERF_PMU_CAP_EXTENDED_HW_TYPE capability
Posted by Mark Rutland 2 years, 6 months ago
On Tue, Jul 25, 2023 at 02:10:23PM +0200, Peter Zijlstra wrote:
> On Mon, Jul 24, 2023 at 02:44:55PM +0100, James Clark wrote:
> 
> > James Clark (4):
> >   arm_pmu: Add PERF_PMU_CAP_EXTENDED_HW_TYPE capability
> >   perf/x86: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability
> >   arm_pmu: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability
> >   perf: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability
> > 
> >  arch/x86/events/core.c     |  1 -
> >  drivers/perf/arm_pmu.c     | 10 ++++++----
> >  include/linux/perf_event.h |  7 +++----
> >  3 files changed, 9 insertions(+), 9 deletions(-)
> 
> Thanks!

Ah, I see that you've queued that in your perf/core branch in your queue tree.

Given that, I assume you don't need anything from me or from Will, but just in
case, for the series:

Acked-by: Mark Rutland <mark.rutland@arm.com>

Mark.