commit | 77518b28db824e01af18351094680a99b1ba3cae | [log] [tgz] |
---|---|---|
author | Ed Tanous <edtanous@google.com> | Fri Nov 05 13:02:23 2021 -0700 |
committer | Ed Tanous <ed@tanous.net> | Fri Nov 19 17:59:50 2021 +0000 |
tree | 27de3f9954db3069f6f24cc8f41b812cf76609ca | |
parent | cb5af73f5ddf48c5f9455f41a39b44517089352f [diff] |
Fix possible seg faults in Cpu and tach readBuf is used by inputDev in these cases to build a buffer. If the sensor object is being destroyed while a read is in progress, the destructor for inputDev will happen after the destructor for readBuf, which causes an ownership problem, and likely will cause a seg fault. Tested: Code compiles. No further testing done at this point. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Ic7d9103a9e9c51315801b7cb213662ea3332a16c
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