From: James Clark <james.clark@arm.com>
To: Robin Murphy <robin.murphy@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>,
Adrian Hunter <adrian.hunter@intel.com>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, x86@kernel.org,
linux-perf-users@vger.kernel.org, jialong.yang@shingroup.cn,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Will Deacon <will@kernel.org>
Subject: Re: [PATCH 00/10] perf: Clean up common uncore boilerplate
Date: Wed, 13 Mar 2024 11:26:07 +0000 [thread overview]
Message-ID: <b24137db-62e8-2b60-7a8d-2a7f8ac7ba93@arm.com> (raw)
In-Reply-To: <cover.1710257512.git.robin.murphy@arm.com>
On 12/03/2024 17:34, Robin Murphy wrote:
> Hi all,
>
> Since this came up yet again recently, and it's an idea which has been
> nagging me for years, I decided it was time to see how hard it really
> would be to start shaving this yak. And it turns out to be refreshingly
> simple - the core code has quietly become capable of doing most of what
> we want, the one new functional addition is trivial (patch #2), and the
> resulting largely-mechanical cleanup seems a pretty nice win.
>
> This series is focused on drivers/perf/ as that's where most mess is
> concentrated, but figured I'd include the arch/ patches as well since
> they might be reasonable to land with the core changes, at least for x86
> (FWIW I did also look at the powerpc drivers but they scared me and I
> ran away; sorry). The remaining stragglers elsewhere around the tree I'd
> come back to as a follow-up.
>
> (And yes, I appreciate it's mid-merge-window already, but since I do
> have a tree-wide rename proposed here, may as well give the discussion
> a chance for a head start before -rc1...)
>
> Thanks,
> Robin.
>
>
Reviewed-by: James Clark <james.clark@arm.com>
> Robin Murphy (10):
> perf/alibaba_uncore_drw: Use correct CPU affinity
> perf: Add capability for common event support
> drivers/perf: Use PERF_PMU_CAP_NO_COMMON_EVENTS
> perf: Rename PERF_PMU_CAP_NO_INTERRUPT
> drivers/perf: Use PERF_PMU_CAP_NO_SAMPLING consistently
> drivers/perf: Clean up redundant per-task checks
> perf: Define common uncore capabilities
> drivers/perf: Use common uncore capabilities
> x86: Use common uncore PMU capabilities
> ARM: Use common uncore PMU capabilities
>
> arch/arc/kernel/perf_event.c | 2 +-
> arch/arm/mach-imx/mmdc.c | 16 +-------------
> arch/arm/mm/cache-l2x0-pmu.c | 12 +---------
> arch/csky/kernel/perf_event.c | 2 +-
> arch/powerpc/perf/8xx-pmu.c | 2 +-
> arch/powerpc/perf/hv-24x7.c | 2 +-
> arch/powerpc/perf/hv-gpci.c | 2 +-
> arch/powerpc/platforms/pseries/papr_scm.c | 2 +-
> arch/s390/kernel/perf_cpum_cf.c | 2 +-
> arch/sh/kernel/perf_event.c | 2 +-
> arch/x86/events/amd/iommu.c | 17 +-------------
> arch/x86/events/amd/power.c | 10 +--------
> arch/x86/events/amd/uncore.c | 12 +++-------
> arch/x86/events/core.c | 2 +-
> arch/x86/events/intel/cstate.c | 16 +++-----------
> arch/x86/events/intel/uncore.c | 11 +--------
> arch/x86/events/intel/uncore_snb.c | 20 +++--------------
> arch/x86/events/msr.c | 9 +-------
> arch/x86/events/rapl.c | 9 +-------
> drivers/fpga/dfl-fme-perf.c | 2 +-
> drivers/perf/alibaba_uncore_drw_pmu.c | 27 +++--------------------
> drivers/perf/amlogic/meson_ddr_pmu_core.c | 11 +--------
> drivers/perf/arm-cci.c | 15 +------------
> drivers/perf/arm-ccn.c | 20 +----------------
> drivers/perf/arm-cmn.c | 10 +--------
> drivers/perf/arm_cspmu/arm_cspmu.c | 27 ++---------------------
> drivers/perf/arm_dmc620_pmu.c | 18 +--------------
> drivers/perf/arm_dsu_pmu.c | 22 +-----------------
> drivers/perf/arm_pmu_platform.c | 2 +-
> drivers/perf/arm_smmuv3_pmu.c | 15 +------------
> drivers/perf/arm_spe_pmu.c | 7 ++----
> drivers/perf/cxl_pmu.c | 8 +------
> drivers/perf/dwc_pcie_pmu.c | 13 +----------
> drivers/perf/fsl_imx8_ddr_perf.c | 13 +----------
> drivers/perf/fsl_imx9_ddr_perf.c | 13 +----------
> drivers/perf/hisilicon/hisi_pcie_pmu.c | 10 +--------
> drivers/perf/hisilicon/hisi_uncore_pmu.c | 20 +----------------
> drivers/perf/hisilicon/hns3_pmu.c | 9 +-------
> drivers/perf/marvell_cn10k_ddr_pmu.c | 15 +------------
> drivers/perf/marvell_cn10k_tad_pmu.c | 6 +----
> drivers/perf/qcom_l2_pmu.c | 21 ++----------------
> drivers/perf/qcom_l3_pmu.c | 21 +-----------------
> drivers/perf/riscv_pmu_sbi.c | 2 +-
> drivers/perf/thunderx2_pmu.c | 17 +-------------
> drivers/perf/xgene_pmu.c | 16 +-------------
> include/linux/perf_event.h | 6 ++++-
> kernel/events/core.c | 7 +++++-
> 47 files changed, 67 insertions(+), 456 deletions(-)
>
prev parent reply other threads:[~2024-03-13 11:26 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-12 17:34 [PATCH 00/10] perf: Clean up common uncore boilerplate Robin Murphy
2024-03-12 17:34 ` [PATCH 01/10] perf/alibaba_uncore_drw: Use correct CPU affinity Robin Murphy
2024-03-12 17:34 ` [PATCH 02/10] perf: Add capability for common event support Robin Murphy
2024-03-14 8:09 ` Yang Jialong 杨佳龙
2024-03-14 12:34 ` Robin Murphy
2024-03-12 17:34 ` [PATCH 03/10] drivers/perf: Use PERF_PMU_CAP_NO_COMMON_EVENTS Robin Murphy
2024-03-12 17:34 ` [PATCH 04/10] perf: Rename PERF_PMU_CAP_NO_INTERRUPT Robin Murphy
2024-03-13 12:05 ` kernel test robot
2024-03-13 15:44 ` kernel test robot
2024-03-12 17:34 ` [PATCH 05/10] drivers/perf: Use PERF_PMU_CAP_NO_SAMPLING consistently Robin Murphy
2024-03-13 11:11 ` James Clark
2024-03-13 12:02 ` Robin Murphy
2024-03-12 17:34 ` [PATCH 06/10] drivers/perf: Clean up redundant per-task checks Robin Murphy
2024-03-12 17:34 ` [PATCH 07/10] perf: Define common uncore capabilities Robin Murphy
2024-03-13 11:23 ` James Clark
2024-03-13 12:24 ` Robin Murphy
2024-03-12 17:34 ` [PATCH 08/10] drivers/perf: Use " Robin Murphy
2024-03-12 17:34 ` [PATCH 09/10] x86: Use common uncore PMU capabilities Robin Murphy
2024-03-12 17:34 ` [PATCH 10/10] ARM: " Robin Murphy
2024-03-30 14:59 ` Shawn Guo
2024-03-13 11:26 ` James Clark [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b24137db-62e8-2b60-7a8d-2a7f8ac7ba93@arm.com \
--to=james.clark@arm.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=irogers@google.com \
--cc=jialong.yang@shingroup.cn \
--cc=jolsa@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=robin.murphy@arm.com \
--cc=will@kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).