diff options
author | peter <peter@FreeBSD.org> | 2003-12-08 22:47:59 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-12-08 22:47:59 +0000 |
commit | 1d2505f78a3f77b00b01ff45fb58b4a4702f6f97 (patch) | |
tree | 581c932ee13ada22b0aa1cf4932717f11210d72d | |
parent | 23f364510d32579daa9742be998973a9fc129166 (diff) | |
download | FreeBSD-src-1d2505f78a3f77b00b01ff45fb58b4a4702f6f97.zip FreeBSD-src-1d2505f78a3f77b00b01ff45fb58b4a4702f6f97.tar.gz |
First pass at attempted debrucification:
- sort the -E switch into the right place.
- add previously missing -p pid in usage (from the last few commits).
- add -E to usage.
- consistently use trfile in the man page.
I knew I shouldn't have touched the man page. If I commit to a man page,
it just makes people suspicious. :-)
-rw-r--r-- | usr.bin/kdump/kdump.1 | 10 | ||||
-rw-r--r-- | usr.bin/kdump/kdump.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/kdump/kdump.1 b/usr.bin/kdump/kdump.1 index f51fbdd..8ad6f43 100644 --- a/usr.bin/kdump/kdump.1 +++ b/usr.bin/kdump/kdump.1 @@ -40,8 +40,8 @@ .Nd display kernel trace data .Sh SYNOPSIS .Nm -.Op Fl dnlERT -.Op Fl f Ar file +.Op Fl dEnlRT +.Op Fl f Ar trfile .Op Fl m Ar maxdata .Op Fl p Ar pid .Op Fl t Op cnisuw @@ -59,7 +59,9 @@ The options are as follows: .Bl -tag -width Fl .It Fl d Display all numbers in decimal. -.It Fl f Ar file +.It Fl E +Display elapsed timestamps (time since beginning of trace). +.It Fl f Ar trfile Display the specified file instead of .Pa ktrace.out . .It Fl l @@ -89,8 +91,6 @@ Display only trace events that correspond to the process .Ar pid . This may be useful when there are multiple processes recorded in the same trace file. -.It Fl E -Display elapsed timestamps (time since beginning of trace). .It Fl R Display relative timestamps (time since previous entry). .It Fl T diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index 397f97c..407c373 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -97,7 +97,7 @@ main(int argc, char *argv[]) (void) setlocale(LC_CTYPE, ""); - while ((ch = getopt(argc,argv,"f:dlm:np:ERTt:")) != -1) + while ((ch = getopt(argc,argv,"f:dElm:np:RTt:")) != -1) switch((char)ch) { case 'f': tracefile = optarg; @@ -574,6 +574,6 @@ void usage(void) { (void)fprintf(stderr, - "usage: kdump [-dnlRT] [-f trfile] [-m maxdata] [-t [cnisuw]]\n"); + "usage: kdump [-dEnlRT] [-f trfile] [-m maxdata] [-p pid] [-t [cnisuw]]\n"); exit(1); } |