Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scx_utils: Provide scheduler flags in a compatible way #863

Open
htejun opened this issue Oct 30, 2024 · 0 comments
Open

scx_utils: Provide scheduler flags in a compatible way #863

htejun opened this issue Oct 30, 2024 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@htejun
Copy link
Contributor

htejun commented Oct 30, 2024

Some of SCX flags are derived from scheduler core flags and are subject to change. It's less likely but other flags may change too. When the flag values are used directly, they're substituted to the value that was defined at the time of compilation and the binary wouldn't be able to function correctly when loaded on a kernel which uses different values for these flags.

All the SCX flags are enums and can be obtained using CO-RE helpers. Provide compat helpers that put the flag values in const volatile variables which are set at load time so that scheduler binaries can work across kernels with different flag values.

@htejun htejun added the help wanted Extra attention is needed label Oct 30, 2024
@etsal etsal self-assigned this Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants