commit | 59b8b9e5a5cfe67c74c5073aadff5baf8fd17d11 | [log] [tgz] |
---|---|---|
author | Zhikui Ren <zhikui.ren@intel.com> | Fri Jun 26 18:34:22 2020 -0700 |
committer | Zhikui Ren <zhikui.ren@intel.com> | Fri Jul 17 20:56:36 2020 +0000 |
tree | 20c268b1d1411e17f2c73d261c71d1194feae934 | |
parent | c7e956275ffeff2b3e8ea9cad90bdccec61b4945 [diff] |
Add assertValue in thresholdAsserted signal When threshold property changes, send thresholdAsserted signal that includes threshold properties and sensor value that caused the property change. This enables the SEL logger to record the correct sensor reading in the SEL messages. Tested: busctl set-property xyz.openbmc_project.ADCSensor /xyz/openbmc_project/sensors/voltage/P1V8_PCH xyz.openbmc_project.Sensor.Value Value d 1.97 thresholdAsserted signal is received with the below data: assertSignal from P1V8_PCH interface xyz.openbmc_project.Sensor.Threshold.Critical event CriticalAlarmHighassert 1 assertValue 1.97 assertSignal from P1V8_PCH interface xyz.openbmc_project.Sensor.Threshold.Warning event WarningAlarmHighassert 1 assertValue 1.97 Signed-off-by: Zhikui Ren <zhikui.ren@intel.com> Change-Id: I0de317dd716f71acdcd6f12e43dbd239232fea86
dbus-sensors is a collection of sensor applications that provide the xyz.openbmc_project.Sensor collection of interfaces. They read sensor values from hwmon, d-bus, or direct driver access to provide readings. Some advance non-sensor features such as fan presence, pwm control, and automatic cpu detection (x86) are also supported.
runtime re-configurable from d-bus (entity-manager or the like)
isolated: each sensor type is isolated into its own daemon, so a bug in one sensor is unlikely to affect another, and single sensor modifications are possible
async single-threaded: uses sdbusplus/asio bindings
multiple data inputs: hwmon, d-bus, direct driver access