public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] kprobes patch
@ 2006-10-27 18:58 Jun Koi
  2006-10-27 20:45 ` Keshavamurthy, Anil S
  0 siblings, 1 reply; 6+ messages in thread
From: Jun Koi @ 2006-10-27 18:58 UTC (permalink / raw)
  To: prasanna, jkenisto, hien, systemtap

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)


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;
 }

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-10-30 18:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-27 18:58 [PATCH] kprobes patch Jun Koi
2006-10-27 20:45 ` Keshavamurthy, Anil S
2006-10-28  1:21   ` Jun Koi
2006-10-29 18:22     ` Vara Prasad
2006-10-30 18:45     ` Keshavamurthy, Anil S
2006-10-30 18:53       ` Keshavamurthy, Anil S

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).