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

From: Qi Zheng
Date: Fri Nov 19 2021 - 05:26:40 EST




On 11/19/21 6:22 PM, Peter Zijlstra wrote:
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.


Got it.

--
Thanks,
Qi