mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* dynamic function tracing
@ 2008-11-28 18:19 Arjan van de Ven
  2008-11-28 19:50 ` Frank Ch. Eigler
  2008-12-01  1:58 ` Steven Rostedt
  0 siblings, 2 replies; 3+ messages in thread
From: Arjan van de Ven @ 2008-11-28 18:19 UTC (permalink / raw)
  To: srostedt, linux-kernel

Hi,

I like the new function trace format with the {}'s a lot.. but I would
like to use it in a way I don't think would work with dynamic tracing.

What I would like to do (read: usecase) is mark a function as
interesting (because it has some performance issue or whatever),
and then I want to get all functions it calls (recursive) traced
automatically for the duration of that function.

This might be implementable by, on hitting the function to trace,
patching all trace points with a function that checks if it's this
thread (eg this "current"), and if so, traces the call. 
I realize it's not going to be super cheap, so it needs to be one-shot,
but it'll form a really strong usecase in practice...


-- 
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-01  1:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-28 18:19 dynamic function tracing Arjan van de Ven
2008-11-28 19:50 ` Frank Ch. Eigler
2008-12-01  1:58 ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome