Source-Changes-HG archive

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

[src/trunk]: src/bin/ps Add a "laddr" keyword, analagous to "paddr". Useful f...



details:   https://anonhg.NetBSD.org/src/rev/5e07cbde7e2d
branches:  trunk
changeset: 569543:5e07cbde7e2d
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Mon Aug 23 16:31:10 2004 +0000

description:
Add a "laddr" keyword, analagous to "paddr". Useful for finding
struct pcb's.

diffstat:

 bin/ps/keyword.c |  5 +++--
 bin/ps/ps.1      |  6 +++++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diffs (46 lines):

diff -r 4ccefc63cd8c -r 5e07cbde7e2d bin/ps/keyword.c
--- a/bin/ps/keyword.c  Mon Aug 23 16:03:57 2004 +0000
+++ b/bin/ps/keyword.c  Mon Aug 23 16:31:10 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: keyword.c,v 1.41 2004/07/28 07:48:22 simonb Exp $      */
+/*     $NetBSD: keyword.c,v 1.42 2004/08/23 16:31:10 nathanw Exp $     */
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)keyword.c  8.5 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: keyword.c,v 1.41 2004/07/28 07:48:22 simonb Exp $");
+__RCSID("$NetBSD: keyword.c,v 1.42 2004/08/23 16:31:10 nathanw Exp $");
 #endif
 #endif /* not lint */
 
@@ -122,6 +122,7 @@
        PVAR("jobc", "JOBC", 0, p_jobc, SHORT, "d"),
        PVAR("ktrace", "KTRACE", 0, p_traceflag, INT, "x"),
 /*XXX*/        PVAR("ktracep", "KTRACEP", 0, p_tracep, KPTR, PRIx64),
+       LVAR("laddr", "LADDR", 0, l_laddr, KPTR, PRIx64),
        LVAR("lid", "LID", 0, l_lid, INT32, "d"),
        {"lim", "LIM", 0, maxrss},
        {"login", "LOGIN", LJUST, logname},
diff -r 4ccefc63cd8c -r 5e07cbde7e2d bin/ps/ps.1
--- a/bin/ps/ps.1       Mon Aug 23 16:03:57 2004 +0000
+++ b/bin/ps/ps.1       Mon Aug 23 16:31:10 2004 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: ps.1,v 1.68 2004/04/23 02:58:27 simonb Exp $
+.\"    $NetBSD: ps.1,v 1.69 2004/08/23 16:31:10 nathanw Exp $
 .\"
 .\" Copyright (c) 1980, 1990, 1991, 1993, 1994
 .\"    The Regents of the University of California.  All rights reserved.
@@ -496,6 +496,10 @@
 tracing flags
 .It ktracep
 tracing vnode
+.It laddr
+kernel virtual address of a
+.Tn "struct lwp"
+belonging to the process.
 .It lid
 ID of the LWP
 .It lim



Home | Main Index | Thread Index | Old Index