[PATCH v2 0/3] unwind_user: Cleanups

From: Jens Remus
Date: Mon Dec 01 2025 - 08:00:24 EST


This patch series applies on top of Peter Zijlstras' latest unwind user
enhancements (and perf deferred callchain support) on his tip perf/core
branch:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/core

Which has already been merged to tip/master and linux-next/master.

Patch 1 enhances a few comments in unwind_user_next_common().

Patch 2 gets rid of an ifdef in unwind_user_next_fp() by moving it to
linux/unwind_user.h. Additionally it provides a common fallback for
unwind_user_at_function_start().

Patch 3 ensures the x86 unwind_user_word_size() implementation is
available whenever config option UNWIND_USER is enabled, as it is
required by unwind user in general and is not specific to its FP
unwind method.

Regards,
Jens

Jens Remus (3):
unwind_user: Enhance comments on get CFA, FP, and RA
unwind_user/fp: Use dummies instead of ifdef
x86/unwind_user: Guard unwind_user_word_size() by UNWIND_USER

arch/x86/include/asm/unwind_user.h | 29 +++++++++++++++++------------
include/linux/unwind_user.h | 18 ++++++++++++++++--
kernel/unwind/user.c | 12 ++++--------
3 files changed, 37 insertions(+), 22 deletions(-)

--
2.51.0