Skip to contentSkip to conversation

package/iozone: Build non-threads version if !BR2_PTHREADS_NATIVE

PATCH New Mischa Jonker 1 participant 2 messages Jul 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/iozone: Build non-threads version if !BR2_PTHREADS_NATIVE

iozone uses pthread_setaffinity_np, which is not supported in Linuxthreads.

---
 package/iozone/Config.in |    1 +
 package/iozone/iozone.mk |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
package/iozone/Config.in +1 -0
index 26d4daa..9dc4f72 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_IOZONE
 	bool "iozone"
 	depends on BR2_USE_MMU # fork()
+	depends on BR2_PTHREADS_NATIVE # pthread_setaffinity_np()
 	help
 	  IOzone is a filesystem benchmark tool.
 	  The benchmark generates and measures a variety of file operations
package/iozone/iozone.mk +1 -1
index 328a526..c985141 100644
@@ -12,7 +12,7 @@ IOZONE_LICENSE = IOzone license (NO DERIVED WORKS ALLOWED)
 # http://www.iozone.org/docs/Iozone_License.txt
 
 # No threading target is non-AIO as well
-ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
+ifeq ($(BR2_PTHREADS_NATIVE),)
 IOZONE_TARGET = linux-noth
 # AIO support not available on uClibc, use the linux (non-aio) target.
 else ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 package/iozone: Build non-threads version if !BR2_PTHREADS_NATIVE

Quoted 23 lines · Mischa

iozone uses pthread_setaffinity_np, which is not supported in Linuxthreads.

---
 package/iozone/Config.in |    1 +
 package/iozone/iozone.mk |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
package/iozone/Config.in index renamed from package/iozone/Config.in +0 -0

26d4daa..9dc4f72 100644

package/iozone/Config.in +0 -0
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_IOZONE 	bool "iozone" 	depends on BR2_USE_MMU #
 fork() +	depends on BR2_PTHREADS_NATIVE # pthread_setaffinity_np()
 	help 	  IOzone is a filesystem benchmark tool. 	  The benchmark
 generates and measures a variety of file operations
package/iozone/iozone.mk index renamed from package/iozone/iozone.mk +0 -0

328a526..c985141 100644

package/iozone/iozone.mk +0 -0
@@ -12,7 +12,7 @@ IOZONE_LICENSE = IOzone license (NO DERIVED WORKS

ALLOWED) # http://www.iozone.org/docs/Iozone_License.txt

Quoted 6 lines

# No threading target is non-AIO as well -ifeq
($(BR2_TOOLCHAIN_HAS_THREADS),)
+ifeq ($(BR2_PTHREADS_NATIVE),)
IOZONE_TARGET = linux-noth
# AIO support not available on uClibc, use the linux (non-aio) target. else ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)

Sorry for the spam, forgot to add the updated Config.in to the commit after I realized there was a non-threads version for iozone.

Updated patch already submitted:-)

Mischa