Commit 9ffc2e80 authored by Mike Frysinger's avatar Mike Frysinger Committed by Peter Korsgaard
Browse files

dhrystone: new benchmark package

parent beb56ca6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@

	Updated/fixed packages: cloop, m4, openssh, qt, xz

	New packages: lsuio, rsh-redone, whetstone
	New packages: dhrystone, lsuio, rsh-redone, whetstone

	Issues resolved (http://bugs.uclibc.org):

+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ source "package/xz/Config.in"
endmenu

menu "Debugging, profiling and benchmark"
source "package/dhrystone/Config.in"
source "package/dmalloc/Config.in"
source "package/kexec/Config.in"
source "package/lmbench/Config.in"
+6 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_DHRYSTONE
	bool "dhrystone"
	help
	  easy-to-use integer benchmark

	  http://www.netlib.org/benchmark/dhry-c
+12 −0
Original line number Diff line number Diff line
CPPFLAGS += -DNO_PROTOTYPES=1
LDLIBS += -lm

all: dhrystone

dhrystone: dhry_1.o dhry_2.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)

clean:
	rm -f *.o dhrystone

.PHONY: all clean
+17 −0
Original line number Diff line number Diff line
Get HZ value from system rather than requiring via CPPFLAGS

Patch by Robin Getz <rgetz@blackfin.uclinux.org>

--- a/dhry.h
+++ b/dhry.h
@@ -359,6 +359,10 @@
                 /* for "times" */
 #endif
 
+#ifndef HZ
+#include <sys/param.h>
+#endif
+
 #define Mic_secs_Per_Second     1000000.0
                 /* Berkeley UNIX C returns process times in seconds/HZ */
 
Loading