From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755373AbZBRAwK (ORCPT ); Tue, 17 Feb 2009 19:52:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752183AbZBRAv4 (ORCPT ); Tue, 17 Feb 2009 19:51:56 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:33225 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751597AbZBRAvz (ORCPT ); Tue, 17 Feb 2009 19:51:55 -0500 Date: Wed, 18 Feb 2009 01:51:33 +0100 From: Ingo Molnar To: Sam Ravnborg Cc: Steven Rostedt , linux-kernel@vger.kernel.org, Andrew Morton , Peter Zijlstra , Frederic Weisbecker , Arnaldo Carvalho de Melo , Peter Zijlstra , Thomas Gleixner Subject: Re: [PATCH 00/15] [git pull] for tip/tracing/ftrace Message-ID: <20090218005133.GH25856@elte.hu> References: <20090217051227.957864159@goodmis.org> <20090217104213.GC6602@elte.hu> <20090218004127.GB30812@uranus.ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090218004127.GB30812@uranus.ravnborg.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Sam Ravnborg wrote: > On Tue, Feb 17, 2009 at 07:49:49AM -0500, Steven Rostedt wrote: > > > > On Tue, 17 Feb 2009, Ingo Molnar wrote: > > > > > > > > * Steven Rostedt wrote: > > > > > > > Ingo, > > > > > > > > This is a patch series that offers a variety of features. > > > > > > > > The first is to add: > > > > > > > > #### all functions enabled #### > > > > > > > > to set_ftrace_filter when all functions will be traced when function > > > > tracing is on. > > > > > > > > The next is to add a :command: interface, and the module command: > > > > > > > > echo '*:mod:ext4' > set_ftrace_filter > > > > > > > > Will select all functions in the ext4 module. > > > > > > > > echo '!*write*:mod:ext4' > set_ftrace_filter > > > > > > > > will remove all functions with the characters 'write' and are > > > > in ext4. > > > > > > Very nice feature! > > > > > > I'm wondering, would it be possible to somehow extend this to > > > built-in drivers too, so that we get symmetry of usage > > > independently of whether something is built in or a module? I > > > suspect it needs some extensions to kbuild though ... > > > > Yeah, that may needs some kbuild magic. > > I have not followed this thread. > What kind of magic do you have in mind? It would be nice to have a notion of 'modules' even for built-in drivers - at least as far as symbol lookups go. It would allow such a module-specific trigger: echo '!*write*:mod:ext4' > set_ftrace_filter to work even if ext4 is built-in. Ingo