Sync manpage and usage. Also fix bug that would always interpret a -c as a
process clear. PR: bin/15456 MFC after: 2 weeks
This commit is contained in:
parent
1e4d37f7c2
commit
71ab6ae0a0
@ -42,8 +42,7 @@
|
||||
.Nm
|
||||
.Op Fl aCcdi
|
||||
.Op Fl f Ar trfile
|
||||
.Op Fl g Ar pgrp
|
||||
.Op Fl p Ar pid
|
||||
.Op Fl g Ar pgrp | Fl p Ar pid
|
||||
.Op Fl t Ar trstr
|
||||
.Nm
|
||||
.Op Fl adi
|
||||
|
@ -131,7 +131,7 @@ main(argc, argv)
|
||||
trpoints = ALL_POINTS;
|
||||
pid = 1;
|
||||
} else
|
||||
ops |= pid ? KTROP_CLEAR : KTROP_CLEARFILE;
|
||||
ops |= pidset ? KTROP_CLEAR : KTROP_CLEARFILE;
|
||||
|
||||
if (ktrace(tracefile, ops, trpoints, pid) < 0)
|
||||
err(1, "%s", tracefile);
|
||||
@ -186,8 +186,8 @@ void
|
||||
usage()
|
||||
{
|
||||
(void)fprintf(stderr, "%s\n%s\n",
|
||||
"usage: ktrace [-aCcid] [-f trfile] [-g pgid] [-p pid] [-t [cnisuv]",
|
||||
" ktrace [-aCcid] [-f trfile] [-t [cnisuw] command");
|
||||
"usage: ktrace [-aCcdi] [-f trfile] [-g pgrp | -p pid] [-t cnisuw]",
|
||||
" ktrace [-adi] [-f trfile] [-t cnisuw] command");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user