From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25794 invoked by alias); 27 Oct 2006 18:58:23 -0000 Received: (qmail 25780 invoked by uid 22791); 27 Oct 2006 18:58:23 -0000 X-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_05,DK_SIGNED,DNS_FROM_RFC_ABUSE,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from nz-out-0102.google.com (HELO nz-out-0102.google.com) (64.233.162.203) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 27 Oct 2006 18:58:20 +0000 Received: by nz-out-0102.google.com with SMTP id n1so613778nzf for ; Fri, 27 Oct 2006 11:58:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=lf3qQIkbFGiBBI/EI7+Hr11MnU4ryd4iwHdrU033QX3aa1h50p+5VxgEjiHnIdksYF/28gOMQtKxvwAwptgw8voZaagOIjrU07OLocTpQpD6MRj+pq8JWkWClGx77RSIxLkvOUffDqQUMshGrSIScr/MELOd58tuD0SFSSGC918= Received: by 10.64.180.4 with SMTP id c4mr5724732qbf; Fri, 27 Oct 2006 11:58:18 -0700 (PDT) Received: by 10.64.210.19 with HTTP; Fri, 27 Oct 2006 11:58:18 -0700 (PDT) Message-ID: Date: Fri, 27 Oct 2006 18:58:00 -0000 From: "Jun Koi" To: prasanna@in.ibm.com, jkenisto@us.ibm.com, hien@us.ibm.com, systemtap@sources.redhat.com Subject: [PATCH] kprobes patch MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2006-q4/txt/msg00264.txt.bz2 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 --- 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; }