Re: [PATCH v4 1/9] RISC-V: Implement ptrace regs and stack API

Guo Ren
2020-11-06T02:55:14Z

On Fri, Nov 6, 2020 at 9:03 AM Palmer Dabbelt <palmerdabbelt@google.com> wrote:
>
> On Sat, 17 Oct 2020 00:06:09 PDT (-0700), guoren@kernel.org wrote:
> > From: Patrick Stählin <me@packi.ch>
> >
> > Needed for kprobes support. Copied and adapted from arm64 code.
> >
> > Guo Ren fixup pt_regs type for linux-5.8-rc1.
> >
> > Signed-off-by: Patrick Stählin <me@packi.ch>
> > Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
> > Reviewed-by: Pekka Enberg <penberg@kernel.org>
> > Reviewed-by: Zong Li <zong.li@sifive.com>
> > Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
> > ---
> > arch/riscv/Kconfig | 1 +
> > arch/riscv/include/asm/ptrace.h | 29 ++++++++++++
> > arch/riscv/kernel/ptrace.c | 99 +++++++++++++++++++++++++++++++++++++++++
> > 3 files changed, 129 insertions(+)
> >
> > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> > index b7821ac..e6424d8b 100644
> > --- a/arch/riscv/Kconfig
> > +++ b/arch/riscv/Kconfig
> > @@ -87,6 +87,7 @@ config RISCV
> > select SPARSE_IRQ
> > select SYSCTL_EXCEPTION_TRACE
> > select THREAD_INFO_IN_TASK
> > + select HAVE_REGS_AND_STACK_ACCESS_API
>
> We alphabetize these now -- I'd usually just fix it, but there's a
> Signed-off-by issue later in the patch set.
ok, I'll fix it and rebase 5.10-rc2.

--
Best Regards
Guo Ren

ML: https://lore.kernel.org/linux-csky/