diff options
author | Tejun Heo <tj@kernel.org> | 2013-04-14 10:32:19 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-04-14 10:47:02 -0700 |
commit | da1f296fd2bfd5ad3c53d72a1ece593e821cf374 (patch) | |
tree | 775d4cac346481dc310f2174f0a8a2c38ed60ccd /tools/perf/scripts/python/netdev-times.py | |
parent | 26d5bbe5ba2073fc7ef9e69a55543b2376f5bad0 (diff) |
cgroup: make cgroup_path() not print double slashes
While reimplementing cgroup_path(), 65dff759d2 ("cgroup: fix
cgroup_path() vs rename() race") introduced a bug where the path of a
non-root cgroup would have two slahses at the beginning, which is
caused by treating the root cgroup which has the name '/' like
non-root cgroups.
$ grep systemd /proc/self/cgroup
1:name=systemd://user/root/1
Fix it by special casing root cgroup case and not looping over it in
the normal path.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions