RE: kprobe pre_handler change return IP

2013-10-20 Thread Liuyongan
> -Original Message- > From: Masami Hiramatsu [mailto:masami.hiramatsu...@hitachi.com] > Sent: Sunday, October 20, 2013 12:00 AM > To: Liuyongan > Cc: linux-kernel@vger.kernel.org; Qianhuibin > Subject: Re: kprobe pre_handler change return IP > > (2013/10/17

Re: kprobe pre_handler change return IP

2013-10-19 Thread Masami Hiramatsu
(2013/10/17 21:57), Liuyongan wrote: > I use kprobe to probe a function suppose: > int is_winter(int num) { ... } > int replace_is_winter(int num) { ...} > I want to replace is_winter() with replace_is_winter(), so when we call > is_winter, replace_is_winter will be called. >

kprobe pre_handler change return IP

2013-10-17 Thread Liuyongan
I use kprobe to probe a function suppose: int is_winter(int num) { ... } int replace_is_winter(int num) { ...} I want to replace is_winter() with replace_is_winter(), so when we call is_winter, replace_is_winter will be called.