]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
verification/dot2k: Prepare the frontend for LTL inclusion
authorNam Cao <namcao@linutronix.de>
Fri, 4 Jul 2025 13:20:01 +0000 (15:20 +0200)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 24 Jul 2025 14:42:46 +0000 (10:42 -0400)
commitb6c62aa7914b386c4a8983ec3a537399f523cf18
tree5a30f8579a928afe1f45afe0e0d8f47547e8bab7
parent5270a0e3041cba8aef76aaf62408313b9cd4ad9f
verification/dot2k: Prepare the frontend for LTL inclusion

The dot2k tool has some code that can be reused for linear temporal logic
monitor. Prepare its frontend for LTL inclusion:

  1. Rename to be generic: rvgen

  2. Replace the parameter --dot with 2 parameters:
     --class: to specific the monitor class, can be 'da' or 'ltl'
     --spec: the monitor specification file, .dot file for DA, and .ltl
             file for LTL

The old command:

  python3 dot2/dot2k monitor -d wip.dot -t per_cpu

is equivalent to the new commands:

  python3 rvgen monitor -c da -s wip.dot -t per_cpu

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/dea18f7a44374e4db8df5c7e785604bc3062ffc9.1751634289.git.namcao@linutronix.de
Reviewed-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
12 files changed:
tools/verification/rvgen/Makefile [moved from tools/verification/dot2/Makefile with 55% similarity]
tools/verification/rvgen/__main__.py [moved from tools/verification/dot2/dot2k with 72% similarity]
tools/verification/rvgen/dot2c [moved from tools/verification/dot2/dot2c with 97% similarity]
tools/verification/rvgen/dot2k_templates/Kconfig [moved from tools/verification/dot2/dot2k_templates/Kconfig with 100% similarity]
tools/verification/rvgen/dot2k_templates/Kconfig_container [moved from tools/verification/dot2/dot2k_templates/Kconfig_container with 100% similarity]
tools/verification/rvgen/dot2k_templates/main.c [moved from tools/verification/dot2/dot2k_templates/main.c with 100% similarity]
tools/verification/rvgen/dot2k_templates/main_container.c [moved from tools/verification/dot2/dot2k_templates/main_container.c with 100% similarity]
tools/verification/rvgen/dot2k_templates/main_container.h [moved from tools/verification/dot2/dot2k_templates/main_container.h with 100% similarity]
tools/verification/rvgen/dot2k_templates/trace.h [moved from tools/verification/dot2/dot2k_templates/trace.h with 100% similarity]
tools/verification/rvgen/rvgen/automata.py [moved from tools/verification/dot2/automata.py with 100% similarity]
tools/verification/rvgen/rvgen/dot2c.py [moved from tools/verification/dot2/dot2c.py with 99% similarity]
tools/verification/rvgen/rvgen/dot2k.py [moved from tools/verification/dot2/dot2k.py with 98% similarity]