]> git.ipfire.org Git - thirdparty/linux.git/commit
sched/ext: Add BPF function to fetch rq
authorHongyan Xia <hongyan.xia2@arm.com>
Mon, 8 Jul 2024 14:01:18 +0000 (15:01 +0100)
committerTejun Heo <tj@kernel.org>
Mon, 8 Jul 2024 17:10:48 +0000 (07:10 -1000)
commit6203ef73fa5c0358f7960b038628259be1448724
treec3a4bd42433f3166848f19ff0d15744b669a68a0
parent7b9f6c864a3429ef086998a3d2b04e93fee7d051
sched/ext: Add BPF function to fetch rq

rq contains many useful fields to implement a custom scheduler. For
example, various clock signals like clock_task and clock_pelt can be
used to track load. It also contains stats in other sched_classes, which
are useful to drive scheduling decisions in ext.

tj: Put the new helper below scx_bpf_task_*() helpers.

Signed-off-by: Hongyan Xia <hongyan.xia2@arm.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c
tools/sched_ext/include/scx/common.bpf.h