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

2024-03-18 Thread Stanislav Fomichev
On 03/16, 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 scenarios where obtaining the cgr

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

2024-03-18 Thread Yonghong Song
On 3/16/24 9:22 AM, 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 scenarios where obtaining t

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

2024-03-16 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 "current