* [PATCH] bpf: Allow bpf_get_current_ancestor_cgroup_id for tracing
@ 2021-06-27 15:36 Namhyung Kim
2021-06-28 13:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Namhyung Kim @ 2021-06-27 15:36 UTC (permalink / raw)
To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko
Cc: Martin KaFai Lau, Song Liu, Yonghong Song, John Fastabend,
KP Singh, Arnaldo Carvalho de Melo, Jiri Olsa, Steven Rostedt,
Ingo Molnar, Ian Rogers, bpf, netdev, LKML
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(+)
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;
--
2.32.0.93.g670b81a890-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] bpf: Allow bpf_get_current_ancestor_cgroup_id for tracing
2021-06-27 15:36 [PATCH] bpf: Allow bpf_get_current_ancestor_cgroup_id for tracing Namhyung Kim
@ 2021-06-28 13:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-06-28 13:50 UTC (permalink / raw)
To: Namhyung Kim
Cc: ast, daniel, andrii, kafai, songliubraving, yhs, john.fastabend,
kpsingh, acme, jolsa, rostedt, mingo, irogers, bpf, netdev,
linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-28 13:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-27 15:36 [PATCH] bpf: Allow bpf_get_current_ancestor_cgroup_id for tracing Namhyung Kim
2021-06-28 13:50 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.