c3b0b13fe9
Function defaultPath always parses /proc/self/cgroup, but the resulting value is not always used. Avoid unnecessary reading/parsing by moving the code to just before its use. Modify the test case accordingly. [v2: test: use UnifiedMountpoint, skip test if not on v2] Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> |
||
---|---|---|
.. | ||
ebpf | ||
fs | ||
fs2 | ||
fscommon | ||
systemd | ||
cgroups.go | ||
cgroups_test.go | ||
cgroups_unsupported.go | ||
stats.go | ||
utils.go | ||
utils_test.go |