linux/tools/testing/selftests/cgroup
Sachin Sant c2e46f6b3e selftests/cgroup: Fix build on older distros
On older distros struct clone_args does not have a cgroup member,
leading to build errors:

 cgroup_util.c: In function 'clone_into_cgroup':
 cgroup_util.c:343:4: error: 'struct clone_args' has no member named 'cgroup'
 cgroup_util.c:346:33: error: invalid application of 'sizeof' to incomplete
  type 'struct clone_args'

But the selftests already have a locally defined version of the
structure which is up to date, called __clone_args.

So use __clone_args which fixes the error.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sachin Sant <sachinp@linux.vnet.ibm.com>>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2020-11-10 15:13:25 -07:00
..
.gitignore kselftests: cgroup: add kernel memory accounting tests 2020-08-07 11:33:25 -07:00
Makefile kselftests: cgroup: add kernel memory accounting tests 2020-08-07 11:33:25 -07:00
cgroup_util.c selftests/cgroup: Fix build on older distros 2020-11-10 15:13:25 -07:00
cgroup_util.h selftests/cgroup: add tests for cloning into cgroups 2020-02-12 17:57:51 -05:00
test_core.c selftests/cgroup: add tests for cloning into cgroups 2020-02-12 17:57:51 -05:00
test_freezer.c kselftests: cgroup: Avoid the reuse of fd after it is deallocated 2019-11-12 07:33:59 -08:00
test_kmem.c kselftests: cgroup: add perpcu memory accounting test 2020-08-12 10:57:55 -07:00
test_memcontrol.c kselftest/cgroup: fix unexpected testing failure on test_memcontrol 2019-05-30 08:19:17 -06:00
test_stress.sh selftests: cgroup: Run test_core under interfering stress 2019-10-07 07:11:54 -07:00
with_stress.sh selftests: cgroup: Run test_core under interfering stress 2019-10-07 07:11:54 -07:00