#
dfddd648 |
| 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: Ica590f8613f1fb89ab1ca676ac51c1cc7e38d67f Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
808d7fe8 |
| 13-Jun-2022 |
Mike Capps <mikepcapps@gmail.com> |
meson support: remove code warnings 1
This commit contains code changes necessary to support the increased warning level from Meson builds. Most changes are for unused variables.
To keep the review
meson support: remove code warnings 1
This commit contains code changes necessary to support the increased warning level from Meson builds. Most changes are for unused variables.
To keep the review size manageable, this commit contains only monitor and presence changes (and top-level json_config.hpp).
Signed-off-by: Mike Capps <mikepcapps@gmail.com> Change-Id: I7280b512c54e8d5aeba3300764a239f3dcbab14d
show more ...
|
#
ac1efc11 |
| 27-Oct-2020 |
Matt Spinler <spinler@us.ibm.com> |
monitor: Re-log fan error on a power off In the case where a power off rule runs to completion and powers off the system due to either missing or faulted fans, at the point of power off
monitor: Re-log fan error on a power off In the case where a power off rule runs to completion and powers off the system due to either missing or faulted fans, at the point of power off re-post the event log for the previous fan error. This way, there can be an error associated with the power off, because depending on the power off rule delays the original error could have happened several minutes or more in the past. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I1a38062cf75ffd4a11baa417ef3983b6c1a47ada
show more ...
|
#
f13b42e2 |
| 26-Oct-2020 |
Matt Spinler <spinler@us.ibm.com> |
monitor: Event logs for nonfunc fan sensors This commit adds the code to create event logs calling out the fan when fan sensors have been nonfunctional for a certain amount of time.
monitor: Event logs for nonfunc fan sensors This commit adds the code to create event logs calling out the fan when fan sensors have been nonfunctional for a certain amount of time. This functionality is configured in the JSON, and will only be enabled if the 'fault_handling' JSON section is present. It uses the following new JSON parameters: nonfunc_rotor_error_delay (per fan): This says how many seconds a fan sensor must be nonfunctional before the event log will be created. num_nonfunc_rotors_before_error (under fault_handling): This specifies how many nonfunctional fan rotors there must be at the same time before an event log with an error severity is created for the rotor. When there are fewer than this many nonfunctional rotors, then event logs with an informational severity will be created. A new FanError class is used to create the event logs. It adds the Logger output as FFDC, plus any JSON data that is passed in with the commit() API. It uses CALLOUT_INVENTORY_PATH in the AdditionalData property to specify the faulted fan FRU. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I365114357580b4f38ec943a769c1ce7f695b51ab
show more ...
|
#
f06ab07c |
| 14-Oct-2020 |
Matt Spinler <spinler@us.ibm.com> |
monitor: Create PowerOffRules class This class contains a PowerOffCause and a PowerOffAction. It provides a check() method that takes the FanHealth map which it then checks against
monitor: Create PowerOffRules class This class contains a PowerOffCause and a PowerOffAction. It provides a check() method that takes the FanHealth map which it then checks against the cause. If the cause is satisfied, it then starts the power off action. It provides a cancel method that will force cancel a running action in the case that the object owner detects a system power off and so doesn't need to run this power off anymore. The class's configuration data is read from the JSON config file. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I5c0c168591d6d62c894c4d036ec762797fd759af
show more ...
|
#
3ad14346 |
| 08-Jun-2020 |
Matthew Barth <msbarth@us.ibm.com> |
monitor:JSON: Parse fan monitoring conditions Optional conditions can be used to include monitoring a fan or not based on the results of the condition function configured. These conditio
monitor:JSON: Parse fan monitoring conditions Optional conditions can be used to include monitoring a fan or not based on the results of the condition function configured. These condition functions have their own required set of parameters, so parsing the JSON for these conditions are done per supported condition function. This adds the JSON parsing support for the current condition functions. Tested: `propertiesMatch` JSON parameters parsed into condition function Any required parameters missing throws an exception The `propertiesMatch` condition functions the same using JSON Change-Id: I0f843951f4e83f2a5d44068820694010538788c1 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
22ab93b4 |
| 08-Jun-2020 |
Matthew Barth <msbarth@us.ibm.com> |
monitor:JSON: Parse fan definitions Parse and create the list of fan definitions for monitoring from a JSON configuration file. Tested: Fan definition list created same
monitor:JSON: Parse fan definitions Parse and create the list of fan definitions for monitoring from a JSON configuration file. Tested: Fan definition list created same as from YAML Any required parameters missing cause a runtime exception Change-Id: Iafa194f01a48ed3445c5da6187db62cb4d2672d7 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
9ea8bee7 |
| 04-Jun-2020 |
Matthew Barth <msbarth@us.ibm.com> |
monitor:JSON: Parse trust groups Parse and create the list of trust groups functions from a JSON configuration file. Tested: Existing trust groups functions parsed and f
monitor:JSON: Parse trust groups Parse and create the list of trust groups functions from a JSON configuration file. Tested: Existing trust groups functions parsed and function correctly Any required parameters missing cause a runtime exception Change-Id: I4d24b97c966c97f3ff253d8c96cb0724eff1a8af Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
ccaf2db9 |
| 04-Jun-2020 |
Matthew Barth <msbarth@us.ibm.com> |
monitor:JSON: Find and load JSON configuration Using the JSON config utility to find and load the appropriate JSON configuration file, the JSON parsed object is returned. This object wil
monitor:JSON: Find and load JSON configuration Using the JSON config utility to find and load the appropriate JSON configuration file, the JSON parsed object is returned. This object will be what's used to parse each section of fan monitor's configuration. Tested: JSON configuration file found and loaded at each possible location Change-Id: I718ad3daa240d654ecee3733ebca2d7743ba9d17 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|