Skip to content

tools/sched_ext: Add example C schedulers

Emil Tsalapatis sched-ext 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 2 repliesIn review
  2. v23 patches 2 repliesSuperseded
  3. v14 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tools/sched_ext: add scx_userland schedulertools/sched_ext/Makefile tools/sched_ext/scx_userland.bpf.c tools/sched_ext/scx_userland.c +1 more+799 -10 replies
2/3tools/sched_ext: add scx_pair schedulertools/sched_ext/Makefile tools/sched_ext/scx_pair.bpf.c tools/sched_ext/scx_pair.c +1 more+800 -10 replies
3/3tools/sched_ext: add arena based schedulertools/sched_ext/Makefile tools/sched_ext/scx_sdt.bpf.c tools/sched_ext/scx_sdt.c +1 more+925 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] tools/sched_ext: Add example C schedulers

Add to the tree several C sched-ext schedulers developed and maintained out-of-tree by the sched-ext project over the years. These schedulers demonstrate sched-ext's feature set and provide a starting point for scheduler development. Place the schedulers together with the existing examples in tools/sched_ext.

v2->v3 (https://lore.kernel.org/sched-ext/[email protected]/)

- Fix inverted condition in scx_sdt for zeroing out freed memory (AI)

v1->v2 (https://lore.kernel.org/sched-ext/[email protected]/

- Remove scx_nest scheduler from patchset (Changwoo, Andrea)

Emil Tsalapatis (3):
tools/sched_ext: add scx_userland scheduler
tools/sched_ext: add scx_pair scheduler
tools/sched_ext: add arena based scheduler

 tools/sched_ext/Makefile           |   2 +-
 tools/sched_ext/scx_pair.bpf.c     | 610 +++++++++++++++++++++++++
 tools/sched_ext/scx_pair.c         | 180 ++++++++
 tools/sched_ext/scx_pair.h         |   9 +
 tools/sched_ext/scx_sdt.bpf.c      | 710 +++++++++++++++++++++++++++++
 tools/sched_ext/scx_sdt.c          | 101 ++++
 tools/sched_ext/scx_sdt.h          | 113 +++++
 tools/sched_ext/scx_userland.bpf.c | 344 ++++++++++++++
 tools/sched_ext/scx_userland.c     | 437 ++++++++++++++++++
 tools/sched_ext/scx_userland.h     |  17 +
 10 files changed, 2522 insertions(+), 1 deletion(-)
 create mode 100644 tools/sched_ext/scx_pair.bpf.c
 create mode 100644 tools/sched_ext/scx_pair.c
 create mode 100644 tools/sched_ext/scx_pair.h
 create mode 100644 tools/sched_ext/scx_sdt.bpf.c
 create mode 100644 tools/sched_ext/scx_sdt.c
 create mode 100644 tools/sched_ext/scx_sdt.h
 create mode 100644 tools/sched_ext/scx_userland.bpf.c
 create mode 100644 tools/sched_ext/scx_userland.c
 create mode 100644 tools/sched_ext/scx_userland.h
Signature · 1 line
2.49.0