Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
#define FIO_USE_GENERIC_RAND
#define FIO_HAVE_CHARDEV_SIZE
#define FIO_HAVE_CLOCK_MONOTONIC
+#define FIO_HAVE_GETTID
#define OS_MAP_ANON MAP_ANON
return mem;
}
+static inline int gettid(void)
+{
+ long lwpid;
+
+ thr_self(&lwpid);
+ return (int) lwpid;
+}
+
#ifdef MADV_FREE
#define FIO_MADV_FREE MADV_FREE
#endif
#define FIO_HAVE_POSIXAIO
#define FIO_HAVE_CLOCK_MONOTONIC
#define FIO_USE_GENERIC_RAND
+#define FIO_HAVE_GETTID
#define OS_MAP_ANON MAP_ANON
sysctl(mib, 2, &mem, &len, NULL, 0);
return mem;
}
+
+static inline int gettid(void)
+{
+ return mach_thread_self();
+}
#endif
return 0;
}
+static inline int gettid(void)
+{
+ return pthread_self();
+}
+
/*
* Should be enough, not aware of what (if any) restrictions Solaris has
*/