commit | 38c74e70d98d5dc9f106868252ea8afd0787430b | [log] [tgz] |
---|---|---|
author | Matthew Barth <msbarth@us.ibm.com> | Mon Apr 02 12:41:26 2018 -0500 |
committer | Matt Spinler <spinler@us.ibm.com> | Fri Apr 13 14:33:41 2018 +0000 |
tree | 77d8f28a333090cdb8d0d440c9cddedab9274625 | |
parent | 28f8e66dd50d5c855ddf0ea02f2eef56ec0274fc [diff] |
Trace return code driven remove/add of sensors A review comment request was to trace to the journal each time a sensor is removed given a return code for removal and when that sensor is re-added. Request->https://gerrit.openbmc-project.xyz/#/c/9823/2/mainloop.cpp Tested: Verify journal entry created when sensor is removed Verify journal entry created when sensor is re-added Change-Id: I258bc98da7970080771762717f6a9383f4c68942 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.