Flexible I/O Tester development
 help / color / mirror / Atom feed
* [PATCH] fio: Include support for ARM.
@ 2009-04-23 11:38 Kedar Sovani
  2009-04-23 11:47 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Kedar Sovani @ 2009-04-23 11:38 UTC (permalink / raw)
  To: fio; +Cc: axboe, Kedar Sovani

Resending to the new list.
Assembly instructions picked from include/asm-arm/system.h

Please consider for inclusion.

Signed-off-by: Kedar Sovani <kedars@marvell.com>
diff -urp fio.orig/arch/arch.h fio/arch/arch.h
--- fio.orig/arch/arch.h	2008-11-18 13:22:55.000000000 -0500
+++ fio/arch/arch.h	2009-04-23 13:37:46.000000000 -0400
@@ -10,6 +10,7 @@ enum {
 	arch_alpha,
 	arch_sparc,
 	arch_sparc64,
+	arch_arm,
 };
 
 #if defined(__i386__)
@@ -28,6 +29,8 @@ enum {
 #include "arch-sparc.h"
 #elif defined(__sparc64__)
 #include "arch-sparc64.h"
+#elif defined(__arm__)
+#include "arch-arm.h"
 #else
 #error "Unsupported arch"
 #endif
diff -Nurp fio.orig/arch/arch-arm.h fio/arch/arch-arm.h
--- fio.orig/arch/arch-arm.h	1969-12-31 19:00:00.000000000 -0500
+++ fio/arch/arch-arm.h	2009-04-23 14:20:32.000000000 -0400
@@ -0,0 +1,27 @@
+#ifndef ARCH_ARM_H
+#define ARCH_ARM_H
+
+#define ARCH	(arch_arm)
+
+#ifndef __NR_ioprio_set
+#define __NR_ioprio_set		314
+#define __NR_ioprio_get		315
+#endif
+
+#ifndef __NR_fadvise64
+#define __NR_fadvise64		270
+#endif
+
+#ifndef __NR_sys_splice
+#define __NR_sys_splice		340
+#define __NR_sys_tee		342
+#define __NR_sys_vmsplice	343
+#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__)
+#define nop             __asm__ __volatile__("mov\tr0,r0\t@ nop\n\t")
+#define read_barrier()	__asm__ __volatile__ ("" : : : "memory")
+#define write_barrier()	__asm__ __volatile__ ("" : : : "memory")
+#endif
+
+#endif

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] fio: Include support for ARM.
  2009-04-23 11:38 [PATCH] fio: Include support for ARM Kedar Sovani
@ 2009-04-23 11:47 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2009-04-23 11:47 UTC (permalink / raw)
  To: Kedar Sovani; +Cc: fio

On Thu, Apr 23 2009, Kedar Sovani wrote:
> Resending to the new list.
> Assembly instructions picked from include/asm-arm/system.h

Excellent, thanks a lot!

> Please consider for inclusion.

Added.

> 
> Signed-off-by: Kedar Sovani <kedars@marvell.com>
> diff -urp fio.orig/arch/arch.h fio/arch/arch.h
> --- fio.orig/arch/arch.h	2008-11-18 13:22:55.000000000 -0500
> +++ fio/arch/arch.h	2009-04-23 13:37:46.000000000 -0400
> @@ -10,6 +10,7 @@ enum {
>  	arch_alpha,
>  	arch_sparc,
>  	arch_sparc64,
> +	arch_arm,
>  };
>  
>  #if defined(__i386__)
> @@ -28,6 +29,8 @@ enum {
>  #include "arch-sparc.h"
>  #elif defined(__sparc64__)
>  #include "arch-sparc64.h"
> +#elif defined(__arm__)
> +#include "arch-arm.h"
>  #else
>  #error "Unsupported arch"
>  #endif
> diff -Nurp fio.orig/arch/arch-arm.h fio/arch/arch-arm.h
> --- fio.orig/arch/arch-arm.h	1969-12-31 19:00:00.000000000 -0500
> +++ fio/arch/arch-arm.h	2009-04-23 14:20:32.000000000 -0400
> @@ -0,0 +1,27 @@
> +#ifndef ARCH_ARM_H
> +#define ARCH_ARM_H
> +
> +#define ARCH	(arch_arm)
> +
> +#ifndef __NR_ioprio_set
> +#define __NR_ioprio_set		314
> +#define __NR_ioprio_get		315
> +#endif
> +
> +#ifndef __NR_fadvise64
> +#define __NR_fadvise64		270
> +#endif
> +
> +#ifndef __NR_sys_splice
> +#define __NR_sys_splice		340
> +#define __NR_sys_tee		342
> +#define __NR_sys_vmsplice	343
> +#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__)
> +#define nop             __asm__ __volatile__("mov\tr0,r0\t@ nop\n\t")
> +#define read_barrier()	__asm__ __volatile__ ("" : : : "memory")
> +#define write_barrier()	__asm__ __volatile__ ("" : : : "memory")
> +#endif
> +
> +#endif
> --
> To unsubscribe from this list: send the line "unsubscribe fio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-23 11:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-23 11:38 [PATCH] fio: Include support for ARM Kedar Sovani
2009-04-23 11:47 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox