aboutsummaryrefslogtreecommitdiffhomepage
path: root/trace_profile
diff options
context:
space:
mode:
Diffstat (limited to 'trace_profile')
-rw-r--r--trace_profile/ltrace.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/trace_profile/ltrace.html b/trace_profile/ltrace.html
index d055b19..16caa34 100644
--- a/trace_profile/ltrace.html
+++ b/trace_profile/ltrace.html
@@ -162,13 +162,18 @@
-o <file> ... log output into <file>
-l <filter> . show who calls into lib matched by <filter>
-C .......... demangle
+ -e <filter> . show calls symbols matched by <filter>
-x <filter> . which symbol table entry points to trace
(can be of form sym_pattern@lib_pattern)
+ -n <num> number of spaces to indent nested calls
</code></pre>
<h1 id="example"><a class="header" href="#example">Example</a></h1>
<p>List which program/libs call into <code>libstdc++</code>:</p>
<pre><code class="language-bash">ltrace -l '*libstdc++*' -C -o ltrace.log ./main
</code></pre>
+<p>List calls to specific symbols:</p>
+<pre><code class="language-bash">ltrace -e malloc -e free ./main
+</code></pre>
<p>Trace symbols from <code>dlopen(3)</code>ed libraries.</p>
<pre><code class="language-bash"># Assume libfoo.so would be dynamically loaded via dlopen.
ltrace -x '@libfoo.so'