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

Bring rust scheduler's compat support to parity with C #337

Merged
merged 3 commits into from
Jun 7, 2024

Conversation

htejun
Copy link
Contributor

@htejun htejun commented Jun 7, 2024

With these updates, scx_layered can be loaded on v6.10-rc kernels as well as kernel which don't support ops.dump*().

… rename

- scx_utils: Replace kfunc_exists() with ksym_exists() which doesn't care
  about the type of the symbol.

- scx_layered: Fix load failure on kernels >= v6.10-rc due to
  scheduler_tick() -> sched_tick rename. Attach the tick fentry function to
  either scheduler_tick() or sched_tick().
Match rust scx_ops_load!()'s compat support with C's SCX_OPS_LOAD().
For better compat feature support (ignoring ops which are NULL'd out).
@htejun htejun requested a review from Byte-Lab June 7, 2024 00:29
@Byte-Lab Byte-Lab merged commit 5ad8d40 into main Jun 7, 2024
1 check passed
@Byte-Lab Byte-Lab deleted the htejun/fix-layered-load branch June 7, 2024 00:57
@htejun htejun restored the htejun/fix-layered-load branch June 16, 2024 06:25
@htejun htejun deleted the htejun/fix-layered-load branch June 16, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants