From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755478AbYLMB2D (ORCPT ); Fri, 12 Dec 2008 20:28:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753495AbYLMB1v (ORCPT ); Fri, 12 Dec 2008 20:27:51 -0500 Received: from mail-qy0-f11.google.com ([209.85.221.11]:53564 "EHLO mail-qy0-f11.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752778AbYLMB1u convert rfc822-to-8bit (ORCPT ); Fri, 12 Dec 2008 20:27:50 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VNyMswqcwxD1pUxgfVCRRfrT65F9vy/XPQyJddIdGQ50H6fFGdgxqPxym4YmYhRZNO QFOKQFTO4s1tzIit8BPjzWX7obNGLsOS1sYnveF+URj92GWY4UnBYYheubUWOhVxzeKR oPLoeJBqXkfsHZySFEXqE0IM8Sg1CtRzgJfpE= Message-ID: Date: Sat, 13 Dec 2008 02:27:44 +0100 From: "=?ISO-8859-1?Q?Fr=E9d=E9ric_Weisbecker?=" To: "Arnaldo Carvalho de Melo" , "Steven Rostedt" , "Vladislav Bolkhovitin" , "Sam Ravnborg" , linux-scsi@vger.kernel.org, "James Bottomley" , "Andrew Morton" , "FUJITA Tomonori" , "Mike Christie" , "Jeff Garzik" , "Boaz Harrosh" , "Linus Torvalds" , linux-kernel@vger.kernel.org, scst-devel@lists.sourceforge.net, "Bart Van Assche" , "Nicholas A. Bellinger" , fweisbec , "Ingo Molnar" Subject: Re: [PATCH][RFC 2/23]: SCST core In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Content-Disposition: inline References: <494009D7.4020602@vlnb.net> <49400ACD.3070502@vlnb.net> <20081210191213.GA15273@uranus.ravnborg.org> <49414DBE.6070801@vlnb.net> <20081211210917.GB27010@uranus.ravnborg.org> <4942BA85.3070408@vlnb.net> <1229118607.24995.18.camel@localhost.localdomain> <20081212230523.GB4775@ghostprotocols.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2008/12/13 Frédéric Weisbecker : > 2008/12/13 Arnaldo Carvalho de Melo : >> Steven, is it possible to trigger tracing for any function when a >> function in the list set up by the user is running and then stop tracing >> when it exits? >> >> - Arnaldo >> > > Hi Arnaldo, > > Yes it's possible with ftrace, by using the function graph tracer ( an > ftrace extension that adds the tracing on return). > > To enable it just do: > echo function_graph > /debugfs/tracing/current_tracer > > And to trace by choosing a particular function as the root of the call > stack, just do the things > explained on this patch: > http://git.kernel.org/?p=linux/kernel/git/mingo/linux-2.6-sched-devel.git;a=commit;h=ea4e2bc4d9f7370e57a343ccb5e7c0ad3222ec3c > > And the tracing will finish after this function returns :-) > I forgot to say that add-on is not yet included on 2.6.28 This will be available for 2.6.29. From mboxrd@z Thu Jan 1 00:00:00 1970 From: "=?ISO-8859-1?Q?Fr=E9d=E9ric_Weisbecker?=" Subject: Re: [PATCH][RFC 2/23]: SCST core Date: Sat, 13 Dec 2008 02:27:44 +0100 Message-ID: References: <494009D7.4020602@vlnb.net> <49400ACD.3070502@vlnb.net> <20081210191213.GA15273@uranus.ravnborg.org> <49414DBE.6070801@vlnb.net> <20081211210917.GB27010@uranus.ravnborg.org> <4942BA85.3070408@vlnb.net> <1229118607.24995.18.camel@localhost.localdomain> <20081212230523.GB4775@ghostprotocols.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-qy0-f11.google.com ([209.85.221.11]:53564 "EHLO mail-qy0-f11.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752778AbYLMB1u convert rfc822-to-8bit (ORCPT ); Fri, 12 Dec 2008 20:27:50 -0500 In-Reply-To: Content-Disposition: inline Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Arnaldo Carvalho de Melo , Steven Rostedt , Vladislav Bolkhovitin , Sam Ravnborg , linux-scsi@vger.kernel 2008/12/13 Fr=E9d=E9ric Weisbecker : > 2008/12/13 Arnaldo Carvalho de Melo : >> Steven, is it possible to trigger tracing for any function when a >> function in the list set up by the user is running and then stop tra= cing >> when it exits? >> >> - Arnaldo >> > > Hi Arnaldo, > > Yes it's possible with ftrace, by using the function graph tracer ( a= n > ftrace extension that adds the tracing on return). > > To enable it just do: > echo function_graph > /debugfs/tracing/current_tracer > > And to trace by choosing a particular function as the root of the cal= l > stack, just do the things > explained on this patch: > http://git.kernel.org/?p=3Dlinux/kernel/git/mingo/linux-2.6-sched-dev= el.git;a=3Dcommit;h=3Dea4e2bc4d9f7370e57a343ccb5e7c0ad3222ec3c > > And the tracing will finish after this function returns :-) > I forgot to say that add-on is not yet included on 2.6.28 This will be available for 2.6.29. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html