blob: 0d41e28d823eefd88b547f4f2e7ef50a8d5ae8db [file] [log] [blame]
Juan Cespedes64e793b1997-09-11 23:22:36 +02001.\" Copyright (c) 1997 Juan Cespedes <cespedes@debian.org>
Juan Cespedes07461b61997-08-22 15:29:10 +02002.\" This file is covered by the GNU GPL
3.TH ltrace 1
4.SH NAME
5ltrace \- A library call tracer
6
7.SH SYNOPSIS
8.B ltrace
Juan Cespedes5e01f651998-03-08 22:31:44 +01009.I "[-diLS] [-a column] [-s strsize] [-o filename] command [arg ...]"
Juan Cespedes07461b61997-08-22 15:29:10 +020010
11.SH DESCRIPTION
12.B ltrace
13is a program that simply runs the specified
14.I command
15until it exits. It intercepts and records the dynamic library calls
16which are called by the executed process and the signals which are
17received by that process.
18.PP
19Its use is very similar to
Juan Cespedes3268a161997-08-25 16:45:22 +020020.BR strace(1).
Juan Cespedes07461b61997-08-22 15:29:10 +020021
22.SH OPTIONS
23.TP
Juan Cespedes5e01f651998-03-08 22:31:44 +010024.I \-a column
25Align return values in a secific column (default column 50).
Juan Cespedes07461b61997-08-22 15:29:10 +020026.I \-d
Juan Cespedes1afec691997-08-23 21:31:46 +020027Increase the debugging level.
Juan Cespedes07461b61997-08-22 15:29:10 +020028.TP
Juan Cespedes5e01f651998-03-08 22:31:44 +010029.I \-f
30Trace child processes as they are created by
31currently traced processes as a result of the fork(2)
32or clone(2) system calls.
33The new process is attached as soon as its pid is known.
34.TP
Juan Cespedes5e4455b1997-08-24 01:48:26 +020035.I \-i
36Print the instruction pointer at the time of the library call.
37.TP
Juan Cespedes5e01f651998-03-08 22:31:44 +010038.I \-s
39Specify the maximum string size to print (the default is 32).
40.TP
41.I \-L
42DON'T display library calls (use it with the
43.I \-S
44option).
45.TP
Juan Cespedes5e4455b1997-08-24 01:48:26 +020046.I \-S
47Display system calls as well as library calls
48.TP
Juan Cespedes07461b61997-08-22 15:29:10 +020049.I \-o filename
50Write the trace output to the file
51.I filename
52rather than to stderr.
53
54.SH BUGS
55At the moment, there are too many bugs to list here.
56.PP
Juan Cespedes3268a161997-08-25 16:45:22 +020057If you like to report a bug, send a notice to the author, or use the
58.BR bug(1)
59program if you are under Debian GNU/Linux.
Juan Cespedes07461b61997-08-22 15:29:10 +020060
Juan Cespedes5e01f651998-03-08 22:31:44 +010061.SH FILES
62.TP
63.I /etc/ltrace.conf
64System configuration file
65.TP
66.I ~/.ltrace.conf
67Personal config file, overrides
68.I /etc/ltrace.conf
69
Juan Cespedes07461b61997-08-22 15:29:10 +020070.SH AUTHOR
Juan Cespedes64e793b1997-09-11 23:22:36 +020071Juan Cespedes <cespedes@debian.org>
Juan Cespedes07461b61997-08-22 15:29:10 +020072
73.SH "SEE ALSO"
74.BR strace(1) ,
75.BR ptrace(2)
76