summaryrefslogtreecommitdiffstats
path: root/tapsets/API-thread-indent-depth.html
blob: f720189b76b71b09d014665a818a1f88ab3bcb81 (plain) (blame)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>function::thread_indent_depth</title><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="index.html" title="SystemTap Tapset Reference Manual"><link rel="up" href="ansi.stp.html" title="Chapter 29. Utility functions for using ansi control chars in logs"><link rel="prev" href="API-thread-indent.html" title="function::thread_indent"><link rel="next" href="stap_staticmarkers.stp.html" title="Chapter 30. SystemTap Translator Tapset"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">function::thread_indent_depth</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-thread-indent.html">Prev</a> </td><th width="60%" align="center">Chapter 29. Utility functions for using ansi control chars in logs</th><td width="20%" align="right"> <a accesskey="n" href="stap_staticmarkers.stp.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-thread-indent-depth"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>function::thread_indent_depth — returns the nested-depth of the current task </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> thread_indent_depth:long(delta:long) </pre></div><div class="refsect1"><a name="id2455"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>delta</code></em></span></dt><dd><p> the amount of depth added/removed for each call </p></dd></dl></div></div><div class="refsect1"><a name="id2456"></a><h2>Description</h2><p> This function returns an integer equal to the nested function-call depth starting from the outermost initial level. This function is useful for saving space (consumed by whitespace) in traces with long nested function calls. Use this function in a similar fashion to <code class="function">thread_indent</code>, i.e., in call-probe, use thread_indent_depth(1) and in return-probe, use thread_indent_depth(-1) </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-thread-indent.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ansi.stp.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="stap_staticmarkers.stp.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">function::thread_indent</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 30. SystemTap Translator Tapset</td></tr></table></div></body></html>