Skip to content

RFC perf pmu interface -v2

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest11 patches 44 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11perf, x86: Fix Nehalem PMU quirkarch/x86/kernel/cpu/perf_event_intel.c+1 -10 replies
2/11perf: Fix argument of perf_arch_fetch_caller_regsinclude/linux/perf_event.h+1 -10 replies
3/11perf, sparc64: Fix maybe_change_configuration() PCR setting.arch/sparc/kernel/perf_event.c+1 -00 replies
4/11perf: deconstify struct pmuarch/arm/kernel/perf_event.c arch/powerpc/kernel/perf_event.c arch/powerpc/kernel/perf_event_fsl_emb.c +5 more+38 -380 replies
5/11perf: register pmu implementationsarch/arm/kernel/perf_event.c arch/powerpc/kernel/perf_event.c arch/powerpc/kernel/perf_event_fsl_emb.c +6 more+450 -3955 replies
6/11perf: Unindent labelskernel/perf_event.c+24 -190 replies
7/11perf: Reduce perf_disable() usagearch/powerpc/kernel/perf_event.c arch/powerpc/kernel/perf_event_fsl_emb.c arch/sparc/kernel/perf_event.c +3 more+37 -560 replies
8/11perf: Per PMU disablearch/arm/kernel/perf_event.c arch/powerpc/kernel/perf_event.c arch/powerpc/kernel/perf_event_fsl_emb.c +5 more+99 -822 replies
9/11perf: Default PMU opskernel/perf_event.c+36 -1212 replies
10/11perf: Shrink hw_perf_eventinclude/linux/perf_event.h kernel/perf_event.c+6 -81 reply
11/11perf: Rework the PMU methodsarch/arm/kernel/perf_event.c arch/powerpc/kernel/perf_event.c arch/powerpc/kernel/perf_event_fsl_emb.c +10 more+489 -2933 replies

Reviews trailers per patch

3 of 11 patches have a Reviewed-by or Acked-by.

PatchFrederic Weisbecker
1/11
2/11A-b
3/11
4/11
5/11
6/11
7/11
8/11
9/11
10/11A-b
11/11A-b

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

Read the v1 thread

Cover letter [RFC][PATCH 00/11] perf pmu interface -v2

These patches prepare the perf code for multiple pmus (no user interface yet, Lin Ming is working on that). These patches remove all weak functions and rework the struct pmu interface.

The patches are boot tested on x86_64 and compile tested on: powerpc (!fsl, what config is that?), sparc and arm (sorry no SH compiler)

On x86 perf stat and record with both software and hardware events still worked.

I changed all (hardware) pmu implementations so there's a fair chance I messed something up, please have a look at it.

If people agree with this, I'll continue with the per-pmu context stuff I talked about last time, which should get us the hardware write batching back.