X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=cgroup.h;h=10313b7dbccf1e43f83016dc444856fc0dc7815a;hp=65fa3ad128ce5d036d74a0f9ca5e80f26deb3c1b;hb=2f84d0c71475264d6e14d782ecb38f63a22bc3a7;hpb=a696fa2a9c2e21a1c88813235d6fc39d267f6155 diff --git a/cgroup.h b/cgroup.h index 65fa3ad1..10313b7d 100644 --- a/cgroup.h +++ b/cgroup.h @@ -3,18 +3,32 @@ #ifdef FIO_HAVE_CGROUPS -int cgroup_setup(struct thread_data *td); -void cgroup_shutdown(struct thread_data *td); +struct cgroup_mnt { + char *path; + bool cgroup2; +}; + +int cgroup_setup(struct thread_data *, struct flist_head *, struct cgroup_mnt **); +void cgroup_shutdown(struct thread_data *, struct cgroup_mnt *); + +void cgroup_kill(struct flist_head *list); #else -static inline int cgroup_setup(struct thread_data *td) +struct cgroup_mnt; + +static inline int cgroup_setup(struct thread_data *td, struct flist_head *list, + struct cgroup_mnt **mnt) { td_verror(td, EINVAL, "cgroup_setup"); return 1; } -static inline void cgroup_shutdown(struct thread_data *td) +static inline void cgroup_shutdown(struct thread_data *td, struct cgroup_mnt *mnt) +{ +} + +static inline void cgroup_kill(struct flist_head *list) { }