Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1519059

Re: [PATCH 1/2] arm64: perf: Move ARMv8 PMU perf event definitions to asm/perf_event.h

From Mark Rutland <mark.rutland@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] arm64: perf: Move ARMv8 PMU perf event definitions to asm/perf_event.h
Date 2016-11-10 16:40 +0100
Message-ID <sBZCh-83k-3@gated-at.bofh.it> (permalink)
References <sBHcl-3eV-9@gated-at.bofh.it> <sBTGy-3Ex-29@gated-at.bofh.it> <sBZj1-7Uk-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Nov 10, 2016 at 09:12:35AM -0600, Wei Huang wrote:
> On 11/10/2016 03:10 AM, Marc Zyngier wrote:
> > On 09/11/16 19:57, Wei Huang wrote:
> >> diff --git a/arch/arm64/include/asm/perf_event.h b/arch/arm64/include/asm/perf_event.h

> >> +/*
> >> + * ARMv8 PMUv3 Performance Events handling code.
> >> + * Common event types.
> >> + */
> >> +
> >> +/* Required events. */
> >> +#define ARMV8_PMUV3_PERFCTR_SW_INCR				0x00
> >> +#define ARMV8_PMUV3_PERFCTR_L1D_CACHE_REFILL			0x03
> >> +#define ARMV8_PMUV3_PERFCTR_L1D_CACHE				0x04
> >> +#define ARMV8_PMUV3_PERFCTR_BR_MIS_PRED				0x10
> >> +#define ARMV8_PMUV3_PERFCTR_CPU_CYCLES				0x11
> >> +#define ARMV8_PMUV3_PERFCTR_BR_PRED				0x12
> > 
> > In my initial review, I asked for the "required" events to be moved to a
> > shared location. What's the rational for moving absolutely everything?
> 
> I did notice the phrase "required" in the original email. However I
> think it is weird to have two places for a same set of PMU definitions.
> Other developers might think these two are missing if they don't search
> kernel files carefully.
> 
> If Will Deacon and you insist, I can move only two defs to perf_event.h,
> consolidated with the 2nd patch into a single one.

FWIW, my personal preference would be for all the definitions (or at
least all of the ARMV8_PMUV3_* ones) to be in one place.

That said, I don't feel particularly strongly either way, and I'll defer
to Will.

Thanks,
Mark.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] arm64: perf: Move ARMv8 PMU perf event definitions to asm/perf_event.h Wei Huang <wei@redhat.com> - 2016-11-09 21:00 +0100
  [PATCH 2/2] KVM: ARM64: Fix the issues when guest PMCCFILTR is configured Wei Huang <wei@redhat.com> - 2016-11-09 21:00 +0100
  Re: [PATCH 1/2] arm64: perf: Move ARMv8 PMU perf event definitions to  asm/perf_event.h Marc Zyngier <marc.zyngier@arm.com> - 2016-11-10 10:20 +0100
    Re: [PATCH 1/2] arm64: perf: Move ARMv8 PMU perf event definitions to  asm/perf_event.h Wei Huang <wei@redhat.com> - 2016-11-10 16:20 +0100
      Re: [PATCH 1/2] arm64: perf: Move ARMv8 PMU perf event definitions  to asm/perf_event.h Mark Rutland <mark.rutland@arm.com> - 2016-11-10 16:40 +0100
      Re: [PATCH 1/2] arm64: perf: Move ARMv8 PMU perf event definitions to  asm/perf_event.h Marc Zyngier <marc.zyngier@arm.com> - 2016-11-10 16:40 +0100
        Re: [PATCH 1/2] arm64: perf: Move ARMv8 PMU perf event definitions  to asm/perf_event.h Will Deacon <will.deacon@arm.com> - 2016-11-10 18:20 +0100
          Re: [PATCH 1/2] arm64: perf: Move ARMv8 PMU perf event definitions to  asm/perf_event.h Wei Huang <wei@redhat.com> - 2016-11-10 19:20 +0100

csiph-web