diff options
author | charnier <charnier@FreeBSD.org> | 1998-01-05 07:30:26 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1998-01-05 07:30:26 +0000 |
commit | 50a2f19faf04789c616b36d4189518348133defd (patch) | |
tree | ed1c8227c4302868a3fab2c3c3407212a3d23ba1 /usr.bin/truss/truss.1 | |
parent | c6e23310826f8815f9a35abdb657254ef4e47d66 (diff) | |
download | FreeBSD-src-50a2f19faf04789c616b36d4189518348133defd.zip FreeBSD-src-50a2f19faf04789c616b36d4189518348133defd.tar.gz |
Sort Xrefs. Use err(3). Remove uneeded #include.
Correct usage: one of {-p pid, command} is required.
Open output file when command line is fully analyzed: incorrect `truss -o f'
command does not create an empty file anymore.
Diffstat (limited to 'usr.bin/truss/truss.1')
-rw-r--r-- | usr.bin/truss/truss.1 | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/usr.bin/truss/truss.1 b/usr.bin/truss/truss.1 index e3cdb5f..0cfabea 100644 --- a/usr.bin/truss/truss.1 +++ b/usr.bin/truss/truss.1 @@ -2,35 +2,41 @@ .Dt TRUSS 1 .Os FreeBSD .Sh NAME -.Nm \&truss +.Nm truss .Nd trace system calls -.Sh Synopsis -.Nm \&truss +.Sh SYNOPSIS +.Nm truss +.Op Fl S +.Op Fl o Ar file +.Fl p Ar pid +.Nm truss .Op Fl S -.Op Fl p Ar pid .Op Fl o Ar file command +.Op args .Sh DESCRIPTION -.Nm \&truss +.Nm Truss traces the system calls called by the specified process or program. Output is to the specified output file, or standard error by default. It does this by stopping and restarting the process being monitored via .Xr procfs 5 . .Pp The options are as follows: -.Bl -tag -width command +.Bl -tag -width indent .It Fl S Do not display information about signals received by the process. (Normally, -.Nm \&truss +.Nm displays signal as well as system call events.) -.It Fl p +.It Fl o Ar file +Print the output to the specified +.Ar file +instead of standard error. +.It Fl p Ar pid Follow the process specified by .Ar pid instead of a new command. -.It Fl o -Print the output to the specified file instead of standard error. -.It Ar command +.It Ar command Op args Execute .Ar command and trace the system calls of it. @@ -47,11 +53,15 @@ options are mutually exclusive.) # Follow an already-running process .Dl $ truss -p 1 .Sh SEE ALSO -.Xr procfs 5 , +.Xr kdump 1 , .Xr ktrace 1 , -.Xr kdump 1 +.Xr procfs 5 .Sh HISTORY The -.Nm truss -command was written by Sean Eric Fagan for FreeBSD; it was modeled after +.Nm +command was written by +.An Sean Eric Fagan +for +.Bx Free Ns ; +it was modeled after similar commands available for System V Release 4 and SunOS. |