stress: new package
PATCH RESEND 1/1 stress: new package
--- package/Config.in | 1 + package/stress/Config.in | 8 ++++++++ package/stress/stress.mk | 13 +++++++++++++ 3 files changed, 22 insertions(+)
package/Config.in +1 -0
@@ -35,6 +35,7 @@ source "package/netperf/Config.in" source "package/oprofile/Config.in" source "package/rt-tests/Config.in" source "package/strace/Config.in" +source "package/stress/Config.in" source "package/whetstone/Config.in" source "package/valgrind/Config.in" source "package/pv/Config.in"
package/stress/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_STRESS + bool "stress" + help + A deliberately simple workload generator for POSIX systems. + It imposes a configurable amount of CPU, memory, I/O, and + disk stress on the system. + + http://weather.ou.edu/~apw/projects/stress/
package/stress/stress.mk new file +13 -0
@@ -0,0 +1,13 @@ +############################################################# +# +# stress - a workload generator +# +# http://weather.ou.edu/~apw/projects/stress/ +# +############################################################# + +STRESS_VERSION = 1.0.4 +STRESS_SITE = http://weather.ou.edu/~apw/projects/stress +STRESS_SOURCE = stress-$(STRESS_VERSION).tar.gz + +$(eval $(call AUTOTARGETS))
Signature · 1 line
tg: (524a8ab..) t/stress (depends on: master)
PATCH RESEND 1/1 stress: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:
Arnout> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]>
Arnout> +++ b/package/stress/stress.mk
Arnout> @@ -0,0 +1,13 @@
Arnout> +############################################################# Arnout> +#
Arnout> +# stress - a workload generator
Arnout> +#
Arnout> +# http://weather.ou.edu/~apw/projects/stress/
Arnout> +#
Arnout> +############################################################# Arnout> +
Arnout> +STRESS_VERSION = 1.0.4
Arnout> +STRESS_SITE = http://weather.ou.edu/~apw/projects/stress
Arnout> +STRESS_SOURCE = stress-$(STRESS_VERSION).tar.gz
.tar.gz is default, so you could get rid of this line.
Arnout> +
Arnout> +$(eval $(call AUTOTARGETS))
Arnout> \ No newline at end of file
Please add a newline after AUTOTARGETS))
But more importantly, it seem to need largefile support:
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"stress\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBM=1 -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pipe -Os -MT stress.o -MD -MP -MF .deps/stress.Tpo -c -o stress.o stress.c
In file included from /home/peko/source/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/ctype.h:27:0,
from stress.c:21:
/home/peko/source/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/features.h:219:5:
error: #error It appears you have defined
_FILE_OFFSET_BITS=64. Unfortunately, uClibc was built without large file
support enabled.
Care to fix and resend?
Signature · 1 line
Bye, Peter Korsgaard
PATCH RESEND 1/1 stress: new package
---
v2: Feedback from Peter
* .tar.gz is default
* newline at end of file
* Remove largefile dependency
package/Config.in | 1 + package/stress/Config.in | 8 ++++++++ package/stress/stress-0001-Remove-largefile.patch | 22 +++++++++++++++++++++ package/stress/stress.mk | 13 ++++++++++++ 4 files changed, 44 insertions(+)
package/Config.in +1 -0
@@ -35,6 +35,7 @@ source "package/netperf/Config.in" source "package/oprofile/Config.in" source "package/rt-tests/Config.in" source "package/strace/Config.in" +source "package/stress/Config.in" source "package/whetstone/Config.in" source "package/valgrind/Config.in" source "package/pv/Config.in"
package/stress/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_STRESS + bool "stress" + help + A deliberately simple workload generator for POSIX systems. + It imposes a configurable amount of CPU, memory, I/O, and + disk stress on the system. + + http://weather.ou.edu/~apw/projects/stress/
package/stress/stress-0001-Remove-largefile.patch new file +22 -0
@@ -0,0 +1,22 @@ +Remove largefile + +Otherwise it doesn't compile in uClibc without largefile. + +If the toolchain does support largefile, it will still work on large files +anyway. + +Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]> +--- +Upstream status: mail sent to apw at rossby.metr.ou.edu +--- +diff -rup stress-1.0.4.orig/src/Makefile.am stress-1.0.4/src/Makefile.am +--- stress-1.0.4.orig/src/Makefile.am 2009-12-03 02:04:05.000000000 +0100 ++++ stress-1.0.4/src/Makefile.am 2012-05-04 23:09:48.229842463 +0200 +@@ -1,7 +1,5 @@ + MAINTAINERCLEANFILES = Makefile.in + +-AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE +- + bin_PROGRAMS = stress + stress_SOURCES = stress.c + stress_MANS = stress.1
package/stress/stress.mk new file +13 -0
@@ -0,0 +1,13 @@ +############################################################# +# +# stress - a workload generator +# +# http://weather.ou.edu/~apw/projects/stress/ +# +############################################################# + +STRESS_VERSION = 1.0.4 +STRESS_SITE = http://weather.ou.edu/~apw/projects/stress +STRESS_AUTORECONF = YES + +$(eval $(call AUTOTARGETS))
Signature · 1 line
tg: (524a8ab..) t/stress (depends on: master)
PATCH RESEND 1/1 stress: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:
Arnout> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]> Arnout> ---
Arnout> v2: Feedback from Peter
Arnout> * .tar.gz is default Arnout> * newline at end of file Arnout> * Remove largefile dependency
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard