[prev in list] [next in list] [prev in thread] [next in thread]
List: opensolaris-dtrace-discuss
Subject: Re: [dtrace-discuss] Peeking into an already executing function
From: Gautam Gopalakrishnan <Gautam.Gopalakrishnan () Sun ! COM>
Date: 2008-03-31 22:45:37
Message-ID: 47F16991.4060903 () sun ! com
[Download RAW message or body]
> I'm afraid your question is not good enough to give good enough answer
Doh!
> Are you talking about userland or kernel?
I am talking about a userland application which does database queries.
To simplify, let's say main() calls A(). Sometimes A takes too long to
return, so I want to know what parameters were passed (maybe the query
is too broad or inefficient). If I run a DTrace script at this point,
the pid$1::A:entry fbt provider will not be triggered and
pid$1::A:return will be too late (because the problem does not exist
anymore). If A() is a small function, then I could put a probe on every
instruction but in this case it is complex and calls many other functions.
> There is another option, called static probes.
I can't recompile the application :( I'm just a support guy.
> I hope I answered you question. If not, sorry :)
Thank you, much appreciated.
Regards
-Gautam
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic