Add Hybrid Automata monitor type, per-object and deadline monitors
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v8 Latest12 patches 1 replyIn review
- v715 patches 9 repliesSuperseded
- v616 patches 15 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 | 15 patches | 5 replies | Superseded | |
| v4 | 15 patches | 9 replies | Superseded | |
| v3 | 13 patches | 17 replies | Applied | |
| v2 | 20 patches | 36 replies | Superseded | |
| v1 RFC | 17 patches | 42 replies | Superseded |
Changes in v8 from the cover letter
* Fix wrong title in monitor_deadline docs
* Warn if kallsyms lookup fails
* Minor improvement in hybrid automata docs
* Use u8 instead of uint8_t in deadline tracepoints and models
* Drop enqueue/dequeue tracepoints and dependent patches from the series, will submit separately
Patches in v8 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | Unify DA event handling functions across monitor typesinclude/ | +132 | 0 replies | |
| 2/12 | Add Hybrid Automata monitor typeinclude/ include/ include/ +2 more | +658 | 0 replies | |
| 3/12 | verification/rvgen: Allow spaces in and events stringstools/ | +4 | 0 replies | |
| 4/12 | verification/rvgen: Add support for Hybrid Automatatools/ tools/ tools/ +4 more | +679 | 0 replies | |
| 5/12 | Documentation/rv: Add documentation about hybrid automataDocumentation/ Documentation/ Documentation/ +1 more | +458 | 0 replies | |
| 6/12 | Add sample hybrid monitor stallDocumentation/ Documentation/ Documentation/ +9 more | +377 | 0 replies | |
| 7/12 | Convert the opid monitor to a hybrid automatonDocumentation/ kernel/ kernel/ +4 more | +82 | 0 replies | |
| 8/12 | Add support for per-object monitors in DA/HAinclude/ include/ include/ | +300 | 0 replies | |
| 9/12 | verification/rvgen: Add support for per-obj monitorstools/ tools/ | +14 | 0 replies | |
| 10/12 | sched: Add deadline tracepointsinclude/ kernel/ kernel/ | +54 | 0 replies | |
| 11/12 | sched/deadline: Move some utility functions to deadline.hinclude/ kernel/ | +28 | 0 replies | |
| 12/12 | Add nomiss deadline monitorDocumentation/ Documentation/ kernel/ +10 more | +839 | 1 reply |
Reviews trailers per patch
All 12 patches have a Reviewed-by or Acked-by.
| Patch | Nam Cao | Juri Lelli | Phil Auld |
|---|---|---|---|
| 1/12 | R-b | ||
| 2/12 | R-b | ||
| 3/12 | R-b | ||
| 4/12 | R-b | ||
| 5/12 | R-b | R-b | |
| 6/12 | R-b | ||
| 7/12 | R-b | ||
| 8/12 | R-b | ||
| 9/12 | R-b | ||
| 10/12 | A-b | R-b | |
| 11/12 | A-b | ||
| 12/12 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v8 00/12] rv: Add Hybrid Automata monitor type, per-object and deadline monitors
This series contains several related changes, the main areas are:
* hybrid automata
Hybrid automata are an extension of deterministic automata where each state transition is validating a constraint on a finite number of environment variables.
Hybrid automata can be used to implement timed automata, where the environment variables are clocks.
* per-object monitors
Define the generic per-object monitor allow RV monitors on any kind of object where the user can specify how to get an id (e.g. pid for tasks) and the data type for the monitor_target (e.g. struct task_struct * for tasks).
The monitor storage (e.g. the rv monitor, pointer to the target, etc.) is stored in a hash table indexed by id.
* deadline monitors collection
Add the nomiss monitor to validate timing aspects of the deadline scheduler, as it works for tasks and servers, it's inclusion requires also per-object monitors (for dl entities).
Note: this submission removed all patches depending on enqueue/dequeue tracepoints. The current series is ready for inclusion while the other patches will be submitted separately.
The entire series can also be found on:
git.kernel.org/pub/scm/linux/kernel/git/gmonaco/linux.git rv_hybrid_automata
Changes since V7:
* Fix wrong title in monitor_deadline docs
* Warn if kallsyms lookup fails
* Minor improvement in hybrid automata docs
* Use u8 instead of uint8_t in deadline tracepoints and models
* Drop enqueue/dequeue tracepoints and dependent patches from the series, will submit separately
[1] - https://lore.kernel.org/lkml/[email protected]
To: Steven Rostedt <[email protected]>
To: Nam Cao <[email protected]>
To: Juri Lelli <[email protected]>
Cc: Tomas Glozar <[email protected]>
Cc: Clark Williams <[email protected]>
Cc: John Kacur <[email protected]>
Cc: [email protected]
Gabriele Monaco (12):
rv: Unify DA event handling functions across monitor types
rv: Add Hybrid Automata monitor type verification/rvgen: Allow spaces in and events strings verification/rvgen: Add support for Hybrid Automata Documentation/rv: Add documentation about hybrid automata
rv: Add sample hybrid monitor stall
rv: Convert the opid monitor to a hybrid automaton
rv: Add support for per-object monitors in DA/HA verification/rvgen: Add support for per-obj monitors
sched: Add deadline tracepoints
sched/deadline: Move some utility functions to deadline.h
rv: Add nomiss deadline monitor
Documentation/tools/rv/index.rst | 1 + Documentation/tools/rv/rv-mon-stall.rst | 44 ++ .../trace/rv/deterministic_automata.rst | 2 +- Documentation/trace/rv/hybrid_automata.rst | 341 ++++++++++ Documentation/trace/rv/index.rst | 3 + Documentation/trace/rv/monitor_deadline.rst | 84 +++ Documentation/trace/rv/monitor_sched.rst | 62 +- Documentation/trace/rv/monitor_stall.rst | 43 ++ Documentation/trace/rv/monitor_synthesis.rst | 117 +++- include/linux/rv.h | 39 ++ include/linux/sched/deadline.h | 27 + include/rv/da_monitor.h | 644 +++++++++++++----- include/rv/ha_monitor.h | 478 +++++++++++++ include/trace/events/sched.h | 26 + kernel/sched/core.c | 5 + kernel/sched/deadline.c | 51 +- kernel/trace/rv/Kconfig | 18 + kernel/trace/rv/Makefile | 3 + kernel/trace/rv/monitors/deadline/Kconfig | 10 + kernel/trace/rv/monitors/deadline/deadline.c | 44 ++ kernel/trace/rv/monitors/deadline/deadline.h | 202 ++++++ kernel/trace/rv/monitors/nomiss/Kconfig | 15 + kernel/trace/rv/monitors/nomiss/nomiss.c | 293 ++++++++ kernel/trace/rv/monitors/nomiss/nomiss.h | 123 ++++ .../trace/rv/monitors/nomiss/nomiss_trace.h | 19 + kernel/trace/rv/monitors/opid/Kconfig | 11 +- kernel/trace/rv/monitors/opid/opid.c | 111 +-- kernel/trace/rv/monitors/opid/opid.h | 86 +-- kernel/trace/rv/monitors/opid/opid_trace.h | 4 + kernel/trace/rv/monitors/stall/Kconfig | 13 + kernel/trace/rv/monitors/stall/stall.c | 150 ++++ kernel/trace/rv/monitors/stall/stall.h | 81 +++ kernel/trace/rv/monitors/stall/stall_trace.h | 19 + kernel/trace/rv/rv_trace.h | 67 +- tools/verification/models/deadline/nomiss.dot | 41 ++ tools/verification/models/sched/opid.dot | 36 +- tools/verification/models/stall.dot | 22 + tools/verification/rvgen/__main__.py | 8 +- tools/verification/rvgen/rvgen/automata.py | 151 +++- tools/verification/rvgen/rvgen/dot2c.py | 47 ++ tools/verification/rvgen/rvgen/dot2k.py | 489 ++++++++++++- tools/verification/rvgen/rvgen/generator.py | 4 +- .../rvgen/rvgen/templates/dot2k/main.c | 2 +- .../rvgen/templates/dot2k/trace_hybrid.h | 16 + 44 files changed, 3605 insertions(+), 447 deletions(-) create mode 100644 Documentation/tools/rv/rv-mon-stall.rst create mode 100644 Documentation/trace/rv/hybrid_automata.rst create mode 100644 Documentation/trace/rv/monitor_deadline.rst create mode 100644 Documentation/trace/rv/monitor_stall.rst create mode 100644 include/rv/ha_monitor.h create mode 100644 kernel/trace/rv/monitors/deadline/Kconfig create mode 100644 kernel/trace/rv/monitors/deadline/deadline.c create mode 100644 kernel/trace/rv/monitors/deadline/deadline.h create mode 100644 kernel/trace/rv/monitors/nomiss/Kconfig create mode 100644 kernel/trace/rv/monitors/nomiss/nomiss.c create mode 100644 kernel/trace/rv/monitors/nomiss/nomiss.h create mode 100644 kernel/trace/rv/monitors/nomiss/nomiss_trace.h create mode 100644 kernel/trace/rv/monitors/stall/Kconfig create mode 100644 kernel/trace/rv/monitors/stall/stall.c create mode 100644 kernel/trace/rv/monitors/stall/stall.h create mode 100644 kernel/trace/rv/monitors/stall/stall_trace.h create mode 100644 tools/verification/models/deadline/nomiss.dot create mode 100644 tools/verification/models/stall.dot create mode 100644 tools/verification/rvgen/rvgen/templates/dot2k/trace_hybrid.h
base-commit: 7aaa8047eafd0bd628065b15757d9b48c5f9c07d
Signature · 1 line
2.53.0