From 07dda6914ac1354b53da50d1b43cf439102c1bcc Mon Sep 17 00:00:00 2001 From: johannst Date: Sat, 9 Nov 2024 10:42:31 +0000 Subject: deploy: 3d599bcbf6771def1076c3e9561bc748956dfc94 --- trace_profile/ltrace.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'trace_profile/ltrace.html') diff --git a/trace_profile/ltrace.html b/trace_profile/ltrace.html index ff424d0..d055b19 100644 --- a/trace_profile/ltrace.html +++ b/trace_profile/ltrace.html @@ -162,10 +162,24 @@ -o <file> ... log output into <file> -l <filter> . show who calls into lib matched by <filter> -C .......... demangle + -x <filter> . which symbol table entry points to trace + (can be of form sym_pattern@lib_pattern)

Example

List which program/libs call into libstdc++:

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

Trace symbols from dlopen(3)ed libraries.

+
# Assume libfoo.so would be dynamically loaded via dlopen.
+ltrace -x '@libfoo.so'
+
+# Trace all dlopened symbols.
+ltrace -x '*'
+# Trace all symbols from dlopened libraries which name match the
+# pattern "liby*".
+ltrace -x '@liby*'
+# Trace symbol "foo" from all dlopened libraries matching the pattern.
+ltrace -x 'foo@liby*'
 
-- cgit v1.2.3