/openbmc/phosphor-power/phosphor-regulators/test/ |
H A D | error_history_tests.cpp | 22 TEST(ErrorHistoryTests, ErrorType) in TEST() argument 24 EXPECT_EQ(static_cast<int>(ErrorType::internal), 3); in TEST() 25 EXPECT_EQ(static_cast<int>(ErrorType::numTypes), 8); in TEST() 31 EXPECT_FALSE(history.wasLogged(ErrorType::configFile)); in TEST() 32 EXPECT_FALSE(history.wasLogged(ErrorType::dbus)); in TEST() 33 EXPECT_FALSE(history.wasLogged(ErrorType::i2c)); in TEST() 34 EXPECT_FALSE(history.wasLogged(ErrorType::internal)); in TEST() 35 EXPECT_FALSE(history.wasLogged(ErrorType::pmbus)); in TEST() 36 EXPECT_FALSE(history.wasLogged(ErrorType::writeVerification)); in TEST() 37 EXPECT_FALSE(history.wasLogged(ErrorType::phaseFaultN)); in TEST() [all …]
|
H A D | phase_fault_tests.cpp | 25 EXPECT_EQ(toErrorType(PhaseFaultType::n), ErrorType::phaseFaultN); in TEST() 27 ErrorType::phaseFaultNPlus1); in TEST()
|
/openbmc/phosphor-power/phosphor-regulators/src/ |
H A D | error_logging_utils.cpp | 56 ErrorType errorType{}; in logError() local 63 errorType = ErrorType::configFile; in logError() 64 if (!history.wasLogged(errorType)) in logError() 66 history.setWasLogged(errorType, true); in logError() 72 errorType = ErrorType::pmbus; in logError() 73 if (!history.wasLogged(errorType)) in logError() 75 history.setWasLogged(errorType, true); in logError() 81 errorType = ErrorType::writeVerification; in logError() 82 if (!history.wasLogged(errorType)) in logError() 84 history.setWasLogged(errorType, true); in logError() [all …]
|
H A D | error_history.hpp | 24 * @enum ErrorType 31 enum class ErrorType enum 76 * @param errorType error type 79 void setWasLogged(ErrorType errorType, bool wasLogged) in setWasLogged() argument 82 history[static_cast<int>(errorType)] = wasLogged; in setWasLogged() 88 * @param errorType error type 91 bool wasLogged(ErrorType errorType) const in wasLogged() 94 return history[static_cast<int>(errorType)]; in wasLogged() 103 * Each ErrorType enum value is the position of the corresponding bit in the 108 std::bitset<static_cast<int>(ErrorType::numTypes)> history{};
|
H A D | phase_fault.hpp | 56 * Returns the ErrorType that corresponds to the specified PhaseFaultType. 58 * The ErrorType enum is used with the ErrorHistory class. 63 inline ErrorType toErrorType(PhaseFaultType type) in toErrorType() 65 ErrorType errorType{ErrorType::phaseFaultN}; in toErrorType() local 69 errorType = ErrorType::phaseFaultN; in toErrorType() 72 errorType = ErrorType::phaseFaultNPlus1; in toErrorType() 75 return errorType; in toErrorType()
|
H A D | phase_fault_detection.cpp | 90 // Find ErrorType that corresponds to PhaseFaultType; used by ErrorHistory in checkForPhaseFault() 91 ErrorType errorType = toErrorType(faultType); in checkForPhaseFault() local 94 if (!errorHistory.wasLogged(errorType)) in checkForPhaseFault() 121 errorHistory.setWasLogged(errorType, true); in checkForPhaseFault()
|
/openbmc/telemetry/src/types/ |
H A D | error_type.hpp | 12 enum class ErrorType : uint32_t enum 21 struct EnumTraits<ErrorType> 23 static constexpr auto propertyName = ConstexprString{"ErrorType"}; 27 std::make_pair<std::string_view, ErrorType>("PropertyConflict", 28 ErrorType::propertyConflict)}; 30 inline ErrorType toErrorType(std::underlying_type_t<ErrorType> value) in toErrorType() 32 return toEnum<ErrorType, minEnumValue(convDataErrorType), in toErrorType() 36 inline ErrorType toErrorType(const std::string& value) in toErrorType() 41 inline std::string enumToString(ErrorType value) in enumToString()
|
H A D | error_message.hpp | 9 ErrorType error; 12 ErrorMessage(ErrorType errorIn, std::string_view arg0In) : in ErrorMessage()
|
/openbmc/openpower-vpd-parser/vpd-manager/src/ |
H A D | event_logger.cpp | 28 const std::unordered_map<types::ErrorType, std::string> 30 {types::ErrorType::DefaultValue, "com.ibm.VPD.Error.DefaultValue"}, 31 {types::ErrorType::InvalidVpdMessage, "com.ibm.VPD.Error.InvalidVPD"}, 32 {types::ErrorType::VpdMismatch, "com.ibm.VPD.Error.Mismatch"}, 33 {types::ErrorType::InvalidEeprom, 35 {types::ErrorType::EccCheckFailed, "com.ibm.VPD.Error.EccCheckFailed"}, 36 {types::ErrorType::JsonFailure, "com.ibm.VPD.Error.InvalidJson"}, 37 {types::ErrorType::DbusFailure, "com.ibm.VPD.Error.DbusFailure"}, 38 {types::ErrorType::InvalidSystem, 40 {types::ErrorType::EssentialFru, [all …]
|
H A D | parser.cpp | 88 types::ErrorType::DbusFailure, in updateVpdKeyword() 227 types::ErrorType::DbusFailure, types::SeverityType::Critical, in updateVpdKeyword() 254 types::ErrorType::InvalidVpdMessage, in updateVpdKeywordOnRedundantPath() 292 types::ErrorType::DbusFailure, in updateVpdKeywordOnHardware() 309 types::ErrorType l_errorType; in updateVpdKeywordOnHardware() 313 l_errorType = types::ErrorType::EccCheckFailed; in updateVpdKeywordOnHardware() 317 l_errorType = types::ErrorType::InvalidVpdMessage; in updateVpdKeywordOnHardware() 332 types::ErrorType::DbusFailure, types::SeverityType::Critical, in updateVpdKeywordOnHardware()
|
H A D | manager_main.cpp | 56 vpd::types::ErrorType::JsonFailure, in main() 66 vpd::types::ErrorType::GpioError, in main() 76 vpd::types::ErrorType::DbusFailure, in main() 86 vpd::types::ErrorType::InvalidVpdMessage, in main()
|
/openbmc/phosphor-debug-collector/ |
H A D | dump_types.mako.hpp | 25 using ErrorType = std::string; typedef 28 using ErrorMap = std::unordered_map<ErrorType, ErrorList>; 101 * @param[in] errorType - The string representation of the error type to 106 bool isErrorTypeValid(const std::string& errorType); 120 std::optional<ErrorType> findErrorType(const std::string& errString);
|
H A D | dump_types.mako.cpp | 110 bool isErrorTypeValid(const std::string& errorType) in isErrorTypeValid() argument 112 const auto it = errorMap.find(errorType); in isErrorTypeValid() 116 std::optional<ErrorType> findErrorType(const std::string& errString) in findErrorType()
|
H A D | dump_utils.hpp | 359 std::string errorType = extractParameter<std::string>( in getErrorDumpType() local 360 DumpIntr::convertCreateParametersToString(CreateParameters::ErrorType), in getErrorDumpType() 362 if (!isErrorTypeValid(errorType)) in getErrorDumpType() 365 "ERROR_TYPE", errorType); in getErrorDumpType() 367 Argument::ARGUMENT_VALUE(errorType.c_str())); in getErrorDumpType() 369 auto type = stringToDumpType(errorType); in getErrorDumpType()
|
H A D | elog_watch.cpp | 118 auto errorType = etype.value(); in addCallback() local 132 CreateParameters::ErrorType)] = errorType; in addCallback()
|
/openbmc/libcper/sections/ |
H A D | cper-section-nvidia.c | 31 json_object_object_add(section_ir, "errorType", in cper_section_nvidia_to_ir() 32 json_object_new_int(nvidia_error->ErrorType)); in cper_section_nvidia_to_ir() 79 section_cper->ErrorType = json_object_get_int( in ir_section_nvidia_to_cper() 80 json_object_object_get(section, "errorType")); in ir_section_nvidia_to_cper()
|
H A D | cper-section-ia32x64.c | 126 guid_to_string(error_type, &error_info->ErrorType); in cper_ia32x64_processor_error_info_to_ir() 133 if (guid_equal(&error_info->ErrorType, in cper_ia32x64_processor_error_info_to_ir() 136 } else if (guid_equal(&error_info->ErrorType, in cper_ia32x64_processor_error_info_to_ir() 139 } else if (guid_equal(&error_info->ErrorType, in cper_ia32x64_processor_error_info_to_ir() 142 } else if (guid_equal(&error_info->ErrorType, in cper_ia32x64_processor_error_info_to_ir() 159 if (guid_equal(&error_info->ErrorType, in cper_ia32x64_processor_error_info_to_ir() 161 guid_equal(&error_info->ErrorType, in cper_ia32x64_processor_error_info_to_ir() 165 } else if (guid_equal(&error_info->ErrorType, in cper_ia32x64_processor_error_info_to_ir() 169 } else if (guid_equal(&error_info->ErrorType, in cper_ia32x64_processor_error_info_to_ir() 328 ms_check->ErrorType, 4, IA32X64_MS_CHECK_INFO_ERROR_TYPES_KEYS, in cper_ia32x64_ms_check_to_ir() [all …]
|
H A D | cper-section-generic.c | 46 section_generic->ErrorType, in cper_section_generic_to_ir() 50 json_object_object_add(section_ir, "errorType", processor_error_type); in cper_section_generic_to_ir() 116 section_cper->ErrorType = (UINT8)readable_pair_to_integer( in ir_section_generic_to_cper() 117 json_object_object_get(section, "errorType")); in ir_section_generic_to_cper()
|
H A D | cper-section-firmware.c | 22 firmware_error->ErrorType, 3, FIRMWARE_ERROR_RECORD_TYPES_KEYS, in cper_section_firmware_to_ir() 50 section_cper->ErrorType = readable_pair_to_integer( in ir_section_firmware_to_cper()
|
/openbmc/openpower-vpd-parser/vpd-manager/include/ |
H A D | event_logger.hpp | 52 const types::ErrorType& i_errorType, 76 const types::ErrorType i_errorType, 98 const types::ErrorType i_errorType, 124 const types::ErrorType& i_errorType, 153 const types::ErrorType& i_errorType, 165 static const std::unordered_map<types::ErrorType, std::string>
|
/openbmc/libcper/specification/json/sections/ |
H A D | cper-nvidia.json | 6 "errorType", 19 "errorType": { object
|
H A D | cper-pci-bus.json | 7 "errorType", 69 "errorType": { object
|
H A D | cper-generic-processor.json | 9 "errorType", 93 "errorType": { object
|
/openbmc/libcper/specification/json/common/ |
H A D | cper-json-error-status.json | 6 "errorType", 17 "errorType": { object
|
/openbmc/phosphor-dbus-monitor/src/ |
H A D | elog.hpp | 136 * @tparam errorType - Error log type 140 template <typename errorType, typename metadataType, typename propertyType> 168 phosphor::logging::report<errorType>(metadataType(data.c_str())); in operator ()()
|