fio: add missing libaio dependency
PATCH v4 1/1 fio: add missing libaio dependency
The fio package dlopen()s the libaio library at runtime when the ioengine function is selected as libaio.
Signed-off-by Matt Weber <[email protected]>
---
Changes v3 -> v4
- Moved signed off line --- (suggested by Thomas P.)
Changes v2 -> v3
- Moved description above --- (suggested by Ryan)
Changes v1 -> v2
- Renamed patch to not mention bugfix or description
- Removed build dependency as we only need a config dependency for libaio. Suggested by Thomas P.
- Added dependencies to Config.in for targets that libaio supports building for. Suggested by Thomas P.
- Updated comment before select of libaio in Config.in Suggested by Thomas P.
package/fio/Config.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
package/fio/Config.in +6 -1
@@ -13,7 +13,12 @@ config BR2_PACKAGE_FIO !BR2_UCLIBC_VERSION_0_9_31 # fio uses fallocate() which becomes fallocate64() while compiling # with BR2_LARGEFILE but fallocate64() is not available on nios2 - depends on !BR2_nios2 + depends on \ + BR2_arm || BR2_armeb || BR2_avr32 || BR2_i386 || \ + BR2_m68k || BR2_mips || BR2_mipsel || BR2_powerpc || \ + BR2_sparc || BR2_x86_64 + # Runtime dependency: libaio is dlopen()ed by fio + select BR2_PACKAGE_LIBAIO help fio is an I/O tool meant to be used both for benchmark and stress/hardware verification.
Signature · 1 line
1.9.1
PATCH v4 1/1 fio: add missing libaio dependency
Dear Matt Weber,
Quoted 4 lines · Matt Weber
The fio package dlopen()s the libaio library at runtime when the ioengine function is selected as libaio.
Signed-off-by Matt Weber <[email protected]>
I had a quick look at the fio code base, and the configure script (which is not autoconf based) seems to have some code to detect whether libaio is present, and only use it when available.
Also, what seems to be dlopen()ed is not the libaio library itself, but rather "external engines", i.e parts of fio.
So I'm not sure about your patch, and I'd like to do some more testing about it.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v4 1/1 fio: add missing libaio dependency
Thomas,
Quoted 12 lines · Thomas Petazzoni
Dear Matt Weber,
Quoted 4 lines · Matt Weber
The fio package dlopen()s the libaio library at runtime when the ioengine function is selected as libaio.
Signed-off-by Matt Weber <[email protected]>
I had a quick look at the fio code base, and the configure script (which is not autoconf based) seems to have some code to detect whether libaio is present, and only use it when available.
Quoted 5 lines
Also, what seems to be dlopen()ed is not the libaio library itself, but rather "external engines", i.e parts of fio.
So I'm not sure about your patch, and I'd like to do some more testing about it.
Ok, I'll take a look a closer look and see if there is an approach that could be added to make libaio an optional configuration.
Thanks,
Signature · 3 lines
Matthew L Weber / Sr Software Engineer / Platform Software matthew.weber at rockwellcollins.com www.rockwellcollins.com
PATCH v4 1/1 fio: add missing libaio dependency
Thomas,
Quoted 16 lines · Matthew Weber
Thomas,
Quoted 12 lines · Thomas Petazzoni
Dear Matt Weber,
Quoted 4 lines · Matt Weber
The fio package dlopen()s the libaio library at runtime when the ioengine function is selected as libaio.
Signed-off-by Matt Weber <[email protected]>
I had a quick look at the fio code base, and the configure script (which is not autoconf based) seems to have some code to detect whether libaio is present, and only use it when available.
Quoted 7 lines
Quoted 5 lines
Also, what seems to be dlopen()ed is not the libaio library itself, but rather "external engines", i.e parts of fio.
So I'm not sure about your patch, and I'd like to do some more testing about it.
Ok, I'll take a look a closer look and see if there is an approach that could be added to make libaio an optional configuration.
Disregard/disgard this patchset, after further code review, the shared library open error is one of the expected failure outputs if you don't have support for the specific dynamic "io library". The build of the fio package does correctly determine if the libaio lib is present or not and correctly adds it to the ioengines list for use. Then when the package is executed, it looks up if a "set of operations" is registered for that ioengine library. If they are, it goes ahead and uses them, if they need to be loaded, like in the case of libaio, it attempts to load them no mater if previously fio was not built with libaio support.
I'll post a note to the fio forum/mailing list that it maybe worth improving the package to exclude ioengines from registering operations if the application wasn't built with support for them. By default if the ioengine is built-in (ie operations are pre-registered at build time) and not a dlopen()ed library, the correct checks are in place.
Thanks,
Signature · 8 lines
Matthew L Weber / Pr Software Engineer Airborne Information Systems / Security Systems and Software MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA www.rockwellcollins.com Note: Any Export License Required Information and License Restricted Third Party Intellectual Property (TPIP) content must be encrypted and sent to matthew.weber at corp.rockwellcollins.com.