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

Commit

Permalink
scx: Annotate kfuncs and support CFI
Browse files Browse the repository at this point in the history
The most recent struct bpf_struct_ops implementation has a cfi_stubs
field so as to enable CFI calls for indirect struct_ops callbacks. We
have to add a bunch of blank callbacks so we generate the correct CFI
hash and let the compiler generate the correct CFI for the actual
trampolines.

In addition, use the __bpf_kfunc annotation on scx kfuncs.

Signed-off-by: David Vernet <[email protected]>
  • Loading branch information
Byte-Lab committed Jan 22, 2024
1 parent 1d69ec3 commit cbc58e6
Showing 1 changed file with 192 additions and 33 deletions.
Loading

0 comments on commit cbc58e6

Please sign in to comment.