rt_stall.bpf.c 455 B

1234567891011121314151617181920212223
  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. #include <scx/common.bpf.h>
  8. char _license[] SEC("license") = "GPL";
  9. UEI_DEFINE(uei);
  10. void BPF_STRUCT_OPS(rt_stall_exit, struct scx_exit_info *ei)
  11. {
  12. UEI_RECORD(uei, ei);
  13. }
  14. SEC(".struct_ops.link")
  15. struct sched_ext_ops rt_stall_ops = {
  16. .exit = (void *)rt_stall_exit,
  17. .name = "rt_stall",
  18. };