Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg:cgroups: fix parsing process cgroups for cgroupv1
The CgroupIDFromPID() function parses the process cgroup hierarchies obtained from /proc/pid/cgroup , it was not tested on cgroupv1 however it contains a bug, let's fix this. We want the cgroup hierarchy ID since that's the one that is exposed by the kernel not the cgroup subsystem index which is used in bpf to read cgroupv1 css indexes. Signed-off-by: Djalal Harouni <[email protected]>
- Loading branch information