aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2012-09-12 16:54:11 +0530
committerAmit Pundir <amit.pundir@linaro.org>2012-09-12 16:54:11 +0530
commit171523f98224a7a8a76728e88ec15a35e34affe4 (patch)
tree96ad5b0cc3c5eaa9c78ce0d50154f7c191a2158f
parent3b14c7859ade87f422b23fc974eb7f9c09047597 (diff)
downloadsysbench-linaro_android.tar.gz
Add Android makefile and sysbench configuration filelinaro_android
Add Android make file, Android.mk and sysbench configuration file, config.h, where we disable non-Android features e.g. Async file I/O, Posix features, Database drivers. Change-Id: I201a6f76c6082fc7b97fac5106c7dc99af5117e3 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r--Android.mk31
-rw-r--r--config/config.h230
2 files changed, 261 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..615783a
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,31 @@
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_CFLAGS:= \
+ -DHAVE_CONFIG_H
+
+LOCAL_C_INCLUDES:= \
+ $(LOCAL_PATH)/config \
+ $(LOCAL_PATH)/src \
+ $(LOCAL_PATH)/src/tests \
+ $(LOCAL_PATH)/src/tests/cpu \
+ $(LOCAL_PATH)/src/tests/fileio \
+ $(LOCAL_PATH)/src/tests/mutex \
+ $(LOCAL_PATH)/src/tests/oltp \
+ $(LOCAL_PATH)/src/tests/threads
+
+LOCAL_SRC_FILES:= \
+ src/sysbench.c src/sb_timer.c src/sb_options.c \
+ src/sb_logger.c src/db_driver.c \
+ src/tests/cpu/sb_cpu.c \
+ src/tests/fileio/sb_fileio.c src/tests/fileio/crc32.c \
+ src/tests/mutex/sb_mutex.c \
+ src/tests/oltp/sb_oltp.c \
+ src/tests/threads/sb_threads.c
+
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_MODULE:= sysbench
+
+include $(BUILD_EXECUTABLE)
diff --git a/config/config.h b/config/config.h
new file mode 100644
index 0000000..d2058b7
--- /dev/null
+++ b/config/config.h
@@ -0,0 +1,230 @@
+/* config/config.h. Generated from config.h.in by configure. */
+/* config/config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define to 1 if you have the `alarm' function. */
+#define HAVE_ALARM 1
+
+/* Define if you have clock_gettime() declared in <time.h> */
+#define HAVE_CLOCK_GETTIME 1
+
+/* Define to 1 if you have the declaration of `O_SYNC', and to 0 if you don't.
+ */
+#define HAVE_DECL_O_SYNC 1
+
+/* Define to 1 if you have the declaration of `SHM_HUGETLB', and to 0 if you
+ don't. */
+/* #undef HAVE_DECL_SHM_HUGETLB */
+
+/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
+ don't. */
+#define HAVE_DECL_STRERROR_R 1
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if you have the <errno.h> header file. */
+#define HAVE_ERRNO_H 1
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#define HAVE_FCNTL_H 1
+
+/* Define to 1 if you have the `fdatasync' function. */
+#define HAVE_FDATASYNC 1
+
+/* Define to 1 if you have the `getpagesize' function. */
+#define HAVE_GETPAGESIZE 1
+
+/* Define to 1 if you have the `gettimeofday' function. */
+#define HAVE_GETTIMEOFDAY 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define if you have large pages support */
+#define HAVE_LARGE_PAGES 1
+
+/* Define to 1 if you have the `aio' library (-laio). */
+/* #undef HAVE_LIBAIO */
+
+/* Define to 1 if your system has <libaio.h> header file */
+/* #undef HAVE_LIBAIO_H */
+
+/* Define to 1 if you have the `m' library (-lm). */
+#define HAVE_LIBM 1
+
+/* Define to 1 if you have the `lrand48' function. */
+#define HAVE_LRAND48 1
+
+/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
+ to 0 otherwise. */
+#define HAVE_MALLOC 1
+
+/* Define to 1 if you have the <math.h> header file. */
+#define HAVE_MATH_H 1
+
+/* Define to 1 if you have the `memalign' function. */
+#define HAVE_MEMALIGN 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the `memset' function. */
+#define HAVE_MEMSET 1
+
+/* Define to 1 if you have a working `mmap' system call. */
+#define HAVE_MMAP 1
+
+/* Define to 1 if libaio has older getevents() interface */
+/* #undef HAVE_OLD_GETEVENTS */
+
+/* Define to 1 if you have the `posix_memalign' function. */
+/* #undef HAVE_POSIX_MEMALIGN */
+
+/* Define if you have POSIX threads libraries and header files. */
+#define HAVE_PTHREAD 1
+
+/* Define to 1 if you have the <pthread.h> header file. */
+#define HAVE_PTHREAD_H 1
+
+/* Define to 1 if you have the `pthread_yield' function. */
+/* #undef HAVE_PTHREAD_YIELD */
+
+/* Define to 1 if you have the <sched.h> header file. */
+#define HAVE_SCHED_H 1
+
+/* Define to 1 if you have the `setvbuf' function. */
+#define HAVE_SETVBUF 1
+
+/* Define to 1 if you have the <signal.h> header file. */
+#define HAVE_SIGNAL_H 1
+
+/* Define to 1 if you have the `sqrt' function. */
+#define HAVE_SQRT 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the `strdup' function. */
+#define HAVE_STRDUP 1
+
+/* Define to 1 if you have the `strerror_r' function. */
+#define HAVE_STRERROR_R 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sys/aio.h> header file. */
+/* #undef HAVE_SYS_AIO_H */
+
+/* Define to 1 if you have the <sys/ipc.h> header file. */
+#define HAVE_SYS_IPC_H 1
+
+/* Define to 1 if you have the <sys/mman.h> header file. */
+#define HAVE_SYS_MMAN_H 1
+
+/* Define to 1 if you have the <sys/shm.h> header file. */
+/* #undef HAVE_SYS_SHM_H */
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <thread.h> header file. */
+/* #undef HAVE_THREAD_H */
+
+/* Define to 1 if you have the `thr_setconcurrency' function. */
+/* #undef HAVE_THR_SETCONCURRENCY */
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define to 1 if you have the `valloc' function. */
+#define HAVE_VALLOC 1
+
+/* Define if /proc/meminfo shows the huge page size (Linux only) */
+#define HUGETLB_USE_PROC_MEMINFO 1
+
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+ */
+#define LT_OBJDIR ".libs/"
+
+/* Define to the appropriate value for O_SYNC on your platform */
+/* #undef O_SYNC */
+
+/* Name of package */
+#define PACKAGE "sysbench"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "alexeyk@mysql.com"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "sysbench"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "sysbench 0.4.12"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "sysbench"
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "0.4.12"
+
+/* Define to necessary symbol if this constant uses a non-standard name on
+ your system. */
+/* #undef PTHREAD_CREATE_JOINABLE */
+
+/* The size of `size_t', as computed by sizeof. */
+#define SIZEOF_SIZE_T 8
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define to 1 if strerror_r returns char *. */
+/* #undef STRERROR_R_CHAR_P */
+
+/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
+#define TIME_WITH_SYS_TIME 1
+
+/* Define to 1 if you want to compile with MySQL support */
+/* #undef USE_MYSQL */
+
+/* Define to 1 if you want to compile with Oracle support */
+/* #undef USE_ORACLE */
+
+/* Define to 1 if you want to compile with PostgreSQL support */
+/* #undef USE_PGSQL */
+
+/* Version number of package */
+#define VERSION "0.4.12"
+
+/* Number of bits in a file offset, on hosts where this is settable. */
+/* #undef _FILE_OFFSET_BITS */
+
+/* Define for large files, on AIX-style hosts. */
+/* #undef _LARGE_FILES */
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
+#ifndef __cplusplus
+/* #undef inline */
+#endif
+
+/* Define to rpl_malloc if the replacement function should be used. */
+/* #undef malloc */
+
+/* Define to `long int' if <sys/types.h> does not define. */
+/* #undef off_t */
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+/* #undef size_t */