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

Document some recent core kfunc additions #4144

Closed
wants to merge 3 commits into from

Conversation

kernel-patches-bot
Copy link

Pull request for series with
subject: Document some recent core kfunc additions
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=701386

@kernel-patches-bot
Copy link
Author

Upstream branch: bc067ca
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=701386
version: 1

@kernel-patches-bot
Copy link
Author

Upstream branch: f16a7aa
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=701386
version: 1

@kernel-patches-bot
Copy link
Author

Upstream branch: 7068194
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=701386
version: 1

@kernel-patches-bot
Copy link
Author

Upstream branch: 1910676
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=701386
version: 1

@kernel-patches-bot
Copy link
Author

Upstream branch: c0c852d
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=701386
version: 1

@kernel-patches-bot
Copy link
Author

Upstream branch: 8972e18
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=701386
version: 1

@kernel-patches-bot
Copy link
Author

Upstream branch: 41d76c7
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=701386
version: 1

@kernel-patches-bot
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=701386 expired. Closing PR.

@kernel-patches-bot
Copy link
Author

Upstream branch: ab0350c
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=701977
version: 2

@kernel-patches-bot
Copy link
Author

Upstream branch: 08388ef
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=701977
version: 2

@kernel-patches-bot
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=701977 expired. Closing PR.

@kernel-patches-bot
Copy link
Author

Upstream branch: e9b4aee
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=702722
version: 3

@kernel-patches-bot
Copy link
Author

Upstream branch: dcb2288
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=702722
version: 3

@kernel-patches-bot
Copy link
Author

Upstream branch: 26c386e
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=702722
version: 3

bpf_task_acquire(), bpf_task_release(), and bpf_task_from_pid() are
kfuncs that were recently added to kernel/bpf/helpers.c. These are
"core" kfuncs in that they're available for use for any tracepoint or
struct_ops BPF program. Though they have no ABI stability guarantees, we
should still document them. This patch adds a new Core kfuncs section to
the BPF kfuncs doc, and adds entries for all of these task kfuncs.

Note that bpf_task_kptr_get() is not documented, as it still returns
NULL while we're working to resolve how it can use RCU to ensure struct
task_struct * lifetime.

Signed-off-by: David Vernet <void@manifault.com>
bpf_cgroup_acquire(), bpf_cgroup_release(), bpf_cgroup_kptr_get(), and
bpf_cgroup_ancestor(), are kfuncs that were recently added to
kernel/bpf/helpers.c. These are "core" kfuncs in that they're available
for use in any tracepoint or struct_ops BPF program. Though they have no
ABI stability guarantees, we should still document them. This patch adds
a struct cgroup * subsection to the Core kfuncs section which describes
each of these kfuncs.

Signed-off-by: David Vernet <void@manifault.com>
@kernel-patches-bot
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=702722 irrelevant now. Closing PR.

@kernel-patches-bot kernel-patches-bot deleted the series/701386=>bpf-next branch December 8, 2022 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants