xref: /linux/tools/testing/selftests/sched_ext/minimal.bpf.c (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
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 
14 #include <scx/common.bpf.h>
15 
16 char _license[] SEC("license") = "GPL";
17 
18 SEC(".struct_ops.link")
19 struct sched_ext_ops minimal_ops = {
20 	.name			= "minimal",
21 };
22