FILE
minimal.bpf.c
File preview with syntax highlighting.
linux-6.19.14/tools/testing/selftests/sched_ext/minimal.bpf.c
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 16char _license[] SEC("license") = "GPL"; 17 18SEC(".struct_ops.link") 19struct sched_ext_ops minimal_ops = { 20 .name = "minimal", 21};
~/
Read-only file preview.