svn commit: r330130 - stable/11/bin/ps
John Baldwin
jhb at FreeBSD.org
Wed Feb 28 21:49:45 UTC 2018
Author: jhb
Date: Wed Feb 28 21:49:44 2018
New Revision: 330130
URL: https://svnweb.freebsd.org/changeset/base/330130
Log:
MFC 328306: Remove some KSE references from ps(1).
- Simplify the description of -H to assume 1:1 threading.
- Drop 'process' from description of 'lwp' field and the corresponding
XO field name.
- Do add an expansion of LWP in the description of 'lwp' and 'nlwps'.
- Add 'tid' as an alias for the 'lwp' field.
Modified:
stable/11/bin/ps/keyword.c
stable/11/bin/ps/ps.1
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/bin/ps/keyword.c
==============================================================================
--- stable/11/bin/ps/keyword.c Wed Feb 28 21:41:52 2018 (r330129)
+++ stable/11/bin/ps/keyword.c Wed Feb 28 21:49:44 2018 (r330130)
@@ -120,7 +120,7 @@ static VAR var[] = {
{"logname", "", "login", NULL, 0, NULL, 0, CHAR, NULL, 0},
{"lstart", "STARTED", NULL, "start-time", LJUST|USER, lstarted, 0,
CHAR, NULL, 0},
- {"lwp", "LWP", NULL, "process-thread-id", 0, kvar, KOFF(ki_tid), UINT,
+ {"lwp", "LWP", NULL, "thread-id", 0, kvar, KOFF(ki_tid), UINT,
LWPFMT, 0},
{"majflt", "MAJFLT", NULL, "major-faults", USER, rvar, ROFF(ru_majflt),
LONG, "ld", 0},
@@ -202,6 +202,7 @@ static VAR var[] = {
{"tdnam", "", "tdname", NULL, 0, NULL, 0, CHAR, NULL, 0},
{"tdname", "TDNAME", NULL, "thread-name", LJUST, tdnam, 0, CHAR,
NULL, 0},
+ {"tid", "", "lwp", NULL, 0, NULL, 0, CHAR, NULL, 0},
{"time", "TIME", NULL, "cpu-time", USER, cputime, 0, CHAR, NULL, 0},
{"tpgid", "TPGID", NULL, "terminal-process-gid", 0, kvar,
KOFF(ki_tpgid), UINT, PIDFMT, 0},
Modified: stable/11/bin/ps/ps.1
==============================================================================
--- stable/11/bin/ps/ps.1 Wed Feb 28 21:41:52 2018 (r330129)
+++ stable/11/bin/ps/ps.1 Wed Feb 28 21:49:44 2018 (r330130)
@@ -29,7 +29,7 @@
.\" @(#)ps.1 8.3 (Berkeley) 4/18/94
.\" $FreeBSD$
.\"
-.Dd October 9, 2017
+.Dd January 23, 2018
.Dt PS 1
.Os
.Sh NAME
@@ -148,12 +148,7 @@ This option is honored only if the UID of the user is
Display information about processes which are running with the specified
real group IDs.
.It Fl H
-Show all of the
-.Em kernel visible
-threads associated with each process.
-Depending on the threading package that
-is in use, this may show only the process, only the kernel scheduled entities,
-or all of the process threads.
+Show all of the threads associated with each process.
.It Fl h
Repeat the information header as often as necessary to guarantee one
header per page of information.
@@ -588,7 +583,8 @@ login name of user who started the session
.It Cm lstart
time started
.It Cm lwp
-process thread-id
+thread (light-weight process) ID (alias
+.Cm tid )
.It Cm majflt
total page faults
.It Cm minflt
@@ -605,7 +601,7 @@ nice value (alias
.It Cm nivcsw
total involuntary context switches
.It Cm nlwp
-number of threads tied to a process
+number of threads (light-weight processes) tied to a process
.It Cm nsigs
total signals taken (alias
.Cm nsignals )
More information about the svn-src-stable
mailing list