Re: [PATCH v4 5/9] riscv: Add kprobes supported

2020-11-05 Thread Guo Ren
On Fri, Nov 6, 2020 at 9:02 AM Palmer Dabbelt wrote: > > On Sat, 17 Oct 2020 00:06:13 PDT (-0700), guo...@kernel.org wrote: > > From: Guo Ren > > > > This patch enables "kprobe & kretprobe" to work with ftrace > > interface. It utilized software breakpoint as single-step > > mechanism. > > > >

Re: [PATCH v4 5/9] riscv: Add kprobes supported

2020-11-05 Thread Palmer Dabbelt
On Sat, 17 Oct 2020 00:06:13 PDT (-0700), guo...@kernel.org wrote: From: Guo Ren This patch enables "kprobe & kretprobe" to work with ftrace interface. It utilized software breakpoint as single-step mechanism. Some instructions which can't be single-step executed must be simulated in kernel

[PATCH v4 5/9] riscv: Add kprobes supported

2020-10-17 Thread guoren
From: Guo Ren This patch enables "kprobe & kretprobe" to work with ftrace interface. It utilized software breakpoint as single-step mechanism. Some instructions which can't be single-step executed must be simulated in kernel execution slot, such as: branch, jal, auipc, la ... Some instructions