Enable an io-uring build
There exists a bug where calls that we previously thought were
non-blocking, actually do block when used with hwmon or filesystem fds.
This causes high latencies on the dbus interfaces when lots of sensors
are used in a single daemon, as is the case in PSUSensor.
This patchset moves the PSUSensor code over to using io-uring, through
boost asio, using the random_access_file class. This helps with
performance in a number of ways, the largest of which being that sensor
reads are no longer blocking.
Tested:
Booted the sensor system on Tyan S7106; dbus-monitor shows sensors
scanning normally.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I654eafcfab5a24b65b89c204ab43d81c7ae064cf
diff --git a/tests/meson.build b/tests/meson.build
index e20eccf..51d5d60 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -19,6 +19,12 @@
endif
endif
+ut_deps_list = [
+ gtest_dep,
+]
+
+ut_deps_list += default_deps
+
have_boost_dbus = meson.get_compiler('cpp').has_header('dbus/connection.hpp')
if have_boost_dbus
test(
@@ -26,10 +32,7 @@
executable(
'test_hwmon_temp_sensor',
'test_HwmonTempSensor.cpp',
- dependencies: [
- gtest,
- boost_dbus,
- ],
+ dependencies: ut_deps_list,
implicit_include_directories: false,
include_directories: '../include',
)
@@ -40,10 +43,7 @@
executable(
'test_tach_sensor',
'test_TachSensor.cpp',
- dependencies: [
- gtest,
- boost_dbus,
- ],
+ dependencies: ut_deps_list,
implicit_include_directories: false,
include_directories: '../include',
)
@@ -56,10 +56,7 @@
'test_utils',
'test_Utils.cpp',
'../src/Utils.cpp',
- dependencies: [
- sdbusplus,
- gtest_dep,
- ],
+ dependencies: ut_deps_list,
implicit_include_directories: false,
include_directories: '../include',
)