This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] kprobes patch


On Sat, Oct 28, 2006 at 03:58:18AM +0900, Jun Koi wrote:
> Hello,
> 
> I am not sure if this is a right place to send patch for kprobes, but
> here it is.  This patch moves the reset command of kprobe instance
> into the loop. (against 2.6.18)

Hi jun,
Yes, you have sent it to the right place. thanks.
BTW, is is helpful to know what problem did you encounter due to which 
you had come up with this patch. Or did you catch this bug by just code review?

> 
> 
> Signed-off-by: Jun Koi <junkoi2004@gmail.com>
> 
> 
> --- a/kernel/kprobes.c    2006-09-20 12:42:06.000000000 +0900
> +++ b/kernel/kprobes.c        2006-10-28 03:52:27.000000000 +0900
> @@ -204,8 +204,8 @@ static int __kprobes aggr_pre_handler(st
>                        set_kprobe_instance(kp);
>                        if (kp->pre_handler(kp, regs))
>                                return 1;
> +                       reset_kprobe_instance();
>                }
> -               reset_kprobe_instance();
>        }
>        return 0;
> }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]