Message ID | 20210627153627.824198-1-namhyung@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 95b861a7935bf75f647959073093ab8058b88c26 |
Delegated to: | BPF |
Headers | show |
Series | bpf: Allow bpf_get_current_ancestor_cgroup_id for tracing | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
Hello: This patch was applied to bpf/bpf-next.git (refs/heads/master): On Sun, 27 Jun 2021 08:36:27 -0700 you wrote: > Allow the helper to be called from tracing programs. This is needed > to handle cgroup hiererachies in the program. > > Signed-off-by: Namhyung Kim <namhyung@kernel.org> > --- > kernel/trace/bpf_trace.c | 2 ++ > 1 file changed, 2 insertions(+) Here is the summary with links: - bpf: Allow bpf_get_current_ancestor_cgroup_id for tracing https://git.kernel.org/bpf/bpf-next/c/95b861a7935b You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/kernel/trace/bpf_trace.c b/kernel/trace/bpf_trace.c index 7a52bc172841..64bd2d84367f 100644 --- a/kernel/trace/bpf_trace.c +++ b/kernel/trace/bpf_trace.c @@ -1017,6 +1017,8 @@ bpf_tracing_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) #ifdef CONFIG_CGROUPS case BPF_FUNC_get_current_cgroup_id: return &bpf_get_current_cgroup_id_proto; + case BPF_FUNC_get_current_ancestor_cgroup_id: + return &bpf_get_current_ancestor_cgroup_id_proto; #endif case BPF_FUNC_send_signal: return &bpf_send_signal_proto;
Allow the helper to be called from tracing programs. This is needed to handle cgroup hiererachies in the program. Signed-off-by: Namhyung Kim <namhyung@kernel.org> --- kernel/trace/bpf_trace.c | 2 ++ 1 file changed, 2 insertions(+)