Name
ltrace
Synopsis
ltrace [options
]command
[arguments
]
Trace the dynamic library calls for command and arguments. ltrace can also trace and print the system calls. It is very similar to strace (see also strace).
Options
-
-a
n
Align the return values in column n.
-
-c
Count all calls and signals and create a summary report when the program has ended.
-C
,--demangle
Demangle C++ encoded names.
-d
,--debug
Debug mode. Print debugging information for ltrace on standard error.
-e
[
keyword
=
][!
]values
Pass an expression to ltrace to limit the types of calls or signals that are traced or to change how they are displayed. See strace for the full list.
-
-f
Trace forked processes.
-h
,--help
Print help and exit.
-
-i
Print instruction pointer with each system call.
-l
file
,--library
file
Print only the symbols from library file. Up to 20 files may be specified.
-
-L
Do not display library calls. Use together with
-S
.-n
count
,--indent
count
Indent trace output by count spaces for each new nested function call.
-o
filename
,--output
filename
Write output to filename instead of standard error. If filename starts with the pipe symbol |, treat the rest of the name as a command to which output should be piped.
-
-p
pid
Attach to the given process ID and begin tracking. ltrace can track more than one process if more than one
-p
option is given. Type CTRL-C to end the trace.-
-r
Relative timestamp. Print time in microseconds between system calls.
-
-s
n
Print only the first n characters of a string. Default value is 32.
-
-S
Display ...
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.