public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* bpf_sk_cgroup_id is not available in tracepoints
@ 2023-08-01 21:59 Ivan Babrou
  2023-08-01 23:17 ` Martin KaFai Lau
  0 siblings, 1 reply; 2+ messages in thread
From: Ivan Babrou @ 2023-08-01 21:59 UTC (permalink / raw)
  To: bpf
  Cc: kernel-team, Alexei Starovoitov, Andrii Nakryiko, Daniel Borkmann,
	Stanislav Fomichev, Martin KaFai Lau

Hello,

I noticed that bpf_sk_cgroup_id is not available in a tracepoint (it
is only available in cgroup related skb filters), even though I can
easily do what it does manually:

u64 cgroup_id = sk->sk_cgrp_data.cgroup->kn->id;

It seems to me that bpf_sk_cgroup_id and similar functions should be
added to bpf_base_func_proto (unless there's a better place).

I'm happy to send a patch if this makes sense.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-01 23:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-01 21:59 bpf_sk_cgroup_id is not available in tracepoints Ivan Babrou
2023-08-01 23:17 ` Martin KaFai Lau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox