Skip to content

arch: More wchan fixes

Peter Zijlstra linux-arch lkml 1 version Applied

Status from this message: The following commit has been merged into the sched/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 19 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7x86: Fix __get_wchan() for !STACKTRACEarch/x86/kernel/process.c+14 -31 reply
2/7stacktrace,sched: Make stack_trace_save_tsk() more robustinclude/linux/wait.h kernel/sched/core.c kernel/stacktrace.c+63 -139 replies
3/7ARM: implement ARCH_STACKWALKarch/arm/Kconfig arch/arm/kernel/stacktrace.c+20 -951 reply
4/7arch: Make ARCH_STACKWALK independent of STACKTRACEarch/arm/kernel/stacktrace.c arch/arm64/kernel/stacktrace.c arch/powerpc/kernel/Makefile +4 more+20 -313 replies
5/7powerpc, arm64: Mark __switch_to() as __schedarch/arm64/kernel/process.c arch/powerpc/kernel/process.c+4 -42 replies
6/7arch: __get_wchan() || ARCH_STACKWALKarch/arm/include/asm/processor.h arch/arm/kernel/process.c arch/arm64/include/asm/processor.h +10 more+24 -1722 replies
7/7selftests: proc: Make sure wchan works when it existstools/testing/selftests/proc/Makefile tools/testing/selftests/proc/proc-pid-wchan.c+70 -00 replies

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchKees CookMark Rutland
1/7R-b
2/7R-b R-b
3/7R-b
4/7R-b R-b T-b
5/7R-b R-b T-b
6/7R-b R-b T-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] arch: More wchan fixes

Hi,

Respin of the rest of the get_wchan() rework [1]. Given the many problems with STACKTRACE this series focuses on the newer ARCH_STACKWALK since that's a smaller set of architectures to review with a better specified interface.

The idea is to piece-wise convert the rest of the architectures to ARCH_STACKWALK, but that can be done at leasure.

PowerPC and ARM64 are a bit funny in that their __switch_to() is in C and ends up on the stack. For now simply mark it __sched to make it work. Mark wanted to maybe do something different, but I think this ought to get us started.