[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c62985530812121727x6a550028iee111a97cf1536b1@mail.gmail.com>
Date: Sat, 13 Dec 2008 02:27:44 +0100
From: "Frédéric Weisbecker" <fweisbec@...il.com>
To: "Arnaldo Carvalho de Melo" <acme@...hat.com>,
"Steven Rostedt" <srostedt@...hat.com>,
"Vladislav Bolkhovitin" <vst@...b.net>,
"Sam Ravnborg" <sam@...nborg.org>, linux-scsi@...r.kernel.org,
"James Bottomley" <James.Bottomley@...senpartnership.com>,
"Andrew Morton" <akpm@...ux-foundation.org>,
"FUJITA Tomonori" <fujita.tomonori@....ntt.co.jp>,
"Mike Christie" <michaelc@...wisc.edu>,
"Jeff Garzik" <jeff@...zik.org>,
"Boaz Harrosh" <bharrosh@...asas.com>,
"Linus Torvalds" <torvalds@...ux-foundation.org>,
linux-kernel@...r.kernel.org, scst-devel@...ts.sourceforge.net,
"Bart Van Assche" <bart.vanassche@...il.com>,
"Nicholas A. Bellinger" <nab@...ux-iscsi.org>,
fweisbec <fweisbec@...il.com>, "Ingo Molnar" <mingo@...e.hu>
Subject: Re: [PATCH][RFC 2/23]: SCST core
2008/12/13 Frédéric Weisbecker <fweisbec@...il.com>:
> 2008/12/13 Arnaldo Carvalho de Melo <acme@...hat.com>:
>> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists