Date: Fri, 25 Sep 2015 15:14:18 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r397826 - in head/benchmarks: . stress-ng stress-ng/files Message-ID: <201509251514.t8PFEIM8091955@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Fri Sep 25 15:14:18 2015 New Revision: 397826 URL: https://svnweb.freebsd.org/changeset/ports/397826 Log: This stress test suite will stress a computer system in various selectable ways It was designed to exercise various physical subsystems of a computer as well as various operating system kernel interfaces. WWW: http://kernel.ubuntu.com/~cking/stress-ng/ PR: 200949 Submitted by: luca.pizzamiglio@gmail.com Added: head/benchmarks/stress-ng/ head/benchmarks/stress-ng/Makefile (contents, props changed) head/benchmarks/stress-ng/distinfo (contents, props changed) head/benchmarks/stress-ng/files/ head/benchmarks/stress-ng/files/extrapatch-Makefile (contents, props changed) head/benchmarks/stress-ng/files/extrapatch-stress-cpu.c (contents, props changed) head/benchmarks/stress-ng/files/patch-stress-cpu.c (contents, props changed) head/benchmarks/stress-ng/pkg-descr (contents, props changed) Modified: head/benchmarks/Makefile Modified: head/benchmarks/Makefile ============================================================================== --- head/benchmarks/Makefile Fri Sep 25 15:05:43 2015 (r397825) +++ head/benchmarks/Makefile Fri Sep 25 15:14:18 2015 (r397826) @@ -70,6 +70,7 @@ SUBDIR += smhasher SUBDIR += spp SUBDIR += stream + SUBDIR += stress-ng SUBDIR += super-smack SUBDIR += sysbench SUBDIR += tcpblast Added: head/benchmarks/stress-ng/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/benchmarks/stress-ng/Makefile Fri Sep 25 15:14:18 2015 (r397826) @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= stress-ng +PORTVERSION= 0.04.20 +CATEGORIES= benchmarks +MASTER_SITES= http://kernel.ubuntu.com/~cking/tarballs/stress-ng/ + +MAINTAINER= luca.pizzamiglio@gmail.com +COMMENT= Stress test benchmarks + +LICENSE= GPLv2 # or later +LICENSE_FILE= ${WRKSRC}/COPYING + +ALL_TARGET= # empty + +PLIST_FILES= bin/stress-ng man/man1/stress-ng.1.gz + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 1000000 +EXTRA_PATCHES+= ${FILESDIR}/extrapatch-stress-cpu.c \ + ${FILESDIR}/extrapatch-Makefile +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/stress-ng ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/stress-ng.1 ${STAGEDIR}${MANDIRS}/man1 + +.include <bsd.port.post.mk> Added: head/benchmarks/stress-ng/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/benchmarks/stress-ng/distinfo Fri Sep 25 15:14:18 2015 (r397826) @@ -0,0 +1,2 @@ +SHA256 (stress-ng-0.04.20.tar.gz) = 5b00c23325e46236466e598a977c8ebcd4f786cc0c2e15118004a0462bb6f47f +SIZE (stress-ng-0.04.20.tar.gz) = 236074 Added: head/benchmarks/stress-ng/files/extrapatch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/benchmarks/stress-ng/files/extrapatch-Makefile Fri Sep 25 15:14:18 2015 (r397826) @@ -0,0 +1,11 @@ +--- Makefile.orig 2015-09-25 10:15:45 UTC ++++ Makefile +@@ -165,7 +165,7 @@ OBJS = $(SRC:.c=.o) + @$(CC) $(CFLAGS) -c -o $@ $< + + stress-ng: $(OBJS) +- $(CC) $(CPPFLAGS) $(CFLAGS) $(OBJS) -lm -pthread -lrt -lcrypt -o $@ $(LDFLAGS) ++ $(CC) $(CPPFLAGS) $(CFLAGS) $(OBJS) -lm -pthread -lrt -lcrypt -lstdc++ -o $@ $(LDFLAGS) + + stress-cpu.o: stress-cpu.c + @echo $(CC) $(CFLAGS) -c -o $@ $< Added: head/benchmarks/stress-ng/files/extrapatch-stress-cpu.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/benchmarks/stress-ng/files/extrapatch-stress-cpu.c Fri Sep 25 15:14:18 2015 (r397826) @@ -0,0 +1,10 @@ +--- stress-cpu.c.orig 2015-09-18 14:50:12 UTC ++++ stress-cpu.c +@@ -23,6 +23,7 @@ + * + */ + #define _GNU_SOURCE ++#define _DECLARE_C99_LDBL_MATH 1 + + #include <stdio.h> + #include <stdlib.h> Added: head/benchmarks/stress-ng/files/patch-stress-cpu.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/benchmarks/stress-ng/files/patch-stress-cpu.c Fri Sep 25 15:14:18 2015 (r397826) @@ -0,0 +1,38 @@ +--- stress-cpu.c.orig 2015-09-18 14:50:12 UTC ++++ stress-cpu.c +@@ -57,7 +58,6 @@ + #define ccosl ccos + #define csinl csin + #define cpow pow +-#define powl pow + #endif + + /* +@@ -866,6 +866,7 @@ stress_cpu_fp(_Decimal128, decimal128, s + /* Append floating point literal specifier to literal value */ + #define FP(val, ltype) val ## ltype + ++#if defined(__STDC_IEC_559_COMPLEX__) + /* + * Generic complex stressor macro + */ +@@ -891,6 +892,7 @@ static void HOT OPTIMIZE3 stress_cpu_ ## + stress_cpu_complex(complex float, f, complex_float, csinf, ccosf) + stress_cpu_complex(complex double, , complex_double, csin, ccos) + stress_cpu_complex(complex long double, l, complex_long_double, csinl, ccosl) ++#endif /* __STDC_IEC_559_COMPLEX__ */ + + #define int_float_ops(_ftype, flt_a, flt_b, flt_c, flt_d, \ + _sin, _cos, int_a, int_b, _c1, _c2, _c3) \ +@@ -2058,9 +2060,11 @@ static stress_cpu_stressor_info_t cpu_me + { "ackermann", stress_cpu_ackermann }, + { "bitops", stress_cpu_bitops }, + { "callfunc", stress_cpu_callfunc }, ++#if defined(__STDC_IEC_559_COMPLEX__) + { "cdouble", stress_cpu_complex_double }, + { "cfloat", stress_cpu_complex_float }, + { "clongdouble", stress_cpu_complex_long_double }, ++#endif /* __STDC_IEC_559_COMPLEX__ */ + { "correlate", stress_cpu_correlate }, + { "crc16", stress_cpu_crc16 }, + #if defined(STRESS_FLOAT_DECIMAL) Added: head/benchmarks/stress-ng/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/benchmarks/stress-ng/pkg-descr Fri Sep 25 15:14:18 2015 (r397826) @@ -0,0 +1,5 @@ +This stress test suite will stress a computer system in various selectable ways +It was designed to exercise various physical subsystems of a computer as well +as various operating system kernel interfaces. + +WWW: http://kernel.ubuntu.com/~cking/stress-ng/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509251514.t8PFEIM8091955>