]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
cgsnapshot: Replace hardcoded "tasks" file 19/head
authorTom Hromatka <tom.hromatka@oracle.com>
Thu, 17 Dec 2020 18:39:11 +0000 (11:39 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 23 Dec 2020 15:13:26 +0000 (08:13 -0700)
commit564e6b638dd67fa80f185585f63297a5a6e73024
tree37a35d36e056cfd756e8d1f54ced6e42a8936e99
parent4f4e01062a9f22ea960fb7a7c650f9fbfcc51624
cgsnapshot: Replace hardcoded "tasks" file

Replace the hardcoded building of the tasks path in
cgsnapshot with a call to cgroup_build_tasks_procs_path().
By calling cgroup_build_tasks_procs_path(), cgsnapshot
now supports both cgroup v1 and cgroup v2.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Dhaval Giani <dhaval.giani@oracle.com>
src/tools/cgsnapshot.c