Re: [PATCH 1/2] kprobes/x86: boost: Fix checking if there is enough room for a jump

2015-06-01 Thread Masami Hiramatsu
On 2015/06/02 1:32, Eugene Shatokhin wrote: > Kprobes' "boost" feature allows to avoid single-stepping in some cases, > along with its overhead. It needs a relative jump placed in the insn > slot right after the instruction. So the length of the instruction plus > 5 (the length of the near relative

[PATCH 1/2] kprobes/x86: boost: Fix checking if there is enough room for a jump

2015-06-01 Thread Eugene Shatokhin
Kprobes' "boost" feature allows to avoid single-stepping in some cases, along with its overhead. It needs a relative jump placed in the insn slot right after the instruction. So the length of the instruction plus 5 (the length of the near relative unconditional jump) must not exceed the length of t