Linux Perf Users
 help / color / mirror / Atom feed
* [PATCH v2 00/11] lib/cpumask: get rid of cpumap_print_to_pagebuf()
@ 2026-07-02 15:47 Yury Norov
  2026-07-02 15:47 ` [PATCH v2 01/11] arm: Use sysfs_emit() for cpumask show callbacks Yury Norov
                   ` (10 more replies)
  0 siblings, 11 replies; 26+ messages in thread
From: Yury Norov @ 2026-07-02 15:47 UTC (permalink / raw)
  To: Andrew Morton, Rasmus Villemoes, Yury Norov
  Cc: Russell King, Frank Li, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Peter Zijlstra,
	Ingo Molnar, Arnaldo Carvalho de Melo, Namhyung Kim, Mark Rutland,
	Alexander Shishkin, Jiri Olsa, Ian Rogers, Adrian Hunter,
	James Clark, Thomas Gleixner, Borislav Petkov, Dave Hansen,
	H. Peter Anvin, Rafael J. Wysocki, Greg Kroah-Hartman,
	Danilo Krummrich, Chanwoo Choi, MyungJoo Ham, Kyungmin Park,
	Heiko Stuebner, Xu Yilun, Tom Rix, Moritz Fischer, Yicong Yang,
	Jonathan Cameron, Dennis Dalessandro, Jason Gunthorpe,
	Leon Romanovsky, Bjorn Helgaas, Shuai Xue, Will Deacon,
	Jiucheng Xu, Neil Armstrong, Kevin Hilman, Jerome Brunet,
	Martin Blumenstingl, Robin Murphy, Jing Zhang, Xu Yang,
	Linu Cherian, Gowthami Thiagarajan, Ji Sheng Teoh, Khuong Dinh,
	Yury Norov, Kees Cook, Thomas Weißschuh, Aboorva Devarajan,
	Ilkka Koskinen, Besar Wicaksono, Ma Ke, Chengwen Feng,
	Ritesh Harjani, Yushan Wang, linux-arm-kernel, imx, linux-kernel,
	linuxppc-dev, linux-perf-users, x86, driver-core, linux-pm,
	linux-rockchip, linux-fpga, linux-rdma, linux-pci, linux-amlogic,
	linux-cxl, linux-arm-msm

cpumap_print_to_pagebuf() is the equivalent for the "&*pb[l]" notation
in printk-like functions. In some cases, it makes people to create
temporary buffers for the printed cpumasks, where it can be avoided.

Get rid of it in a favor of more standard printing API.

Each patch, except for the last one, is independent and may be moved with
the corresponding subsystem. Or I can take it in bitmap-for-next, at
maintainers' discretion.

On top of -next.

This is the resend of:

https://lore.kernel.org/all/20260528183625.870813-1-ynorov@nvidia.com/

Except the patches merged in 7.1 cycle. I'm going to apply the material
in 7.2 unless explicit NAKs received.

Yury Norov (11):
  arm: Use sysfs_emit() for cpumask show callbacks
  powerpc: Use sysfs_emit() for cpumask show callbacks
  x86/events: Use sysfs_emit() for cpumask show callbacks
  cpu: Use sysfs_emit() for cpumask show callback
  devfreq: Use sysfs_emit() for cpumask show callbacks
  fpga: dfl-fme-perf: Use sysfs_emit() for cpumask show
  hwtracing: hisi_ptt: Use sysfs_emit() for cpumask show
  RDMA/hfi1: Use sysfs_emit() for cpumask show helper
  PCI/sysfs: Use sysfs_emit() for cpumask show callbacks
  perf: Use sysfs_emit() for cpumask show callbacks
  lib/bitmap-str: get rid of cpumap_print_to_pagebuf()

 arch/arm/mach-imx/mmdc.c                    |  2 +-
 arch/arm/mm/cache-l2x0-pmu.c                |  2 +-
 arch/powerpc/kernel/cacheinfo.c             |  3 ++-
 arch/powerpc/perf/hv-24x7.c                 |  2 +-
 arch/powerpc/perf/hv-gpci.c                 |  2 +-
 arch/powerpc/perf/imc-pmu.c                 |  2 +-
 arch/x86/events/amd/iommu.c                 |  2 +-
 arch/x86/events/amd/power.c                 |  2 +-
 arch/x86/events/amd/uncore.c                |  2 +-
 arch/x86/events/intel/core.c                |  2 +-
 arch/x86/events/intel/uncore.c              |  2 +-
 drivers/base/cpu.c                          |  2 +-
 drivers/devfreq/event/rockchip-dfi.c        |  2 +-
 drivers/devfreq/hisi_uncore_freq.c          |  2 +-
 drivers/fpga/dfl-fme-perf.c                 |  2 +-
 drivers/hwtracing/ptt/hisi_ptt.c            |  2 +-
 drivers/infiniband/hw/hfi1/sdma.c           |  3 ++-
 drivers/pci/pci-sysfs.c                     |  7 ++++---
 drivers/perf/alibaba_uncore_drw_pmu.c       |  2 +-
 drivers/perf/amlogic/meson_ddr_pmu_core.c   |  2 +-
 drivers/perf/arm-cci.c                      |  2 +-
 drivers/perf/arm-ccn.c                      |  2 +-
 drivers/perf/arm-cmn.c                      |  2 +-
 drivers/perf/arm-ni.c                       |  2 +-
 drivers/perf/arm_cspmu/arm_cspmu.c          |  2 +-
 drivers/perf/arm_dmc620_pmu.c               |  4 ++--
 drivers/perf/arm_dsu_pmu.c                  |  2 +-
 drivers/perf/arm_pmu.c                      |  2 +-
 drivers/perf/arm_smmuv3_pmu.c               |  2 +-
 drivers/perf/arm_spe_pmu.c                  |  2 +-
 drivers/perf/cxl_pmu.c                      |  2 +-
 drivers/perf/dwc_pcie_pmu.c                 |  2 +-
 drivers/perf/fsl_imx8_ddr_perf.c            |  2 +-
 drivers/perf/fsl_imx9_ddr_perf.c            |  2 +-
 drivers/perf/fujitsu_uncore_pmu.c           |  2 +-
 drivers/perf/hisilicon/hisi_pcie_pmu.c      |  2 +-
 drivers/perf/hisilicon/hisi_uncore_pmu.c    |  2 +-
 drivers/perf/marvell_cn10k_ddr_pmu.c        |  2 +-
 drivers/perf/marvell_cn10k_tad_pmu.c        |  2 +-
 drivers/perf/marvell_pem_pmu.c              |  2 +-
 drivers/perf/nvidia_t410_c2c_pmu.c          |  2 +-
 drivers/perf/nvidia_t410_cmem_latency_pmu.c |  2 +-
 drivers/perf/qcom_l2_pmu.c                  |  2 +-
 drivers/perf/qcom_l3_pmu.c                  |  2 +-
 drivers/perf/starfive_starlink_pmu.c        |  2 +-
 drivers/perf/thunderx2_pmu.c                |  2 +-
 drivers/perf/xgene_pmu.c                    |  2 +-
 include/linux/cpumask.h                     | 19 -------------------
 kernel/events/core.c                        |  2 +-
 lib/bitmap-str.c                            |  9 ++++-----
 50 files changed, 58 insertions(+), 75 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2026-07-02 16:22 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-02 15:47 [PATCH v2 00/11] lib/cpumask: get rid of cpumap_print_to_pagebuf() Yury Norov
2026-07-02 15:47 ` [PATCH v2 01/11] arm: Use sysfs_emit() for cpumask show callbacks Yury Norov
2026-07-02 15:54   ` sashiko-bot
2026-07-02 15:58   ` Greg Kroah-Hartman
2026-07-02 16:05     ` Yury Norov
2026-07-02 15:47 ` [PATCH v2 02/11] powerpc: " Yury Norov
2026-07-02 15:55   ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 03/11] x86/events: " Yury Norov
2026-07-02 15:54   ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 04/11] cpu: Use sysfs_emit() for cpumask show callback Yury Norov
2026-07-02 15:55   ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 05/11] devfreq: Use sysfs_emit() for cpumask show callbacks Yury Norov
2026-07-02 15:55   ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 06/11] fpga: dfl-fme-perf: Use sysfs_emit() for cpumask show Yury Norov
2026-07-02 15:53   ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 07/11] hwtracing: hisi_ptt: " Yury Norov
2026-07-02 15:52   ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 08/11] RDMA/hfi1: Use sysfs_emit() for cpumask show helper Yury Norov
2026-07-02 15:55   ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 09/11] PCI/sysfs: Use sysfs_emit() for cpumask show callbacks Yury Norov
2026-07-02 15:55   ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 10/11] perf: " Yury Norov
2026-07-02 15:56   ` sashiko-bot
2026-07-02 16:21   ` Robin Murphy
2026-07-02 15:47 ` [PATCH v2 11/11] lib/bitmap-str: get rid of cpumap_print_to_pagebuf() Yury Norov
2026-07-02 15:58   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox