Brian Utterback
2007-Aug-30 16:06 UTC
[dtrace-discuss] How to set indent level in flowindent.
I am diagnosing a hang. I know in what kernel routine the thread hangs in (cv_wait_sig_swap) and I know what system call is made that leads to the hang (connect). What I need to know is how it gets from one the the other. I am using speculations to capture the function call data and then commiting it on entry to cv_wait_sig_swap. My problem is that since this is a hang, the trace is not going to come out, but I do want to capture as many of these as I can over a long period of time. So, what I want is when I do the commit and destroy the speculation buffer, I also want to reset the indent level to zero. Is there any way to tell the flowindent code to go back to no indent? -- blu Screening ideas are indeed thought up by the Office for Annoying Air Travelers and vetted through the Directorate for Confusion and Complexity - Kip Hawley, Head of the TSA ---------------------------------------------------------------------- Brian Utterback - Solaris RPE, Sun Microsystems, Inc. Ph:877-259-7345, Em:brian.utterback-at-ess-you-enn-dot-kom
Adam Leventhal
2007-Aug-30 17:32 UTC
[dtrace-discuss] How to set indent level in flowindent.
Hi Brian, You can''t explicitly set the indentation level for the built-in flowindent support, but you call roll your own flowindent using printf(). Adam On Thu, Aug 30, 2007 at 12:06:36PM -0400, Brian Utterback wrote:> I am diagnosing a hang. I know in what kernel routine the thread > hangs in (cv_wait_sig_swap) and I know what system call is made > that leads to the hang (connect). What I need to know is how it > gets from one the the other. > > I am using speculations to capture the function call data and > then commiting it on entry to cv_wait_sig_swap. My problem is > that since this is a hang, the trace is not going to come out, > but I do want to capture as many of these as I can over a long > period of time. > > So, what I want is when I do the commit and destroy the speculation > buffer, I also want to reset the indent level to zero. Is there any > way to tell the flowindent code to go back to no indent? > > -- > blu > > Screening ideas are indeed thought up by the Office for Annoying > Air Travelers and vetted through the Directorate for Confusion > and Complexity - Kip Hawley, Head of the TSA > ---------------------------------------------------------------------- > Brian Utterback - Solaris RPE, Sun Microsystems, Inc. > Ph:877-259-7345, Em:brian.utterback-at-ess-you-enn-dot-kom > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Adam Leventhal, FishWorks http://blogs.sun.com/ahl