Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754074AbYKLP7V (ORCPT ); Wed, 12 Nov 2008 10:59:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752963AbYKLP7M (ORCPT ); Wed, 12 Nov 2008 10:59:12 -0500 Received: from e38.co.us.ibm.com ([32.97.110.159]:57563 "EHLO e38.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752910AbYKLP7K (ORCPT ); Wed, 12 Nov 2008 10:59:10 -0500 Date: Wed, 12 Nov 2008 21:28:07 +0530 From: Ananth N Mavinakayanahalli To: Masami Hiramatsu Cc: Andrew Morton , Jim Keniston , David Miller , Rusty Russell , LKML , systemtap-ml Subject: Re: [PATCH 5/7] kprobes: Remove called_from argument Message-ID: <20081112155807.GD5199@in.ibm.com> Reply-To: ananth@in.ibm.com References: <4919F1A9.5070601@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4919F1A9.5070601@redhat.com> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1084 Lines: 22 On Tue, Nov 11, 2008 at 03:57:13PM -0500, Masami Hiramatsu wrote: > Remove called_from argument from kprobes which had been used for preventing > self-refering of kernel module. However, since we don't keep module's refcount > after registering kprobe any more, there is no reason to check that. > > This patch also simplifies registering/unregistering functions because we don't > need to use __builtin_return_address(0) which was passed to called_from. > > Signed-off-by: Masami Hiramatsu > --- > kernel/kprobes.c | 70 +++++++++++-------------------------------------------- > 1 file changed, 14 insertions(+), 56 deletions(-) Subject to inclusion of the two-liner I sent out earlier today on top of this one (needed anyway to get this to compile).. Acked-by: Ananth N Mavinakayanahalli -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/