commit | 33db92bc2ac5e345d5a42cae8ce48aa55d4dacef | [log] [tgz] |
---|---|---|
author | Matthew Barth <msbarth@us.ibm.com> | Mon Mar 26 09:55:19 2018 -0500 |
committer | Matt Spinler <spinler@us.ibm.com> | Fri Apr 13 14:33:41 2018 +0000 |
tree | 9cd3968f3225594c8bd3ad4d3320068fe57b189f | |
parent | 31d214cc45ac505dfff4bb6405c70ff114e416b6 [diff] |
Include monitoring removed sensors for re-adding When a sensor returns a defined return code causing it to be removed during the monitoring loop, it should be re-added once the sensor is successfully read not producing any of the defined return codes. Once the sensor is re-added, it is erased from the removed list of sensors. When a sensor continues to return a defined return code, it remains in the removed sensor list and is attempted to be added after each completion of the monitoring loop. Tested: Verify sensor is removed when return code received during monitoring Sensor object added after successful read with no return codes Change-Id: Id286d4b1f1e11e1148ad4182dd9726d3c348c9de 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.