commit | dbb73aa2c615a4de96086cf2083b1eb99928eea7 | [log] [tgz] |
---|---|---|
author | Zhikui Ren <zhikui.ren@intel.com> | Fri Apr 02 13:39:04 2021 -0700 |
committer | Zhikui Ren <zhikui.ren@intel.com> | Sat Apr 03 09:23:04 2021 -0700 |
tree | bfc4c23357389fc7e30915b8b162d1979d72ffab | |
parent | 0947d7c1cb9dc5ae4bc740d18aff059cb896c309 [diff] |
ExitAirTemp: use weak_ptr to fix memory leak ExitAirTempSensor is never destructed because the shared_ptr self is captured in match event handlers and async callbacks. This causes memory leaks when new ExitAirTempSensor is re-created due to configuration changes. Change the capture to weak_ptr fixes the issue. Tested: Run DC cycle and observed that no more memory leaks. Signed-off-by: Zhikui Ren <zhikui.ren@intel.com> Change-Id: Idb66c764ebc5e0ebad4a291d2f7cb0a54c118114
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