Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

scx: Allow calling scx kfuncs from BPF_PROG_TYPE_SYSCALL #172

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

Byte-Lab
Copy link
Collaborator

@Byte-Lab Byte-Lab commented Apr 4, 2024

We'll want to be able to issue BPF_PROG_RUN calls in order to
synchronously call into the kernel from user space scheduling
components. The most natural prog type for this seems to be
BPF_PROG_TYPE_SYSCALL, which is a very safe program type. Let's allow
invoking the core kfuncs from this program type as well.

Signed-off-by: David Vernet [email protected]

Byte-Lab added 2 commits April 3, 2024 20:06
We'll want to be able to issue BPF_PROG_RUN calls in order to
synchronously call into the kernel from user space scheduling
components. The most natural prog type for this seems to be
BPF_PROG_TYPE_SYSCALL, which is a very safe program type. Let's allow
invoking the core kfuncs from this program type as well.

Signed-off-by: David Vernet <[email protected]>
Now that we can invoke scx kfuncs inside of a BPF_PROG_TYPE_SYSCALL
program, let's add some selftests that validate the behavior.

Signed-off-by: David Vernet <[email protected]>
@Byte-Lab Byte-Lab requested a review from htejun April 4, 2024 02:01
@htejun htejun merged commit ba16c88 into sched_ext Apr 4, 2024
1 check passed
@htejun htejun deleted the kfuncs_syscall branch April 4, 2024 03:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants