Skip to content

perf: oprofile spring cleanup

Marc Zyngier kvm kvmarm linux-arm-kernel linux-s390 linux-sh lkml 1 version Applied

Status from this message: Applied to kvm-arm64/kill_oprofile_dependency, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 12 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5KVM: arm64: Divorce the perf code from oprofile helpersarch/arm64/kvm/perf.c arch/arm64/kvm/pmu-emul.c include/kvm/arm_pmu.h+6 -75 replies
2/5arm64: Get rid of oprofile leftoversdrivers/perf/arm_pmu.c+0 -301 reply
3/5s390: Get rid of oprofile leftoversarch/s390/kernel/perf_event.c+0 -213 replies
4/5sh: Get rid of oprofile leftoversarch/sh/kernel/perf_event.c+0 -181 reply
5/5perf: Get rid of oprofile leftoversinclude/linux/perf_event.h kernel/events/core.c+0 -71 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchGeert UytterhoevenHeiko CarstensWill Deacon
1/5A-b
2/5A-b
3/5A-b
4/5R-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/5] perf: oprofile spring cleanup

This small series builds on top of the work that was started with [1].

It recently became apparent that KVM/arm64 is the last bit of the kernel that still uses perf_num_counters().

As I went ahead to address this, it became obvious that all traces of oprofile had been eradicated from all architectures but arm64, s390 and sh (plus a bit of cruft in the core perf code). With KVM fixed, perf_num_counters() and perf_pmu_name() are finally gone.

Thanks,

	M.

[1] https://lore.kernel.org/lkml/20210215050618.hgftdmfmslbdrg3j@vireshk-i7

Marc Zyngier (5):
KVM: arm64: Divorce the perf code from oprofile helpers
arm64: Get rid of oprofile leftovers
s390: Get rid of oprofile leftovers
sh: Get rid of oprofile leftovers
perf: Get rid of oprofile leftovers

 arch/arm64/kvm/perf.c         |  7 +------
 arch/arm64/kvm/pmu-emul.c     |  2 +-
 arch/s390/kernel/perf_event.c | 21 ---------------------
 arch/sh/kernel/perf_event.c   | 18 ------------------
 drivers/perf/arm_pmu.c        | 30 ------------------------------
 include/kvm/arm_pmu.h         |  4 ++++
 include/linux/perf_event.h    |  2 --
 kernel/events/core.c          |  5 -----
 8 files changed, 6 insertions(+), 83 deletions(-)
Signature · 1 line
2.29.2