5542a2c77d
1. Return earlier if there is an error. 2. Do not use filepath.Split on every entry, use info.Name() instead. 3. Make readProcsFile() accept file name as an argument, to avoid unnecessary file name and directory splitting and merging. 4. Skip on info.IsDir() -- this avoids an error when cgroup name is set to "cgroup.procs". This is still not very good since filepath.Walk() performs an unnecessary stat(2) on every entry, but better than before. 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 |