Name
strace
Synopsis
strace [options]command[arguments]
Trace the system calls and signals for command and arguments. strace shows you how data is passed between the program and the system kernel. With no options, strace prints a line to standard error for each system call. It shows the call name, arguments given, return value, and any error messages generated. A signal is printed with both its signal symbol and a descriptive string.
Options
-
-an Align the return values in column n.
-
-c Count all calls and signals and create a summary report when the program has ended.
-
-d Debug mode. Print debugging information for strace on standard error.
-e[keyword=][!]valuesPass an expression to strace to limit the types of calls or signals that are traced or to change how they are displayed. If no keyword is given, trace is assumed. The values can be given as a comma-separated list. Preceding the list with an exclamation mark (!) negates the list. The special values all and none are valid, as are the values listed with the following keywords.
-
abbrev=
names Abbreviate output from large structures for system calls listed in names.
-
read=
descriptors Print all data read from the given file descriptors.
-
signal=
symbols Trace the listed signal symbols (for example,
signal=SIGIO,SIGHUP).-
trace=
sets sets may be a list of system call names or one of the following:
|
file |
Calls that take a filename as an argument |
|
ipc |
Interprocess communication |
|
network |
Network-related |
|
process |
Process management ... |