]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/sched_ext: Validate dl_server attach/detach in total_bw test
authorAndrea Righi <arighi@nvidia.com>
Tue, 26 May 2026 16:42:49 +0000 (18:42 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 29 May 2026 10:43:16 +0000 (12:43 +0200)
commitc6aa07996802c77e90337fa30259cb1cd06c2609
treeb9ac8a3b782c1a91c8232f4a57bb2b7cde5951c0
parente7b63427fdb4977621d69085a97272c8856644fe
selftests/sched_ext: Validate dl_server attach/detach in total_bw test

Extend the total_bw selftest to validate the fair/ext dl_server
auto-attach/detach operations.

After the existing consistency checks, the test now doubles the
fair_server's runtime on every CPU via debugfs and verifies that:
 1. total_bw grew after the customization (proves fair_server was
    attached and apply_params() honored the dl_bw_attached flag),
 2. with the minimal BPF scheduler loaded, total_bw drops back to the
    baseline value (proves fair_server was detached and ext_server was
    attached at its own default runtime),
 3. after unload total_bw matches the doubled value from step 1 (proves
    fair_server was re-attached with the runtime customization preserved
    across the load/unload cycle).

Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://patch.msgid.link/20260526164420.638711-3-arighi@nvidia.com
tools/testing/selftests/sched_ext/total_bw.c