diff options
| author | Michal Blaszczyk <michalblk@google.com> | 2026-08-11 14:13:58 +0000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-08-14 12:32:23 -1000 |
| commit | e72979d3264a87a6a2dfb44fe0f5723a17d2ef84 (patch) | |
| tree | 818fa20af07c89e7ec10f4616be2ad96466ba939 /tools/perf/scripts/python/flamegraph.py | |
| parent | 0e3a6e977c14b87861e5295ceff0b5141f017246 (diff) | |
selftests/sched_ext: Fix flaky ddsp failure tests on busy systems
The ddsp_vtimelocal_fail and ddsp_bogus_dsq_fail tests skip calling
scx_bpf_dsq_insert_vtime() if scx_bpf_pick_idle_cpu() fails to find an idle
CPU (returns a negative error code). On loaded systems, this results in the
tests skipping the very assertions they are meant to verify.
Eliminate this flakiness by falling back to prev_cpu if no idle CPU is
found, ensuring the illegal dispatch operations are unconditionally
attempted and tested.
Fixes: a5db7817af78 ("sched_ext: Add selftests")
Signed-off-by: Michal Blaszczyk <michalblk@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
