minimal.bpf.c 606 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * A completely minimal scheduler.
  4. *
  5. * This scheduler defines the absolute minimal set of struct sched_ext_ops
  6. * fields: its name. It should _not_ fail to be loaded, and can be used to
  7. * exercise the default scheduling paths in ext.c.
  8. *
  9. * Copyright (c) 2023 Meta Platforms, Inc. and affiliates.
  10. * Copyright (c) 2023 David Vernet <dvernet@meta.com>
  11. * Copyright (c) 2023 Tejun Heo <tj@kernel.org>
  12. */
  13. #include <scx/common.bpf.h>
  14. char _license[] SEC("license") = "GPL";
  15. SEC(".struct_ops.link")
  16. struct sched_ext_ops minimal_ops = {
  17. .name = "minimal",
  18. };