commit | caaebd1f426a63d89c0ea9f2de61bbe190d7838b | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Fri Jun 21 14:56:07 2019 -0700 |
committer | Patrick Venture <venture@google.com> | Mon Jun 24 10:36:34 2019 -0700 |
tree | abf7740cad572de2b15c75bb00011c8846ec76c2 | |
parent | 16805a6ace4c01c5c907407a3ecfb90df24d079a [diff] |
hwmonio: Add injection point to test internal behavior With the complexities of the various behaviors within the read() method of HwmonIO, introduce an injection point for testing. There is a default available, and therefore this is a surgical change that only impacts future tests. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I1ead56c7fe1a2f87ebf316488e68f435a41c9d19
Exposes generic hwmon entries as DBus objects. More information can be found at Sensor Architecture
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.