upgrade to iozone 3.7
This commit is contained in:
parent
eab07f582c
commit
9d2bf710a6
@ -1,7 +1,7 @@
|
||||
# $OpenBSD: Makefile,v 1.9 1999/09/11 00:40:46 brad Exp $
|
||||
# $OpenBSD: Makefile,v 1.10 1999/09/14 21:04:29 brad Exp $
|
||||
|
||||
DISTNAME= iozone
|
||||
PKGNAME= iozone-3.3
|
||||
PKGNAME= iozone-3.7
|
||||
CATEGORIES= benchmarks
|
||||
MASTER_SITES= http://www.iozone.org/src/
|
||||
EXTRACT_SUFX= .tar
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (iozone.tar) = 192632b59b4ebaadc08030b7b62e5f55
|
||||
RMD160 (iozone.tar) = 423493096777b955e2d778b3324879875121263f
|
||||
SHA1 (iozone.tar) = 2c8990059cc55fd325b2ee452803aa658dafe634
|
||||
MD5 (iozone.tar) = d4f44870fa98d5b5a5b9ac341ba43715
|
||||
RMD160 (iozone.tar) = 50e115519ba14a8db6f1762649f9dd5e483c4f3a
|
||||
SHA1 (iozone.tar) = 86abdf96756c2a8144167dc33e78ac5debfa8a4d
|
||||
|
@ -1,47 +0,0 @@
|
||||
--- makefile.orig Wed Sep 8 10:41:01 1999
|
||||
+++ makefile Fri Sep 10 20:21:23 1999
|
||||
@@ -6,7 +6,7 @@
|
||||
#
|
||||
# Supports: hpux, hpux_no_ansi, hpux-10.1, hpux_no_ansi-10.1,
|
||||
# sppux, sppux-10.1, ghpux, sppux,
|
||||
-# convex, FreeBSD
|
||||
+# convex, FreeBSD, OpenBSD
|
||||
|
||||
|
||||
all:
|
||||
@@ -15,6 +15,7 @@
|
||||
@echo "\t-> AIX (32bit) <-"
|
||||
@echo "\t-> convex (32bit) <-"
|
||||
@echo "\t-> freebsd (32bit) <-"
|
||||
+ @echo "\t-> openbsd (32bit) <-"
|
||||
@echo "\t-> generic (32bit) <-"
|
||||
@echo "\t-> ghpux (32bit) <-"
|
||||
@echo "\t-> hpuxs-11.0 (simple) (32bit) <-"
|
||||
@@ -205,6 +206,15 @@
|
||||
freebsd: iozone_freebsd.o libbif.o
|
||||
cc -O -Dunix -DHAVE_ANSIC_C -DNO_THREADS -DSHARED_MEM \
|
||||
iozone_freebsd.o libbif.o -o iozone
|
||||
+
|
||||
+#
|
||||
+# GNU C compiler OpenBSD build with no threads, no largefiles, no async I/O
|
||||
+#
|
||||
+
|
||||
+openbsd: iozone_openbsd.o libbif.o
|
||||
+ cc -O -Dunix -DHAVE_ANSIC_C -DNO_THREADS -DSHARED_MEM \
|
||||
+ iozone_openbsd.o libbif.o -o iozone
|
||||
+
|
||||
#
|
||||
#
|
||||
# Now for the machine specific stuff
|
||||
@@ -433,3 +443,11 @@
|
||||
cc -c -O -Dunix -Dbsd4_2 -DHAVE_ANSIC_C -DNO_THREADS \
|
||||
-DSHARED_MEM libbif.c -o libbif.o
|
||||
|
||||
+iozone_openbsd.o: iozone.c libbif.c
|
||||
+ @echo ""
|
||||
+ @echo "Build Iozone for OpenBSD"
|
||||
+ @echo ""
|
||||
+ cc -c -O -Dunix -Dbsd4_4 -DHAVE_ANSIC_C -DNO_THREADS \
|
||||
+ -DSHARED_MEM iozone.c -o iozone_openbsd.o
|
||||
+ cc -c -O -Dunix -Dbsd4_4 -DHAVE_ANSIC_C -DNO_THREADS \
|
||||
+ -DSHARED_MEM libbif.c -o libbif.o
|
@ -1,44 +0,0 @@
|
||||
--- iozone.c.orig Wed Sep 8 10:41:00 1999
|
||||
+++ iozone.c Fri Sep 10 20:37:27 1999
|
||||
@@ -74,7 +74,7 @@
|
||||
int main();
|
||||
#ifndef __convex__
|
||||
#endif
|
||||
-#ifdef __FreeBSD__
|
||||
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
#include <sys/types.h>
|
||||
#define O_SYNC 0
|
||||
#endif
|
||||
@@ -192,7 +192,7 @@
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
-#ifndef __FreeBSD__
|
||||
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
/* SCO Unix System V */
|
||||
@@ -263,6 +263,11 @@
|
||||
#ifdef bsd4_2
|
||||
#define BSDtime
|
||||
#endif
|
||||
+#ifdef bsd4_4
|
||||
+#define BSDtime
|
||||
+/*#include <stdlib.h>
|
||||
+#include <string.h>*/
|
||||
+#endif
|
||||
#ifdef BSDtime
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
@@ -283,6 +288,11 @@
|
||||
#define GOT_PAGESIZE 1
|
||||
#define MS_SYNC 0
|
||||
#define MS_ASYNC 0
|
||||
+#endif
|
||||
+
|
||||
+#ifdef bsd4_4
|
||||
+long long page_size = 4096;
|
||||
+#define GOT_PAGESIZE 1
|
||||
#endif
|
||||
|
||||
#ifdef solaris
|
Loading…
Reference in New Issue
Block a user