Skip to content

Add Hybrid Automata monitor type, per-object and deadline monitors

Gabriele Monaco linux-doc linux-trace-kernel lkml 8 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest12 patches 1 replyIn review
  2. v715 patches 9 repliesSuperseded
  3. v616 patches 15 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v515 patches5 repliesSuperseded
v415 patches9 repliesSuperseded
v313 patches17 repliesApplied
v220 patches36 repliesSuperseded
v1 RFC17 patches42 repliesSuperseded

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

[1] - https://lore.kernel.org/lkml/[email protected]

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Unify DA event handling functions across monitor typesinclude/rv/da_monitor.h+132 -1710 replies
2/12Add Hybrid Automata monitor typeinclude/linux/rv.h include/rv/da_monitor.h include/rv/ha_monitor.h +2 more+658 -40 replies
3/12verification/rvgen: Allow spaces in and events stringstools/verification/rvgen/rvgen/automata.py+4 -50 replies
4/12verification/rvgen: Add support for Hybrid Automatatools/verification/rvgen/__main__.py tools/verification/rvgen/rvgen/automata.py tools/verification/rvgen/rvgen/dot2c.py +4 more+679 -160 replies
5/12Documentation/rv: Add documentation about hybrid automataDocumentation/trace/rv/deterministic_automata.rst Documentation/trace/rv/hybrid_automata.rst Documentation/trace/rv/index.rst +1 more+458 -30 replies
6/12Add sample hybrid monitor stallDocumentation/tools/rv/index.rst Documentation/tools/rv/rv-mon-stall.rst Documentation/trace/rv/index.rst +9 more+377 -00 replies
7/12Convert the opid monitor to a hybrid automatonDocumentation/trace/rv/monitor_sched.rst kernel/trace/rv/monitors/opid/Kconfig kernel/trace/rv/monitors/opid/opid.c +4 more+82 -2300 replies
8/12Add support for per-object monitors in DA/HAinclude/linux/rv.h include/rv/da_monitor.h include/rv/ha_monitor.h+300 -60 replies
9/12verification/rvgen: Add support for per-obj monitorstools/verification/rvgen/rvgen/dot2k.py tools/verification/rvgen/rvgen/generator.py+14 -50 replies
10/12sched: Add deadline tracepointsinclude/trace/events/sched.h kernel/sched/core.c kernel/sched/deadline.c+54 -00 replies
11/12sched/deadline: Move some utility functions to deadline.hinclude/linux/sched/deadline.h kernel/sched/deadline.c+28 -270 replies
12/12Add nomiss deadline monitorDocumentation/trace/rv/index.rst Documentation/trace/rv/monitor_deadline.rst kernel/trace/rv/Kconfig +10 more+839 -01 reply

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchNam CaoJuri LelliPhil Auld
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b R-b
6/12R-b
7/12R-b
8/12R-b
9/12R-b
10/12A-b R-b
11/12A-b
12/12R-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.

Read the v8 thread

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