PROPHET/OS

NAME

customs: the border to ring 3, and what its books say

SYNOPSIS

customs [--tui]

DESCRIPTION

The border to ring 3, and what its books say.

Every system call out of a program goes through the Zoll before a handler sees it: it holds the rights the call demands against the rights the program carries, and it books the crossing. One row per book:

crossed                calls that reached the border
cleared                let through
seized_no_right        refused, the program lacks the right
seized_bad_pointer     a pointer reached out of the program
seized_unknown_call    there is no such call

Share is the share of the crossings, in percent with one place. On a sound machine cleared stands at 100.0 and every refusal at 0.0, and a row that rises is a program asking for what it may not have. A bad pointer stands out red, the two other refusals yellow.

**The column does not sum to the first row, and that is not a fault.** crossed and cleared are counted at the right gate, which every call passes exactly once, so crossed is cleared plus seized_no_right. A bad pointer and an unknown call are seized after that gate has already let the call through, so both are a share of cleared and not a fourth part beside it.

This is the book of the whole machine. Per process the same six numbers stand in runs --border, with the frames and the milliseconds of each run beside them.

The rows come out of /state/zoll, one row per line, and no name is built into the table: a counter that joins the book shows up here by itself.

--tui takes the whole screen and keeps the rows live, with a bar over the share; q leaves.

EXAMPLE

$ customs --help
customs [--tui]
  the books of the border to ring 3, for the whole machine
  --tui  live on the whole screen, q leaves

SEE ALSO

runs, warden, top, state