HomeFreeBSD

In ddb ps, left justify the non-numeric fields 'state' and 'wmesg' and

Description

In ddb ps, left justify the non-numeric fields 'state' and 'wmesg' and
the fixed-width numeric field 'wchan', as in ps(1). They were sort
of centered, although the template shows 'state' as right-justified.
The `wmesg' field very rarely has a prefix of '*' (for lock names)
that is still to the left of the header, and the width of this field
is reduced from 8 to 7 (more than 6 is an error).

The 'wmesg' and 'wchan' fields are still misnamed and poorly handled.
They are named sort of backwards relative to ps(1):

  • wmesg in ddb = mwchan in ps
  • wmesg in ddb = wchan in ps (if it is a wait channel name, not a lock name)
  • wchan in ddb = nwchan in ps

ddb ps wastes lots of space for the unimportant 'wchan' field (20
columns altogether on 64-bit arches). ps(1) documents using a
compressed format, but the compression only omits leading nybbles of
0 so it has neveqr worked on arches that put the kernel in the top half
of the address space. It just avoids wasting space for an 0x prefix.

Details

Provenance
bdeAuthored on
Parents
rS304079: MFC r303955:
Branches
Unknown
Tags
Unknown