1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-26 07:55:01 +00:00
freebsd/bin/ps
Mark Johnston c7f893a42b ps(1): Fix formatting of the "command" field for kernel threads.
When -H is specified, for kernel threads the command is formatted as
"<proc name>/<td name>" and truncated to MAXCOMLEN.  But each of the
proc name and td name may be up to MAXCOMLEN bytes in length.

Also handle the ki_moretdname field to ensure that the full thread name
gets printed.  This is already handled correctly when formatting for
"-o tdname".

Reported by:	freqlabs
Reviewed by:	freqlabs
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D25840
2020-07-28 15:26:19 +00:00
..
extern.h ps(1): don't try to handle non-SMP systems 2020-06-27 20:01:56 +00:00
fmt.c
keyword.c ps(1): reuse keyword "cpu" to show CPU number 2020-06-27 19:09:33 +00:00
Makefile
Makefile.depend
nlist.c
print.c Update to D25266, bin/ps: Make the rtprio option actually show 2020-07-14 18:57:31 +00:00
ps.1 ps(1): reuse keyword "cpu" to show CPU number 2020-06-27 19:09:33 +00:00
ps.c ps(1): Fix formatting of the "command" field for kernel threads. 2020-07-28 15:26:19 +00:00
ps.h