APPLIED: [F][PATCH 0/2] Enable proper kprobes on ftrace support (LP: 1865858)

Seth Forshee seth.forshee at canonical.com
Sat Mar 7 14:34:16 UTC 2020


On Tue, Mar 03, 2020 at 05:37:11PM +0100, frank.heimes at canonical.com wrote:
> Buglink: https://bugs.launchpad.net/bugs/1865858
> 
> The s390x architecture already provides kprobes on ftrace support by allowing to set a kprobe on the first instruction,
> even if it is the ftrace nop or ftrace mcount instruction block.
> However, this still means that an illegal instruction is placed to the first instruction,
> which causes an exception and subsequent single stepping of the replaced instruction.
> With proper kprobes on ftrace support there won't be an exception nor any single stepping,
> which means that kprobes placed at the first instruction will be much faster than now.
> As a side effect by implementing this both the ftrace as well as the kprobes code will get a bit simpler.

Applied to focal/master-next, thanks!



More information about the kernel-team mailing list