[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <3vvgsf6Y16z9s4s@ozlabs.org>
Date: Fri, 31 Mar 2017 23:33:58 +1100 (AEDT)
From: Michael Ellerman <patch-notifications@...erman.id.au>
To: Thadeu Lima de Souza Cascardo <cascardo@...onical.com>,
linuxppc-dev@...ts.ozlabs.org
Cc: Paul Mackerras <paulus@...ba.org>, linux-kernel@...r.kernel.org
Subject: Re: [v2] powerpc: make /proc/self/stack always print the current stack
On Mon, 2017-03-27 at 19:32:33 UTC, Thadeu Lima de Souza Cascardo wrote:
> For the current task, the kernel stack would only tell the last time the
> process was rescheduled, if ever. Use the current stack pointer for the
> current task.
>
> Otherwise, every once in a while, the stacktrace printed when reading
> /proc/self/stack would look like the process is running in userspace,
> while it's not, which some may consider as a bug.
>
> This is also consistent with some other architectures, like x86 and arm,
> at least.
>
> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@...onical.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/4f9b514b765a3057341f3236c94877
cheers
Powered by blists - more mailing lists