linux_dsm_epyc7002/tools/testing/selftests/cgroup
Chris Down b59b1baab7 cgroup: kselftest: relax fs_spec checks
On my laptop most memcg kselftests were being skipped because it claimed
cgroup v2 hierarchy wasn't mounted, but this isn't correct.  Instead, it
seems current systemd HEAD mounts it with the name "cgroup2" instead of
"cgroup":

    % grep cgroup /proc/mounts
    cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0

I can't think of a reason to need to check fs_spec explicitly
since it's arbitrary, so we can just rely on fs_vfstype.

After these changes, `make TARGETS=cgroup kselftest` actually runs the
cgroup v2 tests in more cases.

Link: http://lkml.kernel.org/r/20190723210737.GA487@chrisdown.name
Signed-off-by: Chris Down <chris@chrisdown.name>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Roman Gushchin <guro@fb.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-08-03 07:02:01 -07:00
..
.gitignore kselftests: cgroup: add freezer controller self-tests 2019-04-19 11:26:49 -07:00
cgroup_util.c cgroup: kselftest: relax fs_spec checks 2019-08-03 07:02:01 -07:00
cgroup_util.h kselftests: cgroup: add freezer controller self-tests 2019-04-19 11:26:49 -07:00
Makefile kselftests: cgroup: add freezer controller self-tests 2019-04-19 11:26:49 -07:00
test_core.c kselftest/cgroup: fix incorrect test_core skip 2019-05-30 08:19:17 -06:00
test_freezer.c kselftests: cgroup: remove duplicated include from test_freezer.c 2019-07-02 13:29:43 -06:00
test_memcontrol.c kselftest/cgroup: fix unexpected testing failure on test_memcontrol 2019-05-30 08:19:17 -06:00