diff options
author | Michal Koutný <mkoutny@suse.com> | 2019-10-04 12:57:41 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2019-10-07 07:11:54 -0700 |
commit | 58c9f75b86f76895b9dd44f21dc1e37d0f477cc7 (patch) | |
tree | 8bf68c62b3f6973e0ccc89da290522085855e11e /tools/testing/selftests/cgroup/test_freezer.c | |
parent | cgroup: Optimize single thread migration (diff) | |
download | linux-dev-58c9f75b86f76895b9dd44f21dc1e37d0f477cc7.tar.xz linux-dev-58c9f75b86f76895b9dd44f21dc1e37d0f477cc7.zip |
selftests: cgroup: Simplify task self migration
Simplify task migration by being oblivious about its PID during
migration. This allows to easily migrate individual threads as well.
This change brings no functional change and prepares grounds for thread
granularity migrating tests.
Signed-off-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | tools/testing/selftests/cgroup/test_freezer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/cgroup/test_freezer.c b/tools/testing/selftests/cgroup/test_freezer.c index 0fc1b6d4b0f9..aadc52a1a1b1 100644 --- a/tools/testing/selftests/cgroup/test_freezer.c +++ b/tools/testing/selftests/cgroup/test_freezer.c @@ -701,7 +701,7 @@ static int proc_check_stopped(int pid) char buf[PAGE_SIZE]; int len; - len = proc_read_text(pid, "stat", buf, sizeof(buf)); + len = proc_read_text(pid, 0, "stat", buf, sizeof(buf)); if (len == -1) { debug("Can't get %d stat\n", pid); return -1; |