#
48781aef |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: If66f68c96df4baf8dc07abf8729a3cb7657e932d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
7354ce62 |
| 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ief05bd757cffb1453e058a719ee4b060861752e7
show more ...
|
#
0c9a33d6 |
| 13-Sep-2021 |
Adriana Kobylak <anoo@us.ibm.com> |
clang updates
The openbmc CI was recently updated to clang-12 which requires some formatting updates to the code: https://github.com/openbmc/openbmc-build-scripts/commit/4569bf49daaebff06be048242690
clang updates
The openbmc CI was recently updated to clang-12 which requires some formatting updates to the code: https://github.com/openbmc/openbmc-build-scripts/commit/4569bf49daaebff06be0482426908bb5497fad08
Make those updates and refresh the clang-format file with the one from docs: https://github.com/openbmc/docs/blob/master/style/cpp/.clang-format
Change-Id: Ieb3626526373a053ec84431e7560003f229f338d Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
#
5dab5d3d |
| 28-Aug-2021 |
Shawn McCarney <shawnmm@us.ibm.com> |
regulators: Add phase faults to ErrorLogging
Enhance the ErrorLogging class hierarchy to log phase fault errors. Support specifying additional error data that may have been collected from the device
regulators: Add phase faults to ErrorLogging
Enhance the ErrorLogging class hierarchy to log phase fault errors. Support specifying additional error data that may have been collected from the device.
Tested: * Logged an N phase fault error * Logged an N+1 phase fault error * Verified mock logPhaseFault() method could be used in a gtest.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I67efb7e16bb3fc5a071ccc60a949bba30daf3e78
show more ...
|
#
a76898f1 |
| 13-Oct-2020 |
Bob King <Bob_King@wistron.com> |
regulators: Enhance config file parser
Enhance JSON config file parser to convert relative inventory paths to absolute form.
Tested: Run local CI with -Dlong-tests=enabled to enable tests for valid
regulators: Enhance config file parser
Enhance JSON config file parser to convert relative inventory paths to absolute form.
Tested: Run local CI with -Dlong-tests=enabled to enable tests for validate-regulators-config.py.
Signed-off-by: Bob King <Bob_King@wistron.com> Change-Id: I80237a673f9c5918898db15363847722141388e6
show more ...
|
#
1df5954c |
| 24-Sep-2020 |
Shawn McCarney <shawnmm@us.ibm.com> |
regulators: Implement D-Bus error logging
Implemented the DBusErrorLogging class. This class creates error logs using the D-Bus CreateWithFFDCFiles method.
Updated the abstract base class, ErrorLo
regulators: Implement D-Bus error logging
Implemented the DBusErrorLogging class. This class creates error logs using the D-Bus CreateWithFFDCFiles method.
Updated the abstract base class, ErrorLogging, to have the correct virtual method parameters. The methods were previously defined with no parameters as a temporary measure.
Also updated the MockErrorLogging class to have the correct virtual method parameters.
Tested: * Verified that all the log*Error() methods create an error log of the correct type. * Verified that created error logs have the expected: * property/field values * callouts with associated VPD * User Data sections containing debug data stored in FFDC files * Tested where creating an FFDC file fails. * Tested where calling CreateWithFFDCFiles method fails. * Tested where removing an FFDC file fails. * Verified that if a failure occurs, it is written to the system journal but does not result in a second error log (since that could lead to an infinite loop). * Verified that temporary FFDC files are removed even if creating the error log fails.
Full Test Plan: * https://gist.github.com/smccarney/60ecbc018c55a5d13661bda8ee256d61
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I2837fc68dfbad2d89193a147222f1c51d9b1aad3
show more ...
|
#
76c14c3b |
| 15-Jul-2020 |
Shawn McCarney <shawnmm@us.ibm.com> |
regulators: Create error logging interface
Create an error logging interface that enables automated testing: * ErrorLogging: Abstract base class that defines the interface * DBusErrorLogging:
regulators: Create error logging interface
Create an error logging interface that enables automated testing: * ErrorLogging: Abstract base class that defines the interface * DBusErrorLogging: Implementation that uses D-Bus method calls * MockErrorLogging: Mock implementation for testing
This initial commit does not define the method parameters or implementations. That will be done in a subsequent commit.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I47e75442de1511e33928b6aef1324022df5fd34d
show more ...
|