Skip to content

Conversation

@etsal
Copy link
Contributor

@etsal etsal commented May 28, 2025

Move the BPF arena API into a separate file, where it can be reused by multiple schedulers. Add argument passing to the functions to parameterize the initialization process.

@etsal etsal requested review from JakeHillion and hodgesds May 28, 2025 15:17
@hodgesds
Copy link
Contributor

I wonder if it's easier/more maintainable to have a separate compilation unit for the arena setup. I don't have a good idea of which way is better though.

@etsal
Copy link
Contributor Author

etsal commented May 28, 2025

I wonder if it's easier/more maintainable to have a separate compilation unit for the arena setup. I don't have a good idea of which way is better though.

I assume ym having a separate Rust file that interfaces with the arena API? We can try that, I think it should be possible with subskeletons in such a way that it is usable by all schedulers without scheduler-specific code.

Copy link
Contributor

@hodgesds hodgesds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should work for now!

@etsal etsal added this pull request to the merge queue May 28, 2025
Merged via the queue into sched-ext:main with commit 7cce32d May 28, 2025
16 checks passed
@etsal etsal deleted the lib-arena-api branch May 28, 2025 19:02
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