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

common.bpf.h: Cosmetic changes #359

Merged
merged 4 commits into from
Jun 15, 2024
Merged

common.bpf.h: Cosmetic changes #359

merged 4 commits into from
Jun 15, 2024

Conversation

htejun
Copy link
Contributor

@htejun htejun commented Jun 15, 2024

No description provided.

The bpf_ prefix is used for BPF API. Rename bpf_log2() to u32_log2() and
bpf_log2l() to u64_log2(). While at it, relocate them below compiler
directive helpers.
Currently, the BPF declarations and generic helpers are in the same section.
Let's move the generic helpers down to its own section.
The name was copied from scx_central.bpf.c and doesn't match what the timer
is used for in scx_qmap.bpf.c.
@htejun htejun merged commit dd6255a into main Jun 15, 2024
1 check passed
@htejun htejun deleted the htejun/cosmetic branch June 15, 2024 16:42
@htejun htejun restored the htejun/cosmetic branch June 16, 2024 06:25
@htejun htejun deleted the htejun/cosmetic 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.

1 participant