Thread (10 messages) 10 messages, 4 authors, 2026-03-24

Re: [PATCH v2] perf regs: Refactor use of arch__sample_reg_masks to perf_reg_name

From: patchwork-bot+linux-riscv@kernel.org
Date: 2026-03-24 06:07:47
Also in: linux-perf-users, linux-riscv, lkml

Hello:

This patch was applied to riscv/linux.git (for-next)
by Arnaldo Carvalho de Melo [off-list ref]:

On Tue, 20 Jan 2026 18:17:35 -0800 you wrote:
arch__sample_reg_masks isn't supported on ARM(32), csky, loongarch,
MIPS, RISC-V and s390. The table returned by the function just has the
name of a register paired with the corresponding sample_regs_user mask
value. For a given perf register we can compute the name with
perf_reg_name and the mask is just 1 left-shifted by the perf register
number. Change __parse_regs to use this method for finding registers
rather than arch__sample_reg_masks, thereby adding __parse_regs
support for ARM(32), csky, loongarch, MIPS, RISC-V and s390. As
arch__sample_reg_masks is then unused, remove the now unneeded
declarations.

[...]
Here is the summary with links:
  - [v2] perf regs: Refactor use of arch__sample_reg_masks to perf_reg_name
    https://git.kernel.org/riscv/c/3d06db9bad1a

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help