commit | 4eca251085f83caec4957d3bea812d51c1a5d3b4 | [log] [tgz] |
---|---|---|
author | Willy Tu <wltu@google.com> | Mon Jun 20 21:14:51 2022 -0700 |
committer | Willy Tu <wltu@google.com> | Thu Oct 06 07:04:31 2022 +0000 |
tree | 4db9c921f86bce713bf719e3d6c34ed4cbf914a0 | |
parent | 947da1b0b8bce6bfbed4a18417d5f91f724022b2 [diff] |
dbus-sdr: Remove excessive `Failed to GetAll` error message The `Failed to GetAll` message will happen if any of the sensor doesn't have `Inventory.Decorator.Ipmi` dbus interface. Instead of making a `GetAll` call to all sensors, we will check if the sensor have the interface first before requesting it. This will remove the need to attempt sigificantly amount of unnecessary dbus calls. Tested: ipmitool sdr return the same sensor as before, but with no excessive error message. There is also some performance gain after removing the extra dbus calls. Before, ``` $ time ipmitool sdr | wc -l 346 real 0m13.786s user 0m0.315s sys 0m0.115s $ time ipmitool sdr | wc -l 346 real 0m14.692s user 0m0.274s sys 0m0.196s ``` After, ``` $ time ipmitool sdr | wc -l 346 real 0m11.765s user 0m0.205s sys 0m0.155s $ time ipmitool sdr | wc -l 346 real 0m11.403s user 0m0.269s sys 0m0.141s ``` Change-Id: Ieab19fbae9e1fb40c2cfac9cd584cf40dba3f500 Signed-off-by: Willy Tu <wltu@google.com>
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in ipmid/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage