Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Feb 26, 2015

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit cf8a46a75f38afe07ebf823210f95543999e3116:

Make 'loops' honor full write+verify loops (2015-02-24 14:50:57 -0800)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 93eeb5582d56fe5e36f455c8de26c302e317fdeb:

Fix implicit function declaration on Android (2015-02-25 14:00:01 -0700)

----------------------------------------------------------------
Lars Marowsky-Bree (1):
Add --output-format option to manpage.

Raphael Silva (1):
Add missing pre-defined ARM arch compiler macro

enh (1):
Fix implicit function declaration on Android

 arch/arch-arm.h |    3 ++-
 fio.1           |    3 +++
 os/os-android.h |   12 ++++++++++++
 3 files changed, 17 insertions(+), 1 deletion(-)

---

Diff of recent changes:

arch/arch-arm.h +2 -1
index 7cd9502..bab886e 100644
@@ -19,7 +19,8 @@
 #endif
 
 #if defined (__ARM_ARCH_4__) || defined (__ARM_ARCH_4T__) \
-	|| defined (__ARM_ARCH_5__) || defined (__ARM_ARCH_5T__) || defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__) \
+	|| defined (__ARM_ARCH_5__) || defined (__ARM_ARCH_5T__) || defined (__ARM_ARCH_5E__)\
+	|| defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__) \
 	|| defined(__ARM_ARCH_6__)  || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__)
 #define nop             __asm__ __volatile__("mov\tr0,r0\t@ nop\n\t")
 #define read_barrier()	__asm__ __volatile__ ("" : : : "memory")
fio.1 +3 -0
index 33b26cc..b746da1 100644
@@ -20,6 +20,9 @@ list all available tracing options.
 .BI \-\-output \fR=\fPfilename
 Write output to \fIfilename\fR.
 .TP
+.BI \-\-output-format \fR=\fPformat
+Set the reporting format to \fInormal\fR, \fIterse\fR, or \fIjosn\fR.
+.TP
 .BI \-\-runtime \fR=\fPruntime
 Limit run time to \fIruntime\fR seconds.
 .TP
os/os-android.h +12 -0
index 954178d..b4f4f13 100644
@@ -4,6 +4,7 @@
 #define	FIO_OS	os_android
 
 #include <sys/ioctl.h>
+#include <sys/mman.h>
 #include <sys/uio.h>
 #include <sys/syscall.h>
 #include <sys/vfs.h>
@@ -37,10 +38,13 @@
 
 #define OS_MAP_ANON		MAP_ANONYMOUS
 
+#ifndef POSIX_MADV_DONTNEED
 #define posix_madvise   madvise
 #define POSIX_MADV_DONTNEED MADV_DONTNEED
 #define POSIX_MADV_SEQUENTIAL	MADV_SEQUENTIAL
 #define POSIX_MADV_RANDOM	MADV_RANDOM
+#endif
+
 #ifdef MADV_REMOVE
 #define FIO_MADV_FREE	MADV_REMOVE
 #endif
@@ -261,4 +265,12 @@ static inline int os_trim(int fd, unsigned long long start,
 	return errno;
 }
 
+#ifdef CONFIG_SCHED_IDLE
+static inline int fio_set_sched_idle(void)
+{
+        struct sched_param p = { .sched_priority = 0, };
+        return sched_setscheduler(gettid(), SCHED_IDLE, &p);
+}
+#endif
+
 #endif