aboutsummaryrefslogtreecommitdiffhomepage
path: root/trace_profile
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2024-11-17 21:19:48 +0000
committerjohannst <johannst@users.noreply.github.com>2024-11-17 21:19:48 +0000
commit6e5044eb4ba064a497699208068d2553ac172f8c (patch)
treed87c8c5d87b2b961cc5aa842b1b829a762d62b09 /trace_profile
parent07dda6914ac1354b53da50d1b43cf439102c1bcc (diff)
downloadnotes-gh-pages.tar.gz
notes-gh-pages.zip
deploy: deb4619a79deace26923e91a93b6d7bbfce40e78gh-pages
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 &lt;file&gt; ... log output into &lt;file&gt;
-l &lt;filter&gt; . show who calls into lib matched by &lt;filter&gt;
-C .......... demangle
+ -e &lt;filter&gt; . show calls symbols matched by &lt;filter&gt;
-x &lt;filter&gt; . which symbol table entry points to trace
(can be of form sym_pattern@lib_pattern)
+ -n &lt;num&gt; 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'