Skip to content

Commit

Permalink
Merge pull request raspberrypi#27 from sched-ext/scx-misc-updates
Browse files Browse the repository at this point in the history
Misc updates
  • Loading branch information
Byte-Lab authored Jun 27, 2023
2 parents b1e3b3b + d0a8cea commit 68000ec
Show file tree
Hide file tree
Showing 31 changed files with 327 additions and 276 deletions.
17 changes: 8 additions & 9 deletions Documentation/scheduler/sched-ext.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ BPF scheduler and reverts all tasks back to CFS.
.. code-block:: none
# make -j16 -C tools/sched_ext
# tools/sched_ext/scx_example_simple
# tools/sched_ext/scx_simple
local=0 global=3
local=5 global=24
local=9 global=44
Expand Down Expand Up @@ -73,8 +73,7 @@ Userspace can implement an arbitrary BPF scheduler by loading a set of BPF
programs that implement ``struct sched_ext_ops``. The only mandatory field
is ``ops.name`` which must be a valid BPF object name. All operations are
optional. The following modified excerpt is from
``tools/sched/scx_example_simple.bpf.c`` showing a minimal global FIFO
scheduler.
``tools/sched/scx_simple.bpf.c`` showing a minimal global FIFO scheduler.

.. code-block:: c
Expand Down Expand Up @@ -196,8 +195,8 @@ DSQs are consumed automatically.

``scx_bpf_dispatch()`` queues the task on the FIFO of the target DSQ. Use
``scx_bpf_dispatch_vtime()`` for the priority queue. See the function
documentation and usage in ``tools/sched_ext/scx_example_simple.bpf.c`` for
more information.
documentation and usage in ``tools/sched_ext/scx_simple.bpf.c`` for more
information.

Where to Look
=============
Expand All @@ -211,11 +210,11 @@ Where to Look

* ``tools/sched_ext/`` hosts example BPF scheduler implementations.

* ``scx_example_simple[.bpf].c``: Minimal global FIFO scheduler example
using a custom DSQ.
* ``scx_simple[.bpf].c``: Minimal global FIFO scheduler example using a
custom DSQ.

* ``scx_example_qmap[.bpf].c``: A multi-level FIFO scheduler supporting
five levels of priority implemented with ``BPF_MAP_TYPE_QUEUE``.
* ``scx_qmap[.bpf].c``: A multi-level FIFO scheduler supporting five
levels of priority implemented with ``BPF_MAP_TYPE_QUEUE``.

ABI Instability
===============
Expand Down
Loading

0 comments on commit 68000ec

Please sign in to comment.