Re: [PATCH 2/2] x86: make __get_wchan() use arch_stack_walk()

From: Peter Zijlstra
Date: Wed Apr 12 2023 - 09:25:06 EST


On Wed, Apr 12, 2023 at 03:15:33PM +0200, Peter Zijlstra wrote:
> On Fri, Apr 07, 2023 at 10:08:22PM -0700, Josh Poimboeuf wrote:
> > On Thu, Mar 30, 2023 at 04:15:52PM +0800, Qi Zheng wrote:
> > > Make __get_wchan() use arch_stack_walk() directly to
> > > avoid open-coding of unwind logic.
> > >
> > > Signed-off-by: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
> >
> > Can we just have a shared version of __get_wchan() for all
> > CONFIG_ARCH_STACKWALK arches?
>
> Didn't I do that a while back ? I can't seem to actually find the
> patch-set though :/

Could be this series:

https://lkml.kernel.org/r/20211022150933.883959987@xxxxxxxxxxxxx

And this here:

https://lore.kernel.org/lkml/CAHk-=wjHbKfck1Ws4Y0pUZ7bxdjU9eh2WK0EFsv65utfeVkT9Q@xxxxxxxxxxxxxx/

might be why I dropped it.. I can't remember.