Add remaining deadline monitors
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | Force environment reset action on HA monitor startinclude/ kernel/ tools/ | +10 | 0 replies | |
| 2/10 | Remove unused ha_monitor_env_invalid()include/ tools/ tools/ +2 more | +15 | 0 replies | |
| 3/10 | Cache timer budget when starting HA timersinclude/ include/ kernel/ +5 more | +41 | 0 replies | |
| 4/10 | tools/rvgen: Default to HA_TIMER_WHEEL for jiffy clockstools/ | +4 | 0 replies | |
| 5/10 | sched: Add task enqueue/dequeue trace pointsinclude/ kernel/ kernel/ | +21 | 0 replies | |
| 6/10 | Add enqueue/dequeue to snroc monitorDocumentation/ kernel/ kernel/ +1 more | +101 | 0 replies | |
| 7/10 | Add throttle deadline monitorDocumentation/ kernel/ kernel/ +6 more | +556 | 0 replies | |
| 8/10 | Add dl_server specific monitorsDocumentation/ kernel/ kernel/ +11 more | +1092 | 0 replies | |
| 9/10 | Add KUnit test for throttle monitorkernel/ kernel/ kernel/ +1 more | +97 | 0 replies | |
| 10/10 | selftests/verification: Lower stressor priority in rv_deadlinetools/ | +2 | 0 replies |
Reviews trailers per patch
4 of 10 patches have a Reviewed-by or Acked-by.
| Patch | K Prateek Nayak | Nam Cao | Juri Lelli |
|---|---|---|---|
| 1/10 | |||
| 2/10 | |||
| 3/10 | |||
| 4/10 | |||
| 5/10 | R-b | ||
| 6/10 | R-b | ||
| 7/10 | R-b | ||
| 8/10 | R-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.
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