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

Guo Ren guoren at kernel.org
Thu Nov 5 21:54:57 EST 2020


On Fri, Nov 6, 2020 at 9:03 AM Palmer Dabbelt <palmerdabbelt at google.com> wrote:
>
> On Sat, 17 Oct 2020 00:06:09 PDT (-0700), guoren at kernel.org wrote:
> > From: Patrick Stählin <me at 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 at packi.ch>
> > Signed-off-by: Guo Ren <guoren at linux.alibaba.com>
> > Reviewed-by: Pekka Enberg <penberg at kernel.org>
> > Reviewed-by: Zong Li <zong.li at sifive.com>
> > Reviewed-by: Masami Hiramatsu <mhiramat at 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/



More information about the linux-riscv mailing list