[PATCH 0/5] perf: oprofile spring cleanup

Marc Zyngier
2021-04-14T13:44:25Z

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(-)

--
2.29.2