Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759143AbZAPQDe (ORCPT ); Fri, 16 Jan 2009 11:03:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756772AbZAPQDW (ORCPT ); Fri, 16 Jan 2009 11:03:22 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:58636 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755103AbZAPQDV (ORCPT ); Fri, 16 Jan 2009 11:03:21 -0500 Date: Fri, 16 Jan 2009 17:03:07 +0100 From: Ingo Molnar To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Andrew Morton , Frederic Weisbecker , Chris Mason Subject: Re: [PATCH 0/2] ftrace: updates to tip Message-ID: <20090116160307.GA16612@elte.hu> References: <20090116004050.273665842@goodmis.org> <20090116112345.GC20082@elte.hu> <20090116152103.GA28643@elte.hu> <20090116160202.GA15209@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090116160202.GA15209@elte.hu> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: 1.0 X-ELTE-SpamLevel: s X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=1.0 required=5.9 tests=BAYES_50 autolearn=no SpamAssassin version=3.2.3 1.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60% [score: 0.4929] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 839 Lines: 20 * Ingo Molnar wrote: > > [...] We can register a function to be traced via the function > > pointer, and we can pick which functions to trace, but we can not > > separate out different functions for different traces. > > Why not? We could have a hash of all traced functions with metadata > attached. Since patching functions in/out would be a relatively rare > operation, this would be a highly efficient read-mostly hash. We could build that hash when registering the tracer. Via recordmcount we have advance knowledge of all the functions that may be traced. Ingo -- 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/