mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
Add a selftest to validate the correct behavior of the deadline server for the ext_sched_class. Co-developed-by: Joel Fernandes <joelagnelf@nvidia.com> Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com> Signed-off-by: Andrea Righi <arighi@nvidia.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com> Tested-by: Christian Loehle <christian.loehle@arm.com> Link: https://patch.msgid.link/20260126100050.3854740-7-arighi@nvidia.com
23 lines
455 B
C
23 lines
455 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* A scheduler that verified if RT tasks can stall SCHED_EXT tasks.
|
|
*
|
|
* Copyright (c) 2025 NVIDIA Corporation.
|
|
*/
|
|
|
|
#include <scx/common.bpf.h>
|
|
|
|
char _license[] SEC("license") = "GPL";
|
|
|
|
UEI_DEFINE(uei);
|
|
|
|
void BPF_STRUCT_OPS(rt_stall_exit, struct scx_exit_info *ei)
|
|
{
|
|
UEI_RECORD(uei, ei);
|
|
}
|
|
|
|
SEC(".struct_ops.link")
|
|
struct sched_ext_ops rt_stall_ops = {
|
|
.exit = (void *)rt_stall_exit,
|
|
.name = "rt_stall",
|
|
};
|