commit | 505523772e7b1ba789d6522397f9932629b96e83 | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Thu Jun 07 10:53:56 2018 -0700 |
committer | Patrick Venture <venture@google.com> | Thu Jun 14 15:43:10 2018 +0000 |
tree | 36c2ebf323ae10e1edffe5a05c162fe8c7d2aae3 | |
parent | 280586a2bf93d3021a914f6cdcb7d54b90cd17e5 [diff] |
hwmonio:: Add Interface base class and tests Enable injecting hwmonio::HwmonIO mocks for testing. Tested: Ran on quanta-q71l and saw all sensors exported to dbus as expected with the expected values. Change-Id: I35912bf2a733932d9e1e774ff53b0114ae16560b Signed-off-by: Patrick Venture <venture@google.com>
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.