aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/trace_profile/ltrace.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/trace_profile/ltrace.md')
-rw-r--r--src/trace_profile/ltrace.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/trace_profile/ltrace.md b/src/trace_profile/ltrace.md
new file mode 100644
index 0000000..cfa3fae
--- /dev/null
+++ b/src/trace_profile/ltrace.md
@@ -0,0 +1,17 @@
+# ltrace(1)
+
+```markdown
+ltrace [opts] [prg]
+ -f .......... follow child processes on fork(2)
+ -p <pid> .... attach to running process
+ -o <file> ... log output into <file>
+ -l <filter> . show who calls into lib matched by <filter>
+ -C .......... demangle
+```
+
+# Example
+
+List which program/libs call into `libstdc++`:
+```bash
+ltrace -l '*libstdc++*' -C -o ltrace.log ./main
+```