| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
The assert demanded sizeof == 188, which is the end of the csa field; the
struct itself is 192 because save[] makes it 8-byte aligned. Linux built
it silently -- the check is inside #if defined(__MVS__) -- and the first
z/OS build failed on it. Assert the end of the last field instead, which
is what the stub's interface actually ends at and does not depend on how
the compiler pads a struct.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Two changes that share files -- the views, and the screen they are drawn
on -- so one commit; splitting them would mean splitting src/ztop.c and
tui/tui.h by hunk, which is not a split a reviewer could follow.
The views. Seven tabs instead of four: PS (w_getpsent), FS (w_getmntent
plus statvfs) and LOG, a read-only extended MCS console behind -c. LOG
needs supervisor state, so MCSOPER and MCSOPMSG live in src/zmcs.s: it
switches to supervisor state, calls the macro, switches back, and hands
the caller a copy of the message data block. src/mdb.c walks that MDB
(IEAVM105) for the job name and the text line, and is separate from
src/ztop.c because it is the one place ztop parses bytes written by
another address space, so it is worth a test that runs anywhere. The
small structs become C23 typedefs, src/vsm.c keeps the 16M line apart,
and README lists the seven views and the keys they moved.
The screen. The frame, the meters and the scrollbar were the last parts
that said "curses". Borders and meters are now the DEC Special Graphics
set, designated into G0 with ESC ( 0 and released with ESC ( B, with a
fallback to + - | # when TERM is not one we know; the meters are shade
fill over a horizontal rule instead of a [#### ] bar; table selection
is a background colour instead of reverse video, which is the tell almost
everyone recognises as curses; the tab row separates with a gap instead
of |; titles are a dim style and the frame is grey so the accent colour
means selection. The designation is tracked per cell, because an SGR
reset does not leave the graphics set, and only the cells that carry a
border glyph pay for it -- six bytes a row at 80 columns. Everything
stays 7-bit ASCII in the source, which is what .gitattributes now
enforces for the whole tree: one rule, ISO8859-1 in the working tree,
the same line the zopen git port uses, so a checkout on z/OS is tagged
ASCII for make, sh, awk and the compiler and no file needs a hand tag.
Verified on Linux: make test TESTCC=cc green (test_vsm, test_sys,
test_mdb, tui/test_tui, leakcheck), make tidy adds no finding to the ten
that predate this, src/ztop.c passes -fsyntax-only with the project's
warnings. The frame was checked against a painted screen with
tests/screen.py, which now understands ESC ( 0. Not yet built on z/OS:
the CBT build, make check and make leakcheck run after the push and the
PR carries their result.
|
| |
|
|
|
| |
Only CSA and PVT are asked for unallocated blocks; SQA and LSQA keep the
dash, because their totals are not knowable this way.
|
| |
|
|
|
|
| |
The percent now sits next to the bar instead of floating, the unallocated
total is in the same units as the table, and the headers read USED like
the rest of the row.
|
| |
|
|
|
|
| |
The help box is a titled frame with the same hint rows as the bar, the
subpool panel labels its values dim, and the bottom line names the keys
that matter for the view instead of one fixed string.
|
| |
|
|
|
|
|
| |
RPTSTG, RPTOPTS and HEAPCHK will not find what the program never asks
for, but they do see every get and every free. Every one-shot mode now
runs under them and the storage report is checked for a heap request
that was never returned.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
s changes the sort column and S reverses it; the header shows the column
and direction. Enter opens a panel with every field of the selected
subpool. The status line now shows what is under the cursor instead of
just PAUSED.
|
| |
|
|
|
|
|
| |
Enable xterm SGR mouse reporting and decode it into TUI_MSG_MOUSE. ztop
uses it for the view tabs, the storage sub-tabs, table rows and the
wheel. The help panel now lists navigation explicitly, and the status
line shows the keys for the current view.
|
| |
|
|
| |
This reverts commit 5f8909cf7beeefa6318c795f8bf52b4b9f4361ae.
|
| |
|
|
|
|
|
| |
Enable xterm SGR mouse reporting and decode it into TUI_MSG_MOUSE. ztop
uses it for the view tabs, the storage sub-tabs, table rows and the
wheel. The help panel now lists navigation explicitly, and the status
line shows the keys for the current view.
|
| |
|
|
|
|
| |
`ztop` with no arguments printed the one-shot CSA report even on a tty,
which is not what a person expects from a monitor. Now a terminal and no
report option means the TUI; -a, -s, -j, -x and a pipe keep the text.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The screen code moves to tui/ as a small toolkit: a cell buffer with a
diffing flush, a message loop in the shape of Bubble Tea (model, update,
view, ticks), and widgets for a viewport, a table, tabs, a text input,
a progress bar and a status line. ztop is now one user of it.
ztop grows two views beside storage: SYSTEM (CVS name, release, address
space count) and JOBS (one line per ASCB, from the CVT and ASVT, which
need no authorization). Views are tabs; each table keeps its own
selection and scroll position.
Follows the zash code style: doxygen headers, .clang-format, POSIX make.
|
| |
|
|
|
| |
The first region ran into the word 'regions' and later ones had no
separator. The README sample is now what the tool actually prints.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
HLASM upcases the CSECT name, so the C declaration needs the ZVSLIST asm
label (the binder otherwise reports it unresolved). /bin/cc on z/OS is
the old XL C compiler and rejects -std=c17; tests build with ibm-clang,
and the README says to override TESTCC=cc on a Linux host.
Also note the Makefile's own chtag step: after a git checkout it can be
tagged UTF-8, and make spins reading it until it is ISO8859-1.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
An assembler CSECT in an XPLINK load module is read-only: reading a word
out of it works, the first store into it takes a 0C4. So the stub keeps
its save area and the request pointer in the C block, and it addresses
everything off R1, R2 and R13, which also removes the literal pool.
|
| |
|
|
|
|
|
| |
From an XPLINK caller the compiler cannot provide an initialized save
area chain, so a plain assembler routine takes OS31_NOSTACK: register 13
points at a 72-byte save area, no glue code, and the usual upward-stack
prolog works (z/OS XL C/C++ Programming Guide, kinds of linkage).
|
| |
|
|
|
|
| |
#pragma linkage(zvslist, OS) left the call cdecl, and the binder refused
the reference (IEW2469E, attributes do not match) -- and through the call
that did link, main program-checked at the call site.
|
| |
|
|
|
|
|
| |
An OS_UPSTACK call from -m32 XPLINK code program-checked at the call site
under the test program, so the stub now takes plain OS linkage (as zash
does for BPXWDY2) and keeps its own save area instead of chaining into the
caller's frame.
|
| | |
|
| |
|
|
|
|
| |
The binder resolves zvslist by its ESD name; HLASM is case sensitive so the
CSECT is spelled in lower case. putchar('\n') expands to a char subscript
warning inside stdio.h.
|
|
|
VSMLIST is the only documented interface for this that an ordinary user
task may call; it is a macro, so src/zvslist.s issues it and the rest is
C23. Snapshot only for now: no refresh loop, no limit column.
|