Home
last modified time | relevance | path

Searched full:additionaldata (Results 1 – 25 of 113) sorted by relevance

12345

/openbmc/phosphor-power/phosphor-power-sequencer/test/
H A Ducd90160_device_tests.cpp167 std::map<std::string, std::string> additionalData{}; in TEST() local
169 device.findPgoodFault(services, powerSupplyError, additionalData); in TEST()
172 EXPECT_EQ(additionalData.size(), 31); in TEST()
173 EXPECT_EQ(additionalData["MFR_STATUS"], "0x123456789abc"); in TEST()
174 EXPECT_EQ(additionalData["DEVICE_NAME"], "UCD90160"); in TEST()
175 EXPECT_EQ(additionalData["FPWM1_GPIO5"], "1"); in TEST()
176 EXPECT_EQ(additionalData["FPWM2_GPIO6"], "0"); in TEST()
177 EXPECT_EQ(additionalData["FPWM3_GPIO7"], "0"); in TEST()
178 EXPECT_EQ(additionalData["FPWM4_GPIO8"], "1"); in TEST()
179 EXPECT_EQ(additionalData["FPWM5_GPIO9"], "1"); in TEST()
[all …]
H A Drail_tests.cpp803 std::map<std::string, std::string> additionalData{}; in TEST() local
805 rail.hasPgoodFault(device, services, gpioValues, additionalData)); in TEST()
806 EXPECT_EQ(additionalData.size(), 0); in TEST()
827 std::map<std::string, std::string> additionalData{}; in TEST() local
829 rail.hasPgoodFault(device, services, gpioValues, additionalData)); in TEST()
830 EXPECT_EQ(additionalData.size(), 3); in TEST()
831 EXPECT_EQ(additionalData["RAIL_NAME"], "VDD2"); in TEST()
832 EXPECT_EQ(additionalData["STATUS_VOUT"], "0x10"); in TEST()
833 EXPECT_EQ(additionalData["STATUS_WORD"], "0xbeef"); in TEST()
855 std::map<std::string, std::string> additionalData{}; in TEST() local
[all …]
H A Dstandard_device_tests.cpp229 std::map<std::string, std::string> additionalData{}; in TEST() local
231 device.findPgoodFault(services, powerSupplyError, additionalData); in TEST()
233 EXPECT_EQ(additionalData.size(), 0); in TEST()
272 std::map<std::string, std::string> additionalData{}; in TEST() local
274 device.findPgoodFault(services, powerSupplyError, additionalData); in TEST()
277 EXPECT_EQ(additionalData.size(), 5); in TEST()
278 EXPECT_EQ(additionalData["DEVICE_NAME"], "abc_pseq"); in TEST()
279 EXPECT_EQ(additionalData["GPIO_VALUES"], "[1, 1, 0]"); in TEST()
280 EXPECT_EQ(additionalData["RAIL_NAME"], "PSU"); in TEST()
281 EXPECT_EQ(additionalData["GPIO_LINE"], "2"); in TEST()
[all …]
H A Ducd90320_device_tests.cpp159 std::map<std::string, std::string> additionalData{}; in TEST() local
161 device.findPgoodFault(services, powerSupplyError, additionalData); in TEST()
164 EXPECT_EQ(additionalData.size(), 10); in TEST()
165 EXPECT_EQ(additionalData["MFR_STATUS"], "0x123456789abc"); in TEST()
166 EXPECT_EQ(additionalData["DEVICE_NAME"], "UCD90320"); in TEST()
167 EXPECT_EQ(additionalData["MAR01_24_GPIO_VALUES"], in TEST()
170 EXPECT_EQ(additionalData["EN1_32_GPIO_VALUES"], in TEST()
174 EXPECT_EQ(additionalData["LGP01_16_GPIO_VALUES"], in TEST()
177 EXPECT_EQ(additionalData["DMON1_8_GPIO_VALUES"], in TEST()
179 EXPECT_EQ(additionalData["GPIO1_4_GPIO_VALUES"], "[1, 0, 0, 1]"); in TEST()
[all …]
H A Ducd90x_device_tests.cpp184 std::map<std::string, std::string> additionalData{}; in TEST() local
186 device.findPgoodFault(services, powerSupplyError, additionalData); in TEST()
189 EXPECT_EQ(additionalData.size(), 6); in TEST()
190 EXPECT_EQ(additionalData["MFR_STATUS"], "0x123456789abc"); in TEST()
191 EXPECT_EQ(additionalData["DEVICE_NAME"], "ucd90320"); in TEST()
192 EXPECT_EQ(additionalData["GPIO_VALUES"], "[1, 1, 0]"); in TEST()
193 EXPECT_EQ(additionalData["RAIL_NAME"], "VDD"); in TEST()
194 EXPECT_EQ(additionalData["GPIO_LINE"], "2"); in TEST()
195 EXPECT_EQ(additionalData["GPIO_VALUE"], "0"); in TEST()
238 std::map<std::string, std::string> additionalData{}; in TEST() local
[all …]
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dadditional_data.hpp15 * @class AdditionalData
17 * This class takes in the contents of the AdditionalData OpenBMC
25 class AdditionalData class
28 AdditionalData() = default;
29 ~AdditionalData() = default;
30 AdditionalData(const AdditionalData&) = default;
31 AdditionalData& operator=(const AdditionalData&) = default;
32 AdditionalData(AdditionalData&&) = default;
33 AdditionalData& operator=(AdditionalData&&) = default;
38 * @param[in] ad - the AdditionalData property vector with
[all …]
H A Dsrc.hpp93 * this error, along with the AdditionalData property contents from the
97 * @param[in] additionalData - The AdditionalData properties in this event
101 SRC(const message::Entry& regEntry, const AdditionalData& additionalData, in SRC() argument
103 SRC(regEntry, additionalData, nlohmann::json{}, dataIface) in SRC()
110 * this error, along with the AdditionalData property contents from the
114 * @param[in] additionalData - The AdditionalData properties in this event
119 SRC(const message::Entry& regEntry, const AdditionalData& additionalData,
344 * AdditionalData fields.
347 * that entry has a field that says which AdditionalData property
351 * For example, given that AdditionalData is a map of string keys
[all …]
H A Dregistry.cpp207 // Build the map of which AdditionalData fields to use for which SRC words in getSRCHexwordFields()
317 * @brief Says if the JSON is the format that contains AdditionalData keys
322 * @return bool - If it is the AdditionalData format or not
331 * @brief Finds the callouts to use when there is no AdditionalData,
510 * @brief Returns the callouts to use when an AdditionalData key is
572 * @brief Returns the callouts to use when an AdditionalData key is
599 * entry used when there is no AdditionalData key.
603 * @param[in] additionalData - The AdditionalData property
609 const AdditionalData& additionalData) in getCalloutsUsingAD() argument
615 auto adValue = additionalData.getValue(keyName); in getCalloutsUsingAD()
[all …]
/openbmc/phosphor-power/phosphor-regulators/src/
H A Derror_logging.cpp51 std::map<std::string, std::string> additionalData{}; in logConfigFileError() local
52 logError(message, severity, additionalData, journal); in logConfigFileError()
57 std::map<std::string, std::string> additionalData{}; in logDBusError() local
58 logError("xyz.openbmc_project.Power.Error.DBus", severity, additionalData, in logDBusError()
74 std::map<std::string, std::string> additionalData{}; in logI2CError() local
75 additionalData.emplace("CALLOUT_IIC_BUS", bus); in logI2CError()
76 additionalData.emplace("CALLOUT_IIC_ADDR", addrStr); in logI2CError()
77 additionalData.emplace("CALLOUT_ERRNO", errorNumberStr); in logI2CError()
78 logError("xyz.openbmc_project.Power.Error.I2C", severity, additionalData, in logI2CError()
84 std::map<std::string, std::string> additionalData{}; in logInternalError() local
[all …]
/openbmc/phosphor-power/phosphor-power-sequencer/src/
H A Drail.cpp122 std::map<std::string, std::string>& additionalData) in hasPgoodFault() argument
124 return (hasPgoodFaultStatusVout(device, services, additionalData) || in hasPgoodFault()
125 hasPgoodFaultGPIO(device, services, gpioValues, additionalData) || in hasPgoodFault()
126 hasPgoodFaultOutputVoltage(device, services, additionalData)); in hasPgoodFault()
131 std::map<std::string, std::string>& additionalData) in hasPgoodFaultStatusVout() argument
148 additionalData.emplace("STATUS_VOUT", in hasPgoodFaultStatusVout()
150 storePgoodFaultDebugData(device, services, additionalData); in hasPgoodFaultStatusVout()
165 std::map<std::string, std::string>& additionalData) in hasPgoodFaultGPIO() argument
190 additionalData.emplace("GPIO_LINE", std::format("{}", line)); in hasPgoodFaultGPIO()
191 additionalData.emplace("GPIO_VALUE", std::format("{}", value)); in hasPgoodFaultGPIO()
[all …]
H A Dstandard_device.cpp31 std::map<std::string, std::string>& additionalData) in findPgoodFault() argument
44 findRailWithPgoodFault(services, gpioValues, additionalData); in findPgoodFault()
63 storePgoodFaultDebugData(services, gpioValues, additionalData); in findPgoodFault()
89 std::map<std::string, std::string>& additionalData) in findRailWithPgoodFault() argument
99 if (rail->hasPgoodFaultStatusVout(*this, services, additionalData)) in findRailWithPgoodFault()
113 additionalData) || in findRailWithPgoodFault()
114 rail->hasPgoodFaultOutputVoltage(*this, services, additionalData)) in findRailWithPgoodFault()
126 std::map<std::string, std::string>& additionalData) in storePgoodFaultDebugData() argument
130 additionalData.emplace("DEVICE_NAME", name); in storePgoodFaultDebugData()
131 storeGPIOValues(services, gpioValues, additionalData); in storePgoodFaultDebugData()
[all …]
H A Dstandard_device.hpp82 std::map<std::string, std::string>& additionalData) override;
123 * @param additionalData Additional data to include in the error log if
130 std::map<std::string, std::string>& additionalData);
146 * @param additionalData Additional data to include in an error log
150 std::map<std::string, std::string>& additionalData);
164 * @param additionalData Additional data to include in an error log
168 std::map<std::string, std::string>& additionalData);
H A Drail.hpp251 * @param additionalData Additional data to include in an error log if this
257 std::map<std::string, std::string>& additionalData);
268 * @param additionalData Additional data to include in an error log if this
274 std::map<std::string, std::string>& additionalData);
286 * @param additionalData Additional data to include in an error log if this
292 std::map<std::string, std::string>& additionalData);
303 * @param additionalData Additional data to include in an error log if this
309 std::map<std::string, std::string>& additionalData);
327 * @param additionalData Additional data to include in an error log
331 std::map<std::string, std::string>& additionalData);
/openbmc/phosphor-power/phosphor-power-supply/
H A Dpsu_manager.cpp512 std::map<std::string, std::string>& additionalData) in createError() argument
521 additionalData["_PID"] = std::to_string(getpid()); in createError()
536 method.append(faultName, level, additionalData); in createError()
608 std::map<std::string, std::string> additionalData; in analyze() local
617 additionalData.merge(requiredPSUsData); in analyze()
619 additionalData["CALLOUT_INVENTORY_PATH"] = in analyze()
621 additionalData["CALLOUT_PRIORITY"] = "H"; in analyze()
624 additionalData); in analyze()
632 additionalData["STATUS_WORD"] = in analyze()
634 additionalData["STATUS_MFR"] = in analyze()
[all …]
/openbmc/ibm-logging/test/
H A Dtest_policy.cpp288 // Use CALLOUT_INVENTORY_PATH from the AdditionalData property in TEST_F()
293 {"AdditionalData"s, ad}}; in TEST_F()
300 // Use an I2C DEVICE_PATH from the AdditionalData property in TEST_F()
306 {"AdditionalData"s, ad}}; in TEST_F()
313 // Use an FSI DEVICE_PATH from the AdditionalData property in TEST_F()
319 {"AdditionalData"s, ad}}; in TEST_F()
326 // Use PROCEDURE from the AdditionalData property in TEST_F()
331 {"AdditionalData"s, ad}}; in TEST_F()
338 // Use RAIL_NAME from the AdditionalData property in TEST_F()
343 {"AdditionalData"s, ad}}; in TEST_F()
[all …]
/openbmc/phosphor-logging/
H A Delog_serialize.cpp55 std::map<std::string, std::string> additionalData{}; in load() local
69 additionalData = util::additional_data::parse(additionalData_old); in load()
77 additionalData = util::additional_data::parse(additionalData_old); in load()
84 additionalData = util::additional_data::parse(additionalData_old); in load()
91 additionalData = util::additional_data::parse(additionalData_old); in load()
99 additionalData = util::additional_data::parse(additionalData_old); in load()
103 a(id, severity, timestamp, message, additionalData, associations, in load()
111 e.additionalData(additionalData, true); in load()
112 e.additionalData2(additionalData, true); in load()
H A Dlog_manager.hpp178 * @param[in] additionalData - The AdditionalData property for the error
185 const std::map<std::string, std::string>& additionalData,
241 * @param[in] additionalData - list of metadata (in key=value format)
245 const std::vector<std::string>& additionalData,
268 * @param[in] additionalData - The AdditionalData property for the error
273 std::map<std::string, std::string> additionalData,
369 * @param[in] additionalData - The AdditionalData property for the error
372 std::map<std::string, std::string> additionalData) in create() argument
375 return manager.create(message, severity, additionalData); in create()
385 * @param[in] additionalData - The AdditionalData property for the error
[all …]
/openbmc/openpower-proc-control/extensions/phal/
H A Dcreate_pel.cpp84 std::map<std::string, std::string> additionalData; in createErrorPEL() local
86 additionalData.emplace("_PID", std::to_string(getpid())); in createErrorPEL()
89 additionalData.emplace(data); in createErrorPEL()
115 method.append(event, level, additionalData, pelCalloutInfo); in createErrorPEL()
140 std::map<std::string, std::string> additionalData; in createSbeErrorPEL() local
143 additionalData.emplace("_PID", std::to_string(getpid())); in createSbeErrorPEL()
144 additionalData.emplace("SBE_ERR_MSG", sbeError.what()); in createSbeErrorPEL()
148 additionalData.emplace(data); in createSbeErrorPEL()
215 method.append(event, level, additionalData, pelFFDCInfo); in createSbeErrorPEL()
245 std::map<std::string, std::string> additionalData; in createPEL() local
[all …]
/openbmc/phosphor-state-manager/
H A Dsecure_boot_check.cpp54 std::map<std::string, std::string> additionalData; in checkTpmMeasurement() local
56 additionalData.emplace("ERROR", errorMsg); in checkTpmMeasurement()
62 additionalData); in checkTpmMeasurement()
177 std::map<std::string, std::string> additionalData; in main() local
178 additionalData.emplace("SECURE_BOOT_GPIO", in main()
180 additionalData.emplace("SYSFS_SECURE_BOOT_VAL", in main()
182 additionalData.emplace("SYSFS_ABR_IMAGE_VAL", in main()
190 additionalData); in main()
/openbmc/openbmc-test-automation/lib/
H A Dlogging_utils.py120 # Look for any error log entries containing the 'AdditionalData' field
125 # [AdditionalData]:
126 …# [AdditionalData][0]: CALLOUT_INVENTORY_PATH=/xyz/openbmc_project/inventory/system/chassi…
127 # [AdditionalData][1]: ESEL=00 00 df 00 00 00 00 20 00 04...
130 if "AdditionalData" in error_log:
131 for additional_data in error_log["AdditionalData"]:
/openbmc/phosphor-dbus-monitor/src/
H A Devent_serialize.cpp33 archive(event.timestamp(), event.message(), event.additionalData()); in save()
50 std::vector<std::string> additionalData{}; in load() local
52 archive(timestamp, message, additionalData); in load()
56 event.additionalData(additionalData); in load()
/openbmc/ibm-logging/
H A Dpolicy_find.cpp55 * Finds a value in the AdditionalData property, which is
60 * @param[in] additionalData - the AdditionalData property contents
66 getAdditionalDataItem(const std::vector<std::string>& additionalData, in getAdditionalDataItem() argument
71 for (const auto& item : additionalData) in getAdditionalDataItem()
173 "AdditionalData"); in getSearchModifierFirstTry()
227 // AdditionalData property. Try them all until one in getSearchModifier()
231 "AdditionalData"); in getSearchModifier()
238 // AdditionalData fields where the value is the modifier in getSearchModifier()
252 // Next are the AdditionalData fields where the value needs in getSearchModifier()
/openbmc/phosphor-logging/test/openpower-pels/
H A Duser_header_test.cpp115 AdditionalData ad; in TEST()
156 AdditionalData ad; in TEST()
206 AdditionalData ad; in TEST()
228 AdditionalData ad; in TEST()
252 AdditionalData ad{adData}; in TEST()
271 AdditionalData ad; in TEST()
301 AdditionalData ad; in TEST()
329 AdditionalData ad{adData}; in TEST()
346 AdditionalData ad{adData}; in TEST()
363 AdditionalData ad{adData}; in TEST()
/openbmc/openbmc-test-automation/redfish/systems/eventlog/
H A Dtest_event_association.robot35 Create Test Error Callout And Verify AdditionalData
36 [Documentation] Create Test Error Callout And Verify AdditionalData.
41 # "AdditionalData": [
51 ... ${resp.json()["data"]["AdditionalData"]} CALLOUT_DEVICE_PATH_TEST=${target_device_path}
52 List Should Contain Value ${resp.json()["data"]["AdditionalData"]} DEV_ADDR=0x0DEADEAD
84 # "AdditionalData": [
121 # "AdditionalData": [
145 # "AdditionalData": [
231 # "AdditionalData": [
/openbmc/openpower-occ-control/
H A Docc_ffdc.cpp60 std::map<std::string, std::string> additionalData; in createPEL() local
61 additionalData.emplace("SRC6", std::to_string(src6)); in createPEL()
62 additionalData.emplace("_PID", std::to_string(getpid())); in createPEL()
63 additionalData.emplace("SBE_ERR_MSG", msg); in createPEL()
83 method.append(path, level, additionalData, pelFFDCInfo); in createPEL()
101 std::map<std::string, std::string> additionalData; in createOCCResetPEL() local
103 additionalData.emplace("_PID", std::to_string(getpid())); in createOCCResetPEL()
107 additionalData.emplace("CALLOUT_ERRNO", std::to_string(-err)); in createOCCResetPEL()
112 additionalData.emplace("CALLOUT_DEVICE_PATH", std::string(callout)); in createOCCResetPEL()
115 additionalData.emplace("OCC", std::to_string(instance)); in createOCCResetPEL()
[all …]

12345