Skip to content

ARM: perf: updates for 3.2

Will Deacon linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ARM: perf: de-const struct arm_pmuarch/arm/kernel/perf_event.c arch/arm/kernel/perf_event_v6.c arch/arm/kernel/perf_event_v7.c +1 more+21 -210 replies
2/10ARM: PMU: move CPU PMU platform device handling and init into perfarch/arm/include/asm/pmu.h arch/arm/kernel/perf_event.c arch/arm/kernel/pmu.c+80 -2140 replies
3/10ARM: perf: use cpumask_t to record active IRQsarch/arm/kernel/perf_event.c+31 -330 replies
4/10ARM: perf: use u32 instead of unsigned long for PMNC registerarch/arm/kernel/perf_event_v7.c+6 -60 replies
5/10ARM: perf: use integers for ARMv7 event indicesarch/arm/kernel/perf_event_v7.c+6 -60 replies
6/10ARM: perf: index ARMv7 event counters starting from zeroarch/arm/kernel/perf_event_v7.c+88 -1510 replies
7/10ARM: perf: index Xscale and ARMv6 event counters starting from zeroarch/arm/kernel/perf_event_v6.c arch/arm/kernel/perf_event_xscale.c+5 -50 replies
8/10ARM: perf: index PMU registers from zeroarch/arm/kernel/perf_event.c+3 -30 replies
9/10ARM: perf: allow armpmu to implement mode exclusionarch/arm/kernel/perf_event.c+25 -190 replies
10/10ARM: perf: add mode exclusion for Cortex-A15 PMUarch/arm/kernel/perf_event_v7.c+49 -91 reply
10/10ARM: perf: add mode exclusion for Cortex-A15 PMU+0 -00 replies

Reviews trailers per patch

None of the 11 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJamie IlesJean Pihet
SeriesA-b R-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] ARM: perf: updates for 3.2

Hello,

This patch series contains a number of updates to the ARM PMU and perf code so that we can support mode exclusion, which is new in debug architecture 7.1 (as implemented by the Cortex-A15). Some of these updates also coincide with work to support System PMUs (PMUs that are not affine to a single CPU) but that is a larger body of work which will be posted separately at a later date.

The patches do the following:

1.) Greatly simplify the PMU reservation mechanism so that the
handling of platform_devices is moved into perf.
2.) Cleans up the interrupt registration and some of the types used
to represent events and registers.
3.) Moves event indexing to start from zero rather than one, making
the code more readable and also easier to extend for mode exclusion.
4.) Adds support for mode exclusion (user / kernel / hyp) and
implements this for Cortex-A15.

I've been running these patches since 3.0, so they've been tested on 1176, 11MPCore, Cortex-A5, Cortex-A9 and Cortex-A15 platforms.

Once again, all feedback is welcome.

Will

Cc Jean Pihet <[email protected]>
Cc Jamie Iles <[email protected]>

Mark Rutland (1):
ARM: perf: de-const struct arm_pmu

Will Deacon (9):
ARM: PMU: move CPU PMU platform device handling and init into perf
ARM: perf: use cpumask_t to record active IRQs
ARM: perf: use u32 instead of unsigned long for PMNC register
ARM: perf: use integers for ARMv7 event indices
ARM: perf: index ARMv7 event counters starting from zero
ARM: perf: index Xscale and ARMv6 event counters starting from zero
ARM: perf: index PMU registers from zero
ARM: perf: allow armpmu to implement mode exclusion
ARM: perf: add mode exclusion for Cortex-A15 PMU

 arch/arm/include/asm/pmu.h          |   39 +---
 arch/arm/kernel/perf_event.c        |  176 ++++++++++++-------
 arch/arm/kernel/perf_event_v6.c     |   16 +-
 arch/arm/kernel/perf_event_v7.c     |  327 ++++++++++++++++-------------------
 arch/arm/kernel/perf_event_xscale.c |   18 +-
 arch/arm/kernel/pmu.c               |  181 +------------------
 6 files changed, 302 insertions(+), 455 deletions(-)