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 Do not display individual system calls.
41 Instead, before exiting, print a summary containing for each system call:
42 the total system time used,
43 the number of times the call was invoked,
44 and the number of times the call returned with an error.
46 Show the environment strings that are passed in each
50 Include timestamps in the output showing the time elapsed
51 since the trace was started.
53 Include timestamps in the output showing the time elapsed
54 since the last recorded event.
56 Do not display information about signals received by the process.
59 displays signal as well as system call events.)
61 Print the output to the specified
63 instead of standard error.
65 Display strings using at most
68 If the buffer is larger,
70 will be displayed at the end of the string.
75 Follow the process specified by
77 instead of a new command.
78 .It Ar command Op Ar args
81 and trace the system calls of it.
86 options are mutually exclusive.)
89 # Follow the system calls used in echoing "hello"
90 .Dl $ truss /bin/echo hello
91 # Do the same, but put the output into a file
92 .Dl $ truss -o /tmp/truss.out /bin/echo hello
93 # Follow an already-running process
102 command was written by
107 similar commands available for System V Release 4 and SunOS.