commit | 06ed9dade23727ac708c8f564c1caa163e5feba4 | [log] [tgz] |
---|---|---|
author | Willy Tu <wltu@google.com> | Mon Apr 07 00:44:20 2025 +0000 |
committer | Willy Tu <wltu@google.com> | Thu Jun 12 22:48:56 2025 +0000 |
tree | 93414d37ab64310c1aaf4f78e02c72956466661c | |
parent | a0e545d3be961c62975718121e48b8b07740e38a [diff] |
Remove GetManagedObject call for fru sdr Current algorithm will make a GetManagedObject against EntityManager for each Fru to get entityId/Instance information. Instead of doing that heavy call, we can just call GetSubtreePaths against ObjectManager to find objects with the dus interface that we want... and then call EntityManager to fetch the property if it they are the one generating it. Tested: Getting all sdr took 25 seconds to 12 seconds on system with a lot of sensor + fru. Change-Id: I7e7ec6f68fe6ee3bef6bd55948d853fba06ed695 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