1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * A scheduler that verified if RT tasks can stall SCHED_EXT tasks. 4 * 5 * Copyright (c) 2025 NVIDIA Corporation. 6 */ 7 8 #include <scx/common.bpf.h> 9 10 char _license[] SEC("license") = "GPL"; 11 12 UEI_DEFINE(uei); 13 14 void BPF_STRUCT_OPS(rt_stall_exit, struct scx_exit_info *ei) 15 { 16 UEI_RECORD(uei, ei); 17 } 18 19 SEC(".struct_ops.link") 20 struct sched_ext_ops rt_stall_ops = { 21 .exit = (void *)rt_stall_exit, 22 .name = "rt_stall", 23 }; 24