diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 20:36:47 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 20:36:47 -0600 |
| commit | 8f2578664a1420759f2a0e29e27d128a7d3e2567 (patch) | |
| tree | 8ae3e40922dd2921b6a82d441d2345a8a7c35522 /tests/git@git.abendless.com:/srv | |
| parent | ddeb7f2effb7f7a3ff3b183a741121e21e409f45 (diff) | |
| download | ztop-8f2578664a1420759f2a0e29e27d128a7d3e2567.tar.gz | |
ztop: parse the VSMLIST answer, add a full-screen view
The old parser scanned from offset 4, which is the data-area pointer, not
the data. Read the documented framing instead: the work area's first word
is the service return code, then the address and length of the data area.
Continuation (rc=4) reuses the same work area and must not clear that word,
so the request build now happens once and each piece is merged.
Parsing follows the reference: subpool descriptors, allocated blocks with
their free descriptors (used = block length - free), unallocated regions
and holes for CSA and PVT. CSA gets a total and a percentage; the other
areas do not have that request.
The display is a small cell-buffer TUI: diffed output, ASCII box drawing,
termios raw input, CPR sizing because TIOCGWINSZ reports zero on z/OS, and
EBCDIC ESC on __MVS__. One-shot output stays exact bytes for grep.
tests/test_vsm.c builds synthetic data areas for the parser and runs on
any host; tests/demo_tui.c exercises the terminal layer.
Diffstat (limited to 'tests/git@git.abendless.com:/srv')
0 files changed, 0 insertions, 0 deletions
