]> www.infradead.org Git - users/hch/misc.git/commit
verification/dot2k: Add support for nested monitors
authorGabriele Monaco <gmonaco@redhat.com>
Wed, 5 Mar 2025 14:04:00 +0000 (15:04 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 24 Mar 2025 21:27:40 +0000 (17:27 -0400)
commit2334cf7d0963882a2247e06ef26776f9f98c730c
treedf00c5ffa0be2551efd0aca805eaf4caf5f6c263
parenteba321a16fc6db22cf34d91d997371bed75d0a86
verification/dot2k: Add support for nested monitors

RV now supports nested monitors, this functionality requires a container
monitor, which has virtually no functionality besides holding other
monitors, and nested monitors, that have a container as parent.

Add the -p flag to pass a parent to a monitor, this sets it up while
registering the monitor and adds necessary includes and configurations.
Add the -c flag to create a container, since containers are empty, we
don't allow supplying a dot model or a monitor type, the template is
also different since functions to enable and disable the monitor are not
defined, nor any tracepoint. The generated header file only allows to
include the rv_monitor structure in children monitors.

Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Juri Lelli <juri.lelli@redhat.com>
Link: https://lore.kernel.org/20250305140406.350227-8-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/verification/dot2/dot2k
tools/verification/dot2/dot2k.py
tools/verification/dot2/dot2k_templates/Kconfig
tools/verification/dot2/dot2k_templates/main.c
tools/verification/dot2/dot2k_templates/main_container.c [new file with mode: 0644]
tools/verification/dot2/dot2k_templates/main_container.h [new file with mode: 0644]