linux-mainline/arch/arm
Douglas Anderson 8d539b84f1 nmi_backtrace: allow excluding an arbitrary CPU
The APIs that allow backtracing across CPUs have always had a way to
exclude the current CPU.  This convenience means callers didn't need to
find a place to allocate a CPU mask just to handle the common case.

Let's extend the API to take a CPU ID to exclude instead of just a
boolean.  This isn't any more complex for the API to handle and allows the
hardlockup detector to exclude a different CPU (the one it already did a
trace for) without needing to find space for a CPU mask.

Arguably, this new API also encourages safer behavior.  Specifically if
the caller wants to avoid tracing the current CPU (maybe because they
already traced the current CPU) this makes it more obvious to the caller
that they need to make sure that the current CPU ID can't change.

[akpm@linux-foundation.org: fix trigger_allbutcpu_cpu_backtrace() stub]
Link: https://lkml.kernel.org/r/20230804065935.v4.1.Ia35521b91fc781368945161d7b28538f9996c182@changeid
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: kernel test robot <lkp@intel.com>
Cc: Lecopzer Chen <lecopzer.chen@mediatek.com>
Cc: Petr Mladek <pmladek@suse.com>
Cc: Pingfan Liu <kernelfans@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-08-18 10:19:00 -07:00
..
boot ARM: dts: st: add missing space before { 2023-07-05 22:22:01 +02:00
common asm-generic updates for 6.5 2023-07-06 10:06:04 -07:00
configs arch/*/configs/*defconfig: Replace AUTOFS4_FS by AUTOFS_FS 2023-07-29 14:08:22 -07:00
crypto
include nmi_backtrace: allow excluding an arbitrary CPU 2023-08-18 10:19:00 -07:00
kernel nmi_backtrace: allow excluding an arbitrary CPU 2023-08-18 10:19:00 -07:00
lib - Yosry Ahmed brought back some cgroup v1 stats in OOM logs. 2023-06-28 10:28:11 -07:00
mach-actions
mach-airoha
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM: SoC drivers for 6.5 2023-06-29 15:22:19 -07:00
mach-axxia
mach-bcm
mach-berlin
mach-clps711x
mach-davinci
mach-digicolor
mach-dove
mach-ep93xx
mach-exynos ARM: SoC changes for 6.5 2023-06-29 15:28:33 -07:00
mach-footbridge
mach-gemini
mach-highbank
mach-hisi
mach-hpe
mach-imx
mach-ixp4xx
mach-keystone
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson
mach-milbeaut
mach-mmp
mach-moxart
mach-mstar
mach-mv78xx0
mach-mvebu
mach-mxs
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 ARM: SoC changes for 6.5 2023-06-29 15:28:33 -07:00
mach-omap2 asm-generic updates for 6.5 2023-07-06 10:06:04 -07:00
mach-orion5x
mach-pxa asm-generic updates for 6.5 2023-07-06 10:06:04 -07:00
mach-qcom
mach-rda
mach-realtek
mach-rockchip
mach-rpc
mach-s3c
mach-s5pv210
mach-sa1100 asm-generic updates for 6.5 2023-07-06 10:06:04 -07:00
mach-shmobile
mach-socfpga
mach-spear asm-generic updates for 6.5 2023-07-06 10:06:04 -07:00
mach-sti
mach-stm32
mach-sunplus
mach-sunxi
mach-tegra
mach-uniphier
mach-ux500
mach-versatile
mach-vt8500
mach-zynq
mm asm-generic updates for 6.5 2023-07-06 10:06:04 -07:00
net
nwfpe
plat-orion
probes
tools - Yosry Ahmed brought back some cgroup v1 stats in OOM logs. 2023-06-28 10:28:11 -07:00
vdso
vfp ARM updates for v6.5-rc1 2023-06-26 17:07:53 -07:00
xen
Kbuild
Kconfig arm/kexec: refactor for kernel/Kconfig.kexec 2023-08-18 10:18:52 -07:00
Kconfig-nommu
Kconfig.assembler
Kconfig.debug
Makefile