Page MenuHomeFreeBSD

D14021.id38356.diff
No OneTemporary

D14021.id38356.diff

Index: bin/ps/keyword.c
===================================================================
--- bin/ps/keyword.c
+++ bin/ps/keyword.c
@@ -122,7 +122,7 @@
{"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},
@@ -204,6 +204,7 @@
{"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},
Index: bin/ps/ps.1
===================================================================
--- bin/ps/ps.1
+++ bin/ps/ps.1
@@ -29,7 +29,7 @@
.\" @(#)ps.1 8.3 (Berkeley) 4/18/94
.\" $FreeBSD$
.\"
-.Dd December 1, 2017
+.Dd January 23, 2018
.Dt PS 1
.Os
.Sh NAME
@@ -148,12 +148,7 @@
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 @@
.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 @@
.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 )

File Metadata

Mime Type
text/plain
Expires
Mon, Aug 31, 9:35 AM (5 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37674008
Default Alt Text
D14021.id38356.diff (2 KB)

Event Timeline