projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fio: work with cgroup2 as well
[fio.git]
/
cgroup.h
diff --git
a/cgroup.h
b/cgroup.h
index 1c67ba80ab36ee1e67f9b454e3d9ed8d62875e53..5afac7f7551fe502670cc3b82cf2910a1374cc04 100644
(file)
--- a/
cgroup.h
+++ b/
cgroup.h
@@
-3,24
+3,32
@@
#ifdef FIO_HAVE_CGROUPS
#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;
+};
-void cgroup_kill(void);
+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
#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_mount **mnt)
{
td_verror(td, EINVAL, "cgroup_setup");
return 1;
}
{
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
)
{
}
{
}
-
void cgroup_kill(void
)
+
static inline void cgroup_kill(struct flist_head *list
)
{
}
{
}