From: Wei Li <redacted>
A container groups nested monitors. The user could not see their
divergences: the reactors file did not show when a nested monitor
uses a different reactor, and the enable file reported only 0 or 1
even when just some nested monitors were on. Switching the reactor
of a container also re-enabled every nested monitor, including the
ones the user left off.
This series makes the states visible and the updates consistent:
- print a "*" next to the selected reactor of a diverged container
- show "X" in the enable file of a partially enabled container
- update the reactor with the monitor quiesced, so every monitor
keeps its enabled state across the swap
Wei Li (6):
rv: Mark diverged child reactors with a star
rv: Update monitors through a quiesce helper
rv: Show the mixed enable state of containers
Documentation/rv: Document the enable and reactor states
tools/rv: Parse the mixed enable state of containers
rv: Do not send the trailing NUL to userspace
.../trace/rv/runtime-verification.rst | 6 +-
include/linux/rv.h | 12 ++-
kernel/trace/rv/rv.c | 101 ++++++++++++++++--
kernel/trace/rv/rv.h | 2 +
kernel/trace/rv/rv_reactors.c | 56 +++++-----
tools/verification/rv/src/in_kernel.c | 32 ++++--
tools/verification/rv/tests/rv_list.t | 2 +-
7 files changed, 164 insertions(+), 47 deletions(-)
--
2.55.0