freebsd-dev/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 General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
keyword.c ps(1): reuse keyword "cpu" to show CPU number 2020-06-27 19:09:33 +00:00
Makefile Explicitly add unmarked bin/ binaries to the runtime package. 2016-02-09 16:58:50 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
nlist.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
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 General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00