Re: [PATCH] x86: Pin task-stack in __get_wchan()

From: Peter Zijlstra
Date: Fri Nov 19 2021 - 05:23:34 EST


On Fri, Nov 19, 2021 at 06:02:50PM +0800, Qi Zheng wrote:

> This implementation is very similar to stack_trace_save_tsk(), maybe we
> can just move stack_trace_save_tsk() out of CONFIG_STACKTRACE and reuse
> it.

No, we want to move away from the stack_trace_*() API because it has
very unclear semantics and various arch implementations differ in
details.

There's a patch that untangles arch_stack_walk*() from CONFIG_STACKTRACE
and we can eventually use that.