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
2 files changed
tree: 20c268b1d1411e17f2c73d261c71d1194feae934
  1. cmake/
  2. include/
  3. service_files/
  4. src/
  5. tests/
  6. .clang-format
  7. .clang-ignore
  8. .gitignore
  9. cmake-format.json
  10. CMakeLists.txt
  11. Jenkinsfile
  12. LICENSE
  13. MAINTAINERS
  14. README.md
README.md

dbus-sensors

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.

key features

  • 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