Re: [PATCH v4] arm64: implement KPROBES_ON_FTRACE

2019-08-22 Thread Jisheng Zhang
Hi, On Thu, 22 Aug 2019 18:32:54 +0800 Jisheng Zhang wrote: > On Thu, 22 Aug 2019 15:52:05 +0530 > "Naveen N. Rao" wrote: > > > > > > > Jisheng Zhang wrote: > > > Hi, > > > > > > On Thu, 22 Aug 2019 12:23:58 +0530 > > > "Naveen N. Rao" wrote: > > >> Jisheng Zhang wrote: > > ...

Re: [PATCH v4] arm64: implement KPROBES_ON_FTRACE

2019-08-22 Thread Jisheng Zhang
On Thu, 22 Aug 2019 15:52:05 +0530 "Naveen N. Rao" wrote: > > > Jisheng Zhang wrote: > > Hi, > > > > On Thu, 22 Aug 2019 12:23:58 +0530 > > "Naveen N. Rao" wrote: > >> Jisheng Zhang wrote: > ... > >> > +/* Ftrace callback handler for kprobes -- called under preepmt > >> > disabed */ > >> >

Re: [PATCH v4] arm64: implement KPROBES_ON_FTRACE

2019-08-22 Thread Naveen N. Rao
Jisheng Zhang wrote: Hi, On Thu, 22 Aug 2019 12:23:58 +0530 "Naveen N. Rao" wrote: Jisheng Zhang wrote: ... > +/* Ftrace callback handler for kprobes -- called under preepmt > disabed */ > +void kprobe_ftrace_handler(unsigned long ip, unsigned long parent_ip, > +stru

Re: [PATCH v4] arm64: implement KPROBES_ON_FTRACE

2019-08-22 Thread Jisheng Zhang
Hi, On Thu, 22 Aug 2019 12:23:58 +0530 "Naveen N. Rao" wrote: > > > Jisheng Zhang wrote: > > KPROBES_ON_FTRACE avoids much of the overhead with regular kprobes as it > > eliminates the need for a trap, as well as the need to emulate or > > single-step instructions. > > > > Tested on berlin ar

Re: [PATCH v4] arm64: implement KPROBES_ON_FTRACE

2019-08-21 Thread Naveen N. Rao
Jisheng Zhang wrote: KPROBES_ON_FTRACE avoids much of the overhead with regular kprobes as it eliminates the need for a trap, as well as the need to emulate or single-step instructions. Tested on berlin arm64 platform. ~ # mount -t debugfs debugfs /sys/kernel/debug/ ~ # cd /sys/kernel/debug/ /s

[PATCH v4] arm64: implement KPROBES_ON_FTRACE

2019-08-21 Thread Jisheng Zhang
KPROBES_ON_FTRACE avoids much of the overhead with regular kprobes as it eliminates the need for a trap, as well as the need to emulate or single-step instructions. Tested on berlin arm64 platform. ~ # mount -t debugfs debugfs /sys/kernel/debug/ ~ # cd /sys/kernel/debug/ /sys/kernel/debug # echo