Re: [PATCH V3 bpf-next 1/2] bpf: add bpf_task_get_cgroup kfunc

2024-03-20 Thread Alexei Starovoitov
On Wed, Mar 20, 2024 at 7:41 AM Tejun Heo wrote: > > On Mon, Mar 18, 2024 at 11:03:01PM -0600, Jose Fernandez wrote: > > This patch enhances the BPF helpers by adding a kfunc to retrieve the > > cgroup v2 of a task, addressing a previous limitation where only > > bpf_task_get_cgroup1 was

Re: [PATCH V3 bpf-next 1/2] bpf: add bpf_task_get_cgroup kfunc

2024-03-20 Thread Tejun Heo
On Mon, Mar 18, 2024 at 11:03:01PM -0600, Jose Fernandez wrote: > This patch enhances the BPF helpers by adding a kfunc to retrieve the > cgroup v2 of a task, addressing a previous limitation where only > bpf_task_get_cgroup1 was available for cgroup v1. The new kfunc is > particularly useful for

Re: [PATCH V3 bpf-next 1/2] bpf: add bpf_task_get_cgroup kfunc

2024-03-20 Thread Alexei Starovoitov
On Mon, Mar 18, 2024 at 10:04 PM Jose Fernandez wrote: > > This patch enhances the BPF helpers by adding a kfunc to retrieve the > cgroup v2 of a task, addressing a previous limitation where only > bpf_task_get_cgroup1 was available for cgroup v1. The new kfunc is > particularly useful for

[PATCH V3 bpf-next 1/2] bpf: add bpf_task_get_cgroup kfunc

2024-03-18 Thread Jose Fernandez
This patch enhances the BPF helpers by adding a kfunc to retrieve the cgroup v2 of a task, addressing a previous limitation where only bpf_task_get_cgroup1 was available for cgroup v1. The new kfunc is particularly useful for scenarios where obtaining the cgroup ID of a task other than the