From e807b34007e6b962b3d6bfdba3c62635cc0e405a Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 29 Jun 2012 15:24:55 +0000 Subject: [PATCH] MFC 236577: Allow the -p argument to kdump to accept either a PID or a thread ID. git-svn-id: svn://svn.freebsd.org/base/stable/8@237790 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.bin/kdump/kdump.1 | 6 +++--- usr.bin/kdump/kdump.c | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/usr.bin/kdump/kdump.1 b/usr.bin/kdump/kdump.1 index 76a406682..3ab650017 100644 --- a/usr.bin/kdump/kdump.1 +++ b/usr.bin/kdump/kdump.1 @@ -32,7 +32,7 @@ .\" @(#)kdump.1 8.1 (Berkeley) 6/6/93 .\" $FreeBSD$ .\" -.Dd April 20, 2012 +.Dd June 4, 2012 .Dt KDUMP 1 .Os .Sh NAME @@ -90,9 +90,9 @@ string. Suppressing this feature yields a more consistent output format and is easily amenable to further processing. .It Fl p Ar pid -Display only trace events that correspond to the process +Display only trace events that correspond to the process or thread .Ar pid . -This may be useful when there are multiple processes recorded in the +This may be useful when there are multiple processes or threads recorded in the same trace file. .It Fl R Display relative timestamps (time since previous entry). diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index f5ce07f7e..560b5c538 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -253,7 +253,8 @@ main(int argc, char *argv[]) } } if (trpoints & (1<