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

Update bpf_get[_ns]_current_pid_tgid helper function data #89

Merged

Conversation

dylandreimerink
Copy link
Collaborator

Since v6.10, the bpf_get[_ns]_current_pid_tgid helper functions can be
used in all program types. This was not reflected in the docs.

Since we want to reflect the version in the references, we are keeping
the existing program associations and adding a new mention of the
helpers in the "base" group with the since attribute. The intended
purpose is so all programs that could use them before are not annotated
with the since info, but all programs where support is new do have the
version info.

However, turns out the group flattening logic did not respect the
hierarchy of the groups, so the since attribute was always shown.
So the tool was updated, groups are resolved first, if a more specific
group or more specific program type declares it as well, the newer
declaration is used. This results in the intended behavior.

Since v6.10, the `bpf_get[_ns]_current_pid_tgid` helper functions can be
used in all program types. This was not reflected in the docs.

Since we want to reflect the version in the references, we are keeping
the existing program associations and adding a new mention of the
helpers in the "base" group with the `since` attribute. The intended
purpose is so all programs that could use them before are not annotated
with the `since` info, but all programs where support is new do have the
version info.

However, turns out the group flattening logic did not respect the
hierarchy of the groups, so the `since` attribute was always shown.
So the tool was updated, groups are resolved first, if a more specific
group or more specific program type declares it as well, the newer
declaration is used. This results in the intended behavior.

Signed-off-by: Dylan Reimerink <[email protected]>
Apparently the pages for the HID BPF helper functions were not updated
after the sleepable flag was added to the kfuncs data file. So it got
updated when running the `make generate-docs` command for the last
commit.

Signed-off-by: Dylan Reimerink <[email protected]>
@dylandreimerink dylandreimerink merged commit e6418b9 into master Nov 22, 2024
1 check passed
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