diff options
author | johannst <johannst@users.noreply.github.com> | 2024-11-17 21:19:48 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2024-11-17 21:19:48 +0000 |
commit | 6e5044eb4ba064a497699208068d2553ac172f8c (patch) | |
tree | d87c8c5d87b2b961cc5aa842b1b829a762d62b09 /trace_profile | |
parent | 07dda6914ac1354b53da50d1b43cf439102c1bcc (diff) | |
download | notes-gh-pages.tar.gz notes-gh-pages.zip |
deploy: deb4619a79deace26923e91a93b6d7bbfce40e78gh-pages
Diffstat (limited to 'trace_profile')
-rw-r--r-- | trace_profile/ltrace.html | 5 |
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' |