commit | 31d214cc45ac505dfff4bb6405c70ff114e416b6 | [log] [tgz] |
---|---|---|
author | Matthew Barth <msbarth@us.ibm.com> | Mon Mar 26 09:54:27 2018 -0500 |
committer | Matt Spinler <spinler@us.ibm.com> | Fri Apr 13 14:33:41 2018 +0000 |
tree | 51cb9db71ae4ebffec4e6294732967b30d562d5d | |
parent | 8772ce3a3db037b4a5c11cec08b1c7adae30e7e1 [diff] |
Attempt adding sensors with initial read error rc Sensors that initially returned a read error return code defined to not have the sensor added to dbus should be attempted to be added after the monitoring loop for all device sensors has ended. When a sensor object that was not created due to this is successfully added to dbus, the sensor is removed from the removal list. Tested: Verify a sensor with a defined return code returned is not added A sensor not initially created is added when successfully read Change-Id: I5188500fc1a1cdfbcfdb8b3d76e144955489c8fa Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Exposes generic hwmon entries as DBus objects.
To build this package, do the following steps: 1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make To clean the repository run `./bootstrap.sh clean`.
To enable the use of Linux features like cgroups prioritization and udev/systemd control, one instance of phosphor-hwmon is intended to be run per hwmon sysfs class instance. This requires an algorithm for selecting a stable, well-known D-Bus busname. The algorithm is <PREFIX>-<ID>.Hwmon<N> where PREFIX is an autoconf configurable prefix (BUSNAME_PREFIX, xyz.openbmc_project by default), ID is a std::hash of the /sys/devices path backing the hwmon class instance, and N is the implemented phosphor-hwmon D-Bus API version.