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

scx: Cosmetic changes to kfuncs #174

Merged
merged 1 commit into from
Apr 5, 2024
Merged

scx: Cosmetic changes to kfuncs #174

merged 1 commit into from
Apr 5, 2024

Conversation

htejun
Copy link
Collaborator

@htejun htejun commented Apr 5, 2024

  • Make __bpf_kfunc_start/end_defs() blocks strict so that they only contain kfunc definitions.

  • Match BTF_KFUNCS table with kfunc definition blocks so that they always come right after in the same order.

  • Add function comment to scx_bpf_select_cpu_dfl() and rename @found to @is_idle which is more accurate and consistent with the BPF side declaration.

- Make __bpf_kfunc_start/end_defs() blocks strict so that they only contain
  kfunc definitions.

- Match BTF_KFUNCS table with kfunc definition blocks so that they always
  come right after in the same order.

- Add function comment to scx_bpf_select_cpu_dfl() and rename @found to
  @is_idle which is more accurate and consistent with the BPF side
  declaration.
@htejun htejun requested a review from Byte-Lab April 5, 2024 16:48
* Empty function body because we aren't actually acquiring or
* releasing a reference to a global idle cpumask, which is read-only
* in the caller and is never released. The acquire / release semantics
* here are just used to make the cpumask is a trusted pointer in the
Copy link
Collaborator

Choose a reason for hiding this comment

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

Noticed a grammatical typo here from a previous commit. Feel free to fix, or ignore as you prefer.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will fix. Thanks.

@htejun htejun merged commit 779538f into sched_ext Apr 5, 2024
1 check passed
@htejun htejun deleted the htejun/misc branch April 5, 2024 16:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants