Skip to content

Add remaining deadline monitors

Gabriele Monaco linux-doc linux-kselftest linux-trace-kernel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Force environment reset action on HA monitor startinclude/rv/ha_monitor.h kernel/trace/rv/monitors/opid/opid.h tools/verification/rvgen/rvgen/dot2c.py+10 -10 replies
2/10Remove unused ha_monitor_env_invalid()include/rv/ha_monitor.h tools/verification/rvgen/rvgen/dot2k.py tools/verification/rvgen/tests/golden/ha_percpu/ha_percpu.c +2 more+15 -440 replies
3/10Cache timer budget when starting HA timersinclude/linux/rv.h include/rv/ha_monitor.h kernel/trace/rv/monitors/nomiss/nomiss.c +5 more+41 -390 replies
4/10tools/rvgen: Default to HA_TIMER_WHEEL for jiffy clockstools/verification/rvgen/rvgen/dot2k.py+4 -20 replies
5/10sched: Add task enqueue/dequeue trace pointsinclude/trace/events/sched.h kernel/sched/core.c kernel/sched/sched.h+21 -10 replies
6/10Add enqueue/dequeue to snroc monitorDocumentation/trace/rv/monitor_sched.rst kernel/trace/rv/monitors/snroc/snroc.c kernel/trace/rv/monitors/snroc/snroc.h +1 more+101 -320 replies
7/10Add throttle deadline monitorDocumentation/trace/rv/monitor_deadline.rst kernel/trace/rv/Kconfig kernel/trace/rv/Makefile +6 more+556 -00 replies
8/10Add dl_server specific monitorsDocumentation/trace/rv/monitor_deadline.rst kernel/trace/rv/Kconfig kernel/trace/rv/Makefile +11 more+1092 -00 replies
9/10Add KUnit test for throttle monitorkernel/trace/rv/monitors/throttle/throttle.c kernel/trace/rv/monitors/throttle/throttle_kunit.c kernel/trace/rv/monitors/throttle/throttle_kunit.h +1 more+97 -00 replies
10/10selftests/verification: Lower stressor priority in rv_deadlinetools/testing/selftests/verification/test.d/rv_deadline.tc+2 -20 replies

Reviews trailers per patch

4 of 10 patches have a Reviewed-by or Acked-by.

PatchK Prateek NayakNam CaoJuri Lelli
1/10
2/10
3/10
4/10
5/10R-b
6/10R-b
7/10R-b
8/10R-b R-b
9/10
10/10

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 v1 thread

Cover letter [PATCH 00/10] rv: Add remaining deadline monitors

Add the following deadline monitors as already sent in [1]:
* throttle:
validate dl entities are throttled when they use up their runtime
* boost
fair tasks run either independently or boosted
* laxity
deferrable servers wait for zero-laxity and run

Monitors are adapted to the new upstream but mostly unmodified. Except:
* Remove enqueue/resume from laxity model
* Special idle -> throttled in boost and add period invariant in throttled states too

Additionally apply some fixes and simplifications to the hybrid automata infrastructure and other changes:
* Reset on monitor start and drop checks for invalid variable
* Store timer wheel budget to allow checking for invariants without needing to know how the timer was set
* Add enqueue/dequeue tracepoints and check them in snroc
* Add KUnit tests for throttle

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

To: [email protected]
Cc: Steven Rostedt <[email protected]>
Cc: Nam Cao <[email protected]>
Cc: Wen Yang <[email protected]>
Cc: Juri Lelli <[email protected]>

Gabriele Monaco (9):
rv: Force environment reset action on HA monitor start
rv: Remove unused ha_monitor_env_invalid()
rv: Cache timer budget when starting HA timers tools/rvgen: Default to HA_TIMER_WHEEL for jiffy clocks
rv: Add enqueue/dequeue to snroc monitor
rv: Add throttle deadline monitor
rv: Add dl_server specific monitors
rv: Add KUnit test for throttle monitor selftests/verification: Lower stressor priority in rv_deadline

Nam Cao (1):
sched: Add task enqueue/dequeue trace points

 Documentation/trace/rv/monitor_deadline.rst   | 201 ++++++++++++
 Documentation/trace/rv/monitor_sched.rst      |  39 ++-
 include/linux/rv.h                            |   5 +-
 include/rv/ha_monitor.h                       |  73 ++---
 include/trace/events/sched.h                  |   8 +
 kernel/sched/core.c                           |  12 +-
 kernel/sched/sched.h                          |   2 +
 kernel/trace/rv/Kconfig                       |   3 +
 kernel/trace/rv/Makefile                      |   3 +
 kernel/trace/rv/monitors/boost/Kconfig        |  15 +
 kernel/trace/rv/monitors/boost/boost.c        | 276 ++++++++++++++++
 kernel/trace/rv/monitors/boost/boost.h        | 146 +++++++++
 kernel/trace/rv/monitors/boost/boost_trace.h  |  19 ++
 kernel/trace/rv/monitors/laxity/Kconfig       |  14 +
 kernel/trace/rv/monitors/laxity/laxity.c      | 253 +++++++++++++++
 kernel/trace/rv/monitors/laxity/laxity.h      | 133 ++++++++
 .../trace/rv/monitors/laxity/laxity_trace.h   |  19 ++
 kernel/trace/rv/monitors/nomiss/nomiss.c      |   4 +-
 kernel/trace/rv/monitors/opid/opid.h          |   1 +
 kernel/trace/rv/monitors/snroc/snroc.c        |  18 +-
 kernel/trace/rv/monitors/snroc/snroc.h        |  46 ++-
 kernel/trace/rv/monitors/stall/stall.c        |   2 +-
 kernel/trace/rv/monitors/throttle/Kconfig     |  15 +
 kernel/trace/rv/monitors/throttle/throttle.c  | 302 ++++++++++++++++++
 kernel/trace/rv/monitors/throttle/throttle.h  | 116 +++++++
 .../rv/monitors/throttle/throttle_kunit.c     |  44 +++
 .../rv/monitors/throttle/throttle_kunit.h     |  34 ++
 .../rv/monitors/throttle/throttle_trace.h     |  19 ++
 kernel/trace/rv/rv_monitors_test.c            |   2 +
 kernel/trace/rv/rv_trace.h                    |   3 +
 .../verification/test.d/rv_deadline.tc        |   4 +-
 tools/verification/models/deadline/boost.dot  |  48 +++
 tools/verification/models/deadline/laxity.dot |  36 +++
 .../verification/models/deadline/throttle.dot |  44 +++
 tools/verification/models/sched/snroc.dot     |  30 +-
 tools/verification/rvgen/rvgen/dot2c.py       |   2 +
 tools/verification/rvgen/rvgen/dot2k.py       |  18 +-
 .../rvgen/tests/golden/ha_percpu/ha_percpu.c  |  17 +-
 .../rvgen/tests/golden/test_ha/test_ha.c      |  17 +-
 .../golden/test_ha_kunit/test_ha_kunit.c      |  17 +-
 40 files changed, 1939 insertions(+), 121 deletions(-)
 create mode 100644 kernel/trace/rv/monitors/boost/Kconfig
 create mode 100644 kernel/trace/rv/monitors/boost/boost.c
 create mode 100644 kernel/trace/rv/monitors/boost/boost.h
 create mode 100644 kernel/trace/rv/monitors/boost/boost_trace.h
 create mode 100644 kernel/trace/rv/monitors/laxity/Kconfig
 create mode 100644 kernel/trace/rv/monitors/laxity/laxity.c
 create mode 100644 kernel/trace/rv/monitors/laxity/laxity.h
 create mode 100644 kernel/trace/rv/monitors/laxity/laxity_trace.h
 create mode 100644 kernel/trace/rv/monitors/throttle/Kconfig
 create mode 100644 kernel/trace/rv/monitors/throttle/throttle.c
 create mode 100644 kernel/trace/rv/monitors/throttle/throttle.h
 create mode 100644 kernel/trace/rv/monitors/throttle/throttle_kunit.c
 create mode 100644 kernel/trace/rv/monitors/throttle/throttle_kunit.h
 create mode 100644 kernel/trace/rv/monitors/throttle/throttle_trace.h
 create mode 100644 tools/verification/models/deadline/boost.dot
 create mode 100644 tools/verification/models/deadline/laxity.dot
 create mode 100644 tools/verification/models/deadline/throttle.dot

base-commit: 238650ef6c7c7cca08e032527329424c9fbd70e5

Signature · 1 line
2.55.0