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

Commits on Apr 4, 2024

  1. scx: Allow calling scx kfuncs from BPF_PROG_TYPE_SYSCALL

    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 committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    3b1871a View commit details
    Browse the repository at this point in the history
  2. scx/selftest: Add testcase invoking a kfunc with BPF_PROG_RUN

    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 committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    711d8c1 View commit details
    Browse the repository at this point in the history