Re: [PATCH V4 15/20] Documentation/rv: Add deterministic automata monitor synthesis documentation

From: Steven Rostedt
Date: Tue Jun 28 2022 - 15:09:41 EST


On Thu, 16 Jun 2022 10:44:57 +0200
Daniel Bristot de Oliveira <bristot@xxxxxxxxxx> wrote:

> +DA monitor synthesis in a nutshell
> +------------------------------------------------------
> +
> +The synthesis of automata-based models into the Linux *RV monitor* abstraction
> +is automated by a tool named "dot2k", and the "rv/da_monitor.h" provided
> +by the RV interface.
> +
> +Given a file "wip.dot", representing a per-cpu monitor, with this content::

Specify what "wip" is here too.

-- Steve

> +
> + digraph state_automaton {
> + center = true;
> + size = "7,11";
> + rankdir = LR;
> + {node [shape = circle] "non_preemptive"};
> + {node [shape = plaintext, style=invis, label=""] "__init_preemptive"};
> + {node [shape = doublecircle] "preemptive"};
> + {node [shape = circle] "preemptive"};
> + "__init_preemptive" -> "preemptive";
> + "non_preemptive" [label = "non_preemptive"];
> + "non_preemptive" -> "non_preemptive" [ label = "sched_waking" ];
> + "non_preemptive" -> "preemptive" [ label = "preempt_enable" ];
> + "preemptive" [label = "preemptive"];
> + "preemptive" -> "non_preemptive" [ label = "preempt_disable" ];
> + { rank = min ;
> + "__init_preemptive";
> + "preemptive";
> + }
> + }
> +