Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/crash add an example shell pipeline that will print...



details:   https://anonhg.NetBSD.org/src/rev/216589df4a64
branches:  trunk
changeset: 449780:216589df4a64
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Mar 23 02:07:32 2019 +0000

description:
add an example shell pipeline that will print *all* kernel stack traces.
bump date.

diffstat:

 usr.sbin/crash/crash.8 |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 7b5140a30fb8 -r 216589df4a64 usr.sbin/crash/crash.8
--- a/usr.sbin/crash/crash.8    Fri Mar 22 11:09:43 2019 +0000
+++ b/usr.sbin/crash/crash.8    Sat Mar 23 02:07:32 2019 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: crash.8,v 1.7 2017/07/03 21:35:30 wiz Exp $
+.\"    $NetBSD: crash.8,v 1.8 2019/03/23 02:07:32 mrg Exp $
 .\"
 .\" Copyright (c) 2009 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd December 10, 2016
+.Dd March 22, 2019
 .Dt CRASH 8
 .Os
 .Sh NAME
@@ -83,6 +83,13 @@
 crash> ps | more
 crash> ps | grep ioflush
 .Ed
+.Sh EXAMPLES
+You can obtain a full list of all kernel stack traces with a shell pipeline
+like the following:
+.Bd -literal -offset abcd
+# echo ps | crash | grep '^[0-9]' | cut -c 30-46 | \\
+  sed 's,^,bt/a ,' | crash
+.Ed
 .Sh SEE ALSO
 .Xr ps 1 ,
 .Xr vmstat 1 ,



Home | Main Index | Thread Index | Old Index