#
f5402197 |
| 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I7b90380845efee6bf6a1fe342a793d71aa9ff181 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
c9c69518 |
| 27-Apr-2021 |
Shawn McCarney <shawnmm@us.ibm.com> |
regulators: Remove Services& from Sensors methods
Remove the Services& parameter from the Sensors methods. This parameter introduces a circular include dependency, and the parameter was only being
regulators: Remove Services& from Sensors methods
Remove the Services& parameter from the Sensors methods. This parameter introduces a circular include dependency, and the parameter was only being lightly used in two Sensors methods.
Tested: * Verified that all DBusSensors methods work as expected.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I3b2c3ec0bec7ea51b24100531f3314e9f87cebee
show more ...
|
#
03a25f1b |
| 24-Apr-2021 |
Shawn McCarney <shawnmm@us.ibm.com> |
regulators: Create DBusSensors class
Create the DBusSensors class. This is a concrete implementation of the Sensors abstract base class. This class manages all the voltage regulator sensors in the
regulators: Create DBusSensors class
Create the DBusSensors class. This is a concrete implementation of the Sensors abstract base class. This class manages all the voltage regulator sensors in the system.
Also add a lastUpdateTime data member to the DBusSensor class. This data member is set whenever the sensor is updated. This enables the DBusSensors class to detect sensors that were not updated during the current monitoring cycle.
Sensors that were not updated during the current monitoring cycle are deleted. These sensors were likely produced by a hardware device that was removed or replaced with a different version.
Tested: * Ran through entire monitoring cycle multiple times * Tested that lastUpdateTime is set correctly when a sensor is modified * Sensor value updated * Sensor disabled * Sensor put in error state * Tested where new sensor was created * Tested where existing sensor was updated * Tested where all sensors disabled * Tested where all sensors for a rail put in error state * Tested where sensors removed due to not being updated this cycle * Tested where D-Bus exception occurs when trying to create a sensor * See complete test plan at https://gist.github.com/smccarney/69efb813c0005571aee687f67e489278
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: Ib1fc399f100188cc048ac3ab5892117b74f844e9
show more ...
|