Re: [RFC PATCH v4 27/34] early kprobes on ftrace: kprobe_on_ftrace_get_old_insn()

2015-03-03 Thread Wang Nan
On 2015/3/2 22:25, Wang Nan wrote: > Newly introduced function kprobe_on_ftrace_get_old_insn() will be > called by ftrace when ftrace generating call instruction. It is for > retriving probed instructions which original nops are replaced by > kprobe. FTRACE_FL_EARLY_KPROBES bit in rec->flags is cle

[RFC PATCH v4 27/34] early kprobes on ftrace: kprobe_on_ftrace_get_old_insn()

2015-03-02 Thread Wang Nan
Newly introduced function kprobe_on_ftrace_get_old_insn() will be called by ftrace when ftrace generating call instruction. It is for retriving probed instructions which original nops are replaced by kprobe. FTRACE_FL_EARLY_KPROBES bit in rec->flags is cleared, so after calling kprobe_on_ftrace_get