Home
last modified time | relevance | path

Searched full:errortype (Results 1 – 25 of 64) sorted by relevance

123

/openbmc/phosphor-power/phosphor-regulators/test/
H A Derror_history_tests.cpp22 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 Dphase_fault_tests.cpp25 EXPECT_EQ(toErrorType(PhaseFaultType::n), ErrorType::phaseFaultN); in TEST()
27 ErrorType::phaseFaultNPlus1); in TEST()
/openbmc/phosphor-power/phosphor-regulators/src/
H A Derror_logging_utils.cpp56 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 Derror_history.hpp24 * @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 Dphase_fault.hpp56 * 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 Dphase_fault_detection.cpp90 // 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 Derror_type.hpp12 enum class ErrorType : uint32_t enum
21 struct EnumTraits<ErrorType>
23 static constexpr auto propertyName = ConstexprString{"ErrorType"};
27 std::array{std::make_pair<std::string_view, ErrorType>(
28 "PropertyConflict", 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 Derror_message.hpp9 ErrorType error;
12 ErrorMessage(ErrorType errorIn, std::string_view arg0In) : in ErrorMessage()
/openbmc/openpower-vpd-parser/vpd-manager/src/
H A Devent_logger.cpp35 const std::unordered_map<types::ErrorType, std::string>
37 {types::ErrorType::DefaultValue, "com.ibm.VPD.Error.DefaultValue"},
38 {types::ErrorType::UndefinedError, "com.ibm.VPD.Error.UndefinedError"},
39 {types::ErrorType::InvalidVpdMessage, "com.ibm.VPD.Error.InvalidVPD"},
40 {types::ErrorType::VpdMismatch, "com.ibm.VPD.Error.Mismatch"},
41 {types::ErrorType::InvalidEeprom,
43 {types::ErrorType::EccCheckFailed, "com.ibm.VPD.Error.EccCheckFailed"},
44 {types::ErrorType::JsonFailure, "com.ibm.VPD.Error.InvalidJson"},
45 {types::ErrorType::DbusFailure, "com.ibm.VPD.Error.DbusFailure"},
46 {types::ErrorType::InvalidSystem,
[all …]
H A Dparser.cpp88 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 Dsingle_fab.cpp165 types::ErrorType::InternalFailure, in updateSystemImValueInVpdToP11Series()
186 types::ErrorType::InvalidSystem, types::SeverityType::Error, in singleFabImOverride()
204 types::ErrorType::SystemTypeMismatch, in singleFabImOverride()
222 types::ErrorType::SystemTypeMismatch, in singleFabImOverride()
241 types::ErrorType::SystemTypeMismatch, in singleFabImOverride()
267 types::ErrorType::SystemTypeMismatch, in singleFabImOverride()
283 types::ErrorType::UnknownSystemSettings, in singleFabImOverride()
/openbmc/openpower-vpd-parser/vpd-manager/include/
H A Dexceptions.hpp80 types::ErrorType getErrorType() const in getErrorType()
82 return types::ErrorType::EccCheckFailed; in getErrorType()
115 types::ErrorType getErrorType() const in getErrorType()
117 return types::ErrorType::InvalidVpdMessage; in getErrorType()
160 types::ErrorType getErrorType() const in getErrorType()
162 return types::ErrorType::JsonFailure; in getErrorType()
199 types::ErrorType getErrorType() const in getErrorType()
201 return types::ErrorType::GpioError; in getErrorType()
233 types::ErrorType getErrorType() const in getErrorType()
235 return types::ErrorType::DbusFailure; in getErrorType()
[all …]
H A Devent_logger.hpp29 * types::ErrorType::InternalFailure otherwise.
31 static types::ErrorType getErrorType(const std::exception& i_exception);
52 const types::ErrorType& i_errorType) noexcept;
83 const types::ErrorType& i_errorType,
107 const types::ErrorType i_errorType,
129 const types::ErrorType i_errorType,
155 const types::ErrorType& i_errorType,
184 const types::ErrorType& i_errorType,
223 const types::ErrorType& i_errorType,
247 static const std::unordered_map<types::ErrorType, std::string>
/openbmc/phosphor-debug-collector/
H A Ddump_types.hpp.mako25 using ErrorType = std::string;
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 Ddump_types.cpp.mako110 bool isErrorTypeValid(const std::string& errorType)
112 const auto it = errorMap.find(errorType);
116 std::optional<ErrorType> findErrorType(const std::string& errString)
H A Ddump_utils.hpp359 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 Delog_watch.cpp118 auto errorType = etype.value(); in addCallback() local
132 CreateParameters::ErrorType)] = errorType; in addCallback()
/openbmc/libcper/sections/
H A Dcper-section-nvidia.c134 json_object_object_add(section_ir, "errorType", in cper_section_nvidia_to_ir()
135 json_object_new_int(nvidia_error->ErrorType)); in cper_section_nvidia_to_ir()
180 section_cper->ErrorType = json_object_get_int( in ir_section_nvidia_to_cper()
181 json_object_object_get(section, "errorType")); in ir_section_nvidia_to_cper()
H A Dcper-section-generic.c56 section_generic->ErrorType, in cper_section_generic_to_ir()
60 json_object_object_add(section_ir, "errorType", in cper_section_generic_to_ir()
161 if (json_object_object_get_ex(section, "errorType", &obj)) { in ir_section_generic_to_cper()
162 section_cper->ErrorType = (UINT8)readable_pair_to_integer(obj); in ir_section_generic_to_cper()
H A Dcper-section-firmware.c27 firmware_error->ErrorType, 3, FIRMWARE_ERROR_RECORD_TYPES_KEYS, in cper_section_firmware_to_ir()
52 section_cper->ErrorType = readable_pair_to_integer( in ir_section_firmware_to_cper()
/openbmc/libcper/examples/
H A Darm.json139 "errorType": { object
163 "errorType": { object
187 "errorType": { object
/openbmc/libcper/specification/json/sections/
H A Dcper-nvidia.json6 "errorType",
19 "errorType": { object
/openbmc/libcper/specification/json/common/
H A Dcper-json-error-status.json6 "errorType",
17 "errorType": { object
/openbmc/phosphor-dbus-monitor/src/
H A Delog.hpp136 * @tparam errorType - Error log type
140 template <typename errorType, typename metadataType, typename propertyType>
168 phosphor::logging::report<errorType>(metadataType(data.c_str())); in operator ()()
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Dump/
H A DCreate.interface.yaml71 - name: "ErrorType"
99 commit. The error type needs to be specified in the "ErrorType"

123