Android: add support for cgroups
authorOmri Mor <omor1@asu.edu>
Sat, 20 May 2017 09:09:45 +0000 (02:09 -0700)
committerOmri Mor <omor1@asu.edu>
Sat, 20 May 2017 09:09:45 +0000 (02:09 -0700)
Signed-off-by: Omri Mor <omor1@asu.edu>
Makefile
os/os-android.h

index 1f0f5d04c8b8aedaee17ec278414f86d2e61158f..c3e551dffd1a2ef6f37c7bda521928180bb0e10e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -140,7 +140,7 @@ ifeq ($(CONFIG_TARGET_OS), Linux)
   LDFLAGS += -rdynamic
 endif
 ifeq ($(CONFIG_TARGET_OS), Android)
-  SOURCE += diskutil.c fifo.c blktrace.c trim.c profiles/tiobench.c \
+  SOURCE += diskutil.c fifo.c blktrace.c cgroup.c trim.c profiles/tiobench.c \
                oslib/linux-dev-lookup.c
   LIBS += -ldl
   LDFLAGS += -rdynamic
index 6c3e0985b22fc5896e21d42458f02ff4b2be444c..7ce312854806566252c376ab11369cde4dba5ac1 100644 (file)
@@ -32,6 +32,7 @@
 #define FIO_HAVE_HUGETLB
 #define FIO_HAVE_BLKTRACE
 #define FIO_HAVE_CL_SIZE
+#define FIO_HAVE_CGROUPS
 #define FIO_HAVE_FS_STAT
 #define FIO_HAVE_TRIM
 #define FIO_HAVE_GETTID