Skip to content

ARM: perf: split up perf_event.c by architecture

Will Deacon linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ARM: perf: consolidate common PMU behaviourarch/arm/kernel/perf_event.c+38 -932 replies
1/5ARM: perf: consolidate common PMU behaviour+0 -00 replies
2/5ARM: perf: avoid exposing internal stop function for v6 PMUarch/arm/kernel/perf_event.c+1 -11 reply
2/5ARM: perf: avoid exposing internal stop function for v6 PMU+0 -00 replies
3/5ARM: perf: add _init() functions to PMUsarch/arm/kernel/perf_event.c+45 -202 replies
4/5ARM: perf: encode PMU name in arm_pmu structurearch/arm/kernel/perf_event.c+8 -112 replies
5/5ARM: perf: separate PMU backends into multiple filesarch/arm/kernel/perf_event.c arch/arm/kernel/perf_event_v6.c arch/arm/kernel/perf_event_v7.c +1 more+2394 -23521 reply
5/5ARM: perf: separate PMU backends into multiple files+0 -00 replies

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchJamie IlesJean Pihet
1/5A-b A-b
1/5A-b A-b
2/5A-b
2/5A-b
3/5A-b A-b
4/5A-b A-b
5/5
5/5

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 0/5] ARM: perf: split up perf_event.c by architecture

Jean - is this a sensible email address to contact you with? Your old
mvista one has stopped working.

Our perf_event.c is becoming rather cumbersome as more PMUs are added. I know of at least two more (v7-based) PMUs that will be added in the coming months which will push this file to the ~4KLOC region.

Since most updates to this file are to do with changes to the generic Linux perf API, let's do what x86 does and split out the separate PMU implementations into their own files. I've chosen to split it by architecture revision: xscale, v6 and v7. Since the v7 PMU registers are architected, this means that new v7 implementations just need to describe their event mappings.

Comments welcome.

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

Will Deacon (5):
ARM: perf: consolidate common PMU behaviour
ARM: perf: avoid exposing internal stop function for v6 PMU
ARM: perf: add _init() functions to PMUs
ARM: perf: encode PMU name in arm_pmu structure
ARM: perf: separate PMU backends into multiple files

 arch/arm/kernel/perf_event.c        | 2448 +----------------------------------
 arch/arm/kernel/perf_event_v6.c     |  674 ++++++++++
 arch/arm/kernel/perf_event_v7.c     |  906 +++++++++++++
 arch/arm/kernel/perf_event_xscale.c |  809 ++++++++++++
 4 files changed, 2423 insertions(+), 2414 deletions(-)
 create mode 100644 arch/arm/kernel/perf_event_v6.c
 create mode 100644 arch/arm/kernel/perf_event_v7.c
 create mode 100644 arch/arm/kernel/perf_event_xscale.c