19 .Ar command Op Ar args
23 utility traces the system calls called by the specified process or program.
24 Output is to the specified output file, or standard error by default.
25 It does this by stopping and restarting the process being monitored via
28 The options are as follows:
29 .Bl -tag -width indent
31 Trace descendants of the original traced process created by
36 Show the argument strings that are passed in each
40 Show the environment strings that are passed in each
44 Include timestamps in the output showing the time elapsed
45 since the trace was started.
47 Include timestamps in the output showing the time elapsed
48 since the last recorded event.
50 Do not display information about signals received by the process.
53 displays signal as well as system call events.)
55 Print the output to the specified
57 instead of standard error.
59 Display strings using at most
62 If the buffer is larger,
64 will be displayed at the end of the string.
69 Follow the process specified by
71 instead of a new command.
72 .It Ar command Op Ar args
75 and trace the system calls of it.
80 options are mutually exclusive.)
83 # Follow the system calls used in echoing "hello"
84 .Dl $ truss /bin/echo hello
85 # Do the same, but put the output into a file
86 .Dl $ truss -o /tmp/truss.out /bin/echo hello
87 # Follow an already-running process
96 command was written by
101 similar commands available for System V Release 4 and SunOS.