TRACE ( 1 ) USER COMMANDSTRACE ( 1 )


NAME

trace - output a system call trace

SYNOPSIS

trace [ options ] command [arg ...]

DESCRIPTION

By default trace runs command with the specified arguments and displays a trace of each system call, it arguments, and the return value on standard output. Arguments that are long are truncated by default.

OPTIONS

-a
Trace and then display a count for each system call.
-c
Display only a count for each system call.
-o outfile
The trace output will be placed in file outfile.
-f
Equivalent to -i.
-i
Tracing will be inherited by child processes.
-t
Precede each call with the time in machine cycles that the call started.
-v
The output will be more verbose by not truncating long arguments.

EXIT STATUS

If successful, the exit status of trace will that of command. Otherwise, it will be one of the following
126
command was found but could not be invoked.
127
An error occurred in trace or command could not be found.

SEE ALSO

traceit(1)

IMPLEMENTATION

version
trace (AT&T Labs Research) 2002-06-20
author
David Korn <dgkorn@gmail.com>
author
Glenn Fowler <glenn.s.fowler@gmail.com >
license
http://www.research.att.com/sw/tools/reuse