From 6e5044eb4ba064a497699208068d2553ac172f8c Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 17 Nov 2024 21:19:48 +0000 Subject: deploy: deb4619a79deace26923e91a93b6d7bbfce40e78 --- trace_profile/ltrace.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'trace_profile/ltrace.html') 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

Example

List which program/libs call into libstdc++:

ltrace -l '*libstdc++*' -C -o ltrace.log ./main
 
+

List calls to specific symbols:

+
ltrace -e malloc -e free ./main
+

Trace symbols from dlopen(3)ed libraries.

# Assume libfoo.so would be dynamically loaded via dlopen.
 ltrace -x '@libfoo.so'
-- 
cgit v1.2.3