summaryrefslogtreecommitdiff
path: root/usr.bin/kdump
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-07-18 09:36:51 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-07-18 09:36:51 +0000
commite05990b64643e87848b0dce135ca2fb307685c12 (patch)
treecf04f85114e0541b01e318fc1950f23e1d49584c /usr.bin/kdump
parent2c847ce2ccc6b0c0da8fe944714c0935b29f341c (diff)
Add 'p' trace point for KTRFAC_PLEDGE, as noted by
Michal Mazurek <akfaew@jasminek.net> While here, fix handling of -t+ in ltrace.
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r--usr.bin/kdump/kdump.18
-rw-r--r--usr.bin/kdump/kdump.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/kdump/kdump.1 b/usr.bin/kdump/kdump.1
index b777a186def..4369b3f865d 100644
--- a/usr.bin/kdump/kdump.1
+++ b/usr.bin/kdump/kdump.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: kdump.1,v 1.31 2016/06/02 22:47:13 tedu Exp $
+.\" $OpenBSD: kdump.1,v 1.32 2016/07/18 09:36:50 guenther Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" from: @(#)kdump.1 8.1 (Berkeley) 6/6/93
.\"
-.Dd $Mdocdate: June 2 2016 $
+.Dd $Mdocdate: July 18 2016 $
.Dt KDUMP 1
.Os
.Sh NAME
@@ -41,7 +41,7 @@
.Op Fl f Ar file
.Op Fl m Ar maxdata
.Op Fl p Ar pid
-.Op Fl t Op Cm cinstuxX+
+.Op Fl t Op Cm cinpstuxX+
.Sh DESCRIPTION
.Nm
displays the kernel trace files produced with
@@ -94,7 +94,7 @@ Display relative timestamps (time since previous entry).
Display absolute timestamps for each entry (seconds since the Epoch).
.It Fl TR
If both options are specified, display timestamps relative to trace start.
-.It Fl t Op Cm cinstuxX+
+.It Fl t Op Cm cinpstuxX+
Selects which tracepoints to display.
See the
.Fl t
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index ca2a4790dbb..da5c51ce0db 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kdump.c,v 1.128 2016/06/02 22:47:13 tedu Exp $ */
+/* $OpenBSD: kdump.c,v 1.129 2016/07/18 09:36:50 guenther Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -192,7 +192,7 @@ main(int argc, char *argv[])
timestamp = timestamp == 2 ? 3 : 1;
break;
case 't':
- trpoints = getpoints(optarg);
+ trpoints = getpoints(optarg, DEF_POINTS);
if (trpoints < 0)
errx(1, "unknown trace point in %s", optarg);
break;
@@ -1384,7 +1384,7 @@ usage(void)
extern char *__progname;
fprintf(stderr, "usage: %s "
"[-dHlnRTXx] [-f file] [-m maxdata] [-p pid]\n"
- "%*s[-t [cinstuxX+]]\n",
+ "%*s[-t [cinpstuxX+]]\n",
__progname, (int)(sizeof("usage: ") + strlen(__progname)), "");
exit(1);
}