/openbmc/phosphor-fan-presence/test/ |
H A D | logger_test.cpp | 19 auto messages = logger.getLogs(); in TEST() local 21 ASSERT_EQ(messages.size(), logSize); in TEST() 23 EXPECT_EQ((messages[0][1].get<std::string>()), "Test Message 0"); in TEST() 24 EXPECT_EQ((messages[1][1].get<std::string>()), "Test Message 1"); in TEST() 25 EXPECT_EQ((messages[2][1].get<std::string>()), "Test Message 2"); in TEST() 26 EXPECT_EQ((messages[3][1].get<std::string>()), "Test Message 3"); in TEST() 27 EXPECT_EQ((messages[4][1].get<std::string>()), "Test Message 4"); in TEST() 31 for (const auto& msg : messages) in TEST() 39 messages = logger.getLogs(); in TEST() 40 ASSERT_EQ(messages.size(), logSize); in TEST() [all …]
|
/openbmc/phosphor-power/phosphor-regulators/src/ |
H A D | journal.hpp | 33 * The interface is used to write messages/log entries to the system journal. 47 * Gets the journal messages that have the specified field set to the 50 * The messages in the returned vector are ordered from oldest to newest. 54 * @param max Maximum number of messages to return. Specify 0 to return all 55 * matching messages. 56 * @return matching messages from the journal 70 * Logs debug messages in the system journal. 72 * @param messages messages to log 74 virtual void logDebug(const std::vector<std::string>& messages) = 0; 84 * Logs error messages in the system journal. [all …]
|
H A D | exception_utils.hpp | 48 * Gets the error messages from the specified exception and any nested inner 51 * If the exception contains nested inner exceptions, the messages in the 56 * @return error messages from exceptions 80 * Gets the error messages from the specified exception and any nested inner 83 * Stores the error messages in the specified vector, from innermost exception 87 * @param messages vector where error messages will be stored 89 void getMessages(const std::exception& e, std::vector<std::string>& messages);
|
H A D | exception_utils.cpp | 31 std::vector<std::string> messages{}; in getMessages() local 32 internal::getMessages(e, messages); in getMessages() 33 return messages; in getMessages() 62 void getMessages(const std::exception& e, std::vector<std::string>& messages) in getMessages() argument 64 // If this exception is nested, get messages from inner exception(s) in getMessages() 71 getMessages(inner, messages); in getMessages() 77 messages.emplace_back(e.what()); in getMessages()
|
/openbmc/bmcweb/redfish-core/src/utils/ |
H A D | dbus_utils.cpp | 36 messages::insufficientPrivilege(asyncResp->res); in afterSetProperty() 40 messages::resourceNotFound(asyncResp->res, "Set", in afterSetProperty() 52 messages::propertyValueIncorrect( in afterSetProperty() 61 messages::serviceTemporarilyUnavailable(asyncResp->res, "10"); in afterSetProperty() 68 messages::serviceTemporarilyUnavailable(asyncResp->res, "10"); in afterSetProperty() 73 messages::propertyNotWritable(asyncResp->res, in afterSetProperty() 79 messages::propertyValueExternalConflict( in afterSetProperty() 86 messages::internalError(asyncResp->res); in afterSetProperty() 111 messages::operationFailed(asyncResp->res); in afterSetPropertyAction() 115 messages::actionParameterValueError(asyncResp->res, in afterSetPropertyAction() [all …]
|
/openbmc/openpower-hw-diags/util/ |
H A D | ffdc.cpp | 54 * Gather messages from the journal 61 * @param max - Maximum number of messages fetch 68 std::vector<std::string> messages; in sdjGetMessages() local 102 // Store value to messages in sdjGetMessages() 104 messages.insert(messages.begin(), value); in sdjGetMessages() 108 // limit maximum number of messages in sdjGetMessages() 109 if (messages.size() >= max) in sdjGetMessages() 118 return messages; in sdjGetMessages() 161 * Create FDDC files from journal messages of relevant executables 179 // get journal messages in createFFDCTraceFiles() [all …]
|
/openbmc/phosphor-power/phosphor-regulators/test/ |
H A D | exception_utils_tests.cpp | 113 std::vector<std::string> messages = exception_utils::getMessages(e); in TEST() local 114 EXPECT_EQ(messages.size(), 2); in TEST() 115 EXPECT_EQ(messages[0], "JSON element is not an array"); in TEST() 116 EXPECT_EQ(messages[1], "Unable to parse config file"); in TEST() 250 std::vector<std::string> messages{}; in TEST() local 251 exception_utils::internal::getMessages(e, messages); in TEST() 252 EXPECT_EQ(messages.size(), 1); in TEST() 253 EXPECT_EQ(messages[0], "JSON element is not an array"); in TEST() 279 std::vector<std::string> messages{}; in TEST() local 280 exception_utils::internal::getMessages(e, messages); in TEST() [all …]
|
/openbmc/bmcweb/redfish-core/include/registries/ |
H A D | openbmc_message_registry.readmefirst.md | 5 Messages in this registry are intended to be generally useful across OpenBMC 6 systems. To that end, there are a number of guidelines needed for messages in 9 1. Messages should not be specific to a piece or type of hardware. Generally 16 2. Messages should not use any proprietary, copyright, or company-specific 17 terms. In general, messages should prefer the industry accepted term. 24 4. Message registry versioning semantics shall be obeyed. Adding new messages 25 require an increment to the subminor revision. Changes to existing messages
|
/openbmc/webui-vue/src/ |
H A D | i18n.js | 10 const messages = {}; 16 messages[locale] = mod && mod.default ? mod.default : mod; 18 return messages; 54 const messages = { ...base }; 56 messages[loc] = deepMerge(base[loc] || {}, env[loc]); 60 if (!messages[alias] && messages[target]) 61 messages[alias] = messages[target]; 85 messages, field in createI18nInstance.AnonymousClassd451f3dc0301
|
/openbmc/boost-dbus/include/dbus/detail/ |
H A D | queue.hpp | 27 std::deque<message_type> messages; member in dbus::detail::queue 34 : io(m.io), messages(m.messages), handlers(m.handlers) { in queue() 35 // TODO(ed) acquire the lock before copying messages and handlers in queue() 55 messages.push_back(m); in push() 76 if (messages.empty()) { in BOOST_ASIO_INITFN_RESULT_TYPE() 86 message_type m = messages.front(); in BOOST_ASIO_INITFN_RESULT_TYPE() 87 messages.pop_front(); in BOOST_ASIO_INITFN_RESULT_TYPE()
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | manager_logservices_journal.hpp | 50 messages::resourceNotFound(asyncResp->res, "Manager", managerId); in handleManagersLogServiceJournalGet() 90 messages::internalError(asyncResp->res); in readJournalEntries() 123 messages::internalError(asyncResp->res); in readJournalEntries() 131 messages::internalError(asyncResp->res); in readJournalEntries() 160 messages::resourceNotFound(asyncResp->res, "Manager", managerId); in handleManagersJournalLogEntryCollectionGet() 186 messages::internalError(asyncResp->res); in handleManagersJournalLogEntryCollectionGet() 197 messages::internalError(asyncResp->res); in handleManagersJournalLogEntryCollectionGet() 204 messages::internalError(asyncResp->res); in handleManagersJournalLogEntryCollectionGet() 214 messages::internalError(asyncResp->res); in handleManagersJournalLogEntryCollectionGet() 223 messages::internalError(asyncResp->res); in handleManagersJournalLogEntryCollectionGet() [all …]
|
H A D | event_service.hpp | 152 messages::queryParameterOutOfRange( in requestRoutesEventService() 167 messages::queryParameterOutOfRange( in requestRoutesEventService() 222 messages::serviceDisabled(asyncResp->res, in requestRoutesSubmitTestEvent() 244 messages::internalError(asyncResp->res); in doSubscriptionCollection() 255 messages::internalError(asyncResp->res); in doSubscriptionCollection() 322 messages::eventSubscriptionLimitExceeded(asyncResp->res); in requestRoutesEventDestinationCollection() 368 messages::stringValueTooLong(asyncResp->res, "Destination", in requestRoutesEventDestinationCollection() 377 messages::propertyValueConflict( in requestRoutesEventDestinationCollection() 389 messages::propertyValueFormatError(asyncResp->res, destUrl, in requestRoutesEventDestinationCollection() 400 messages::propertyValueFormatError(asyncResp->res, destUrl, in requestRoutesEventDestinationCollection() [all …]
|
H A D | fabric_adapters.hpp | 55 messages::internalError(asyncResp->res); in getFabricAdapterLocation() 79 messages::internalError(asyncResp->res); in getFabricAdapterAsset() 106 messages::internalError(asyncResp->res); in getFabricAdapterAsset() 202 messages::resourceNotFound(asyncResp->res, "FabricAdapter", in doAdapterGet() 208 messages::internalError(asyncResp->res); in afterGetValidFabricAdapterPath() 214 messages::resourceNotFound(asyncResp->res, "FabricAdapter", adapterId); in afterGetValidFabricAdapterPath() 233 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in afterGetValidFabricAdapterPath() 239 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in getValidFabricAdapterPath() 258 messages::resourceNotFound(asyncResp->res, "FabricAdapter", in afterHandleFabricAdapterGet() 264 messages in afterHandleFabricAdapterGet() [all...] |
H A D | log_services.hpp | 132 messages::internalError(asyncResp->res); in parseDumpEntryFromDbusObject() 149 messages::internalError(asyncResp->res); in parseDumpEntryFromDbusObject() 167 messages::internalError(asyncResp->res); in parseDumpEntryFromDbusObject() 186 messages::internalError(asyncResp->res); in parseDumpEntryFromDbusObject() 198 messages::internalError(asyncResp->res); in parseDumpEntryFromDbusObject() 205 messages::internalError(asyncResp->res); in parseDumpEntryFromDbusObject() 253 messages::internalError(asyncResp->res); in getDumpEntryCollection() 266 messages::internalError(asyncResp->res); in getDumpEntryCollection() 369 messages::internalError(asyncResp->res); in getDumpEntryById() 382 messages::internalError(asyncResp->res); in getDumpEntryById() [all …]
|
H A D | update_service.hpp | 170 taskData->messages.emplace_back(messages::internalError()); in handleCreateTask() 185 taskData->messages.emplace_back(messages::taskAborted(index)); in handleCreateTask() 192 taskData->messages.emplace_back(messages::taskPaused(index)); in handleCreateTask() 205 taskData->messages.emplace_back(messages::taskCompletedOK(index)); in handleCreateTask() 220 taskData->messages.emplace_back(messages::internalError()); in handleCreateTask() 231 taskData->messages.emplace_back( in handleCreateTask() 232 messages::taskProgressChanged(index, *progress)); in handleCreateTask() 295 messages::internalError(asyncResp->res); in softwareInterfaceAdded() 307 messages::internalError(asyncResp->res); in softwareInterfaceAdded() 349 redfish::messages::internalError(asyncResp->res); in afterAvailbleTimerAsyncWait() [all …]
|
H A D | systems_logservices_postcodes.hpp | 66 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleSystemsLogServicesPostCodesGet() 72 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleSystemsLogServicesPostCodesGet() 115 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleSystemsLogServicesPostCodesPost() 121 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleSystemsLogServicesPostCodesPost() 138 messages::internalError(asyncResp->res); in handleSystemsLogServicesPostCodesPost() 141 messages::success(asyncResp->res); in handleSystemsLogServicesPostCodesPost() 277 messages::internalError(asyncResp->res); in fillPostCodeEntry() 336 messages::resourceNotFound(asyncResp->res, "LogEntry", entryId); in getPostCodeForEntry() 343 messages::resourceNotFound(asyncResp->res, "LogEntry", entryId); in getPostCodeForEntry() 357 messages::internalError(asyncResp->res); in getPostCodeForEntry() [all …]
|
H A D | fabric_ports.hpp | 56 messages::internalError(asyncResp->res); in afterGetFabricPortLocation() 84 messages::internalError(asyncResp->res); in afterGetFabricPortState() 114 messages::internalError(asyncResp->res); in afterGetFabricPortHealth() 146 messages::resourceNotFound(asyncResp->res, "Port", portId); in getFabricPortProperties() 180 messages::internalError(asyncResp->res); in afterGetValidFabricPortPath() 209 messages::internalError(asyncResp->res); in afterGetValidFabricPortPath() 242 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleFabricPortHead() 248 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleFabricPortHead() 259 messages::resourceNotFound(asyncResp->res, "Port", portId); in handleFabricPortHead() 281 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleFabricPortGet() [all …]
|
/openbmc/bmcweb/redfish-core/include/utils/ |
H A D | log_services_utils.hpp | 45 messages::internalError(res); in checkSizeLimit() 55 messages::internalError(res); in checkSizeLimit() 62 messages::internalError(res); in checkSizeLimit() 76 messages::resourceNotFound(asyncResp->res, "EntryAttachment", entryID); in downloadEntryCallback() 82 messages::internalError(asyncResp->res); in downloadEntryCallback() 91 messages::internalError(asyncResp->res); in downloadEntryCallback() 99 messages::internalError(asyncResp->res); in downloadEntryCallback() 111 messages::internalError(asyncResp->res); in downloadEntryCallback() 121 messages::internalError(asyncResp->res); in downloadEntryCallback()
|
/openbmc/docs/designs/mctp/ |
H A D | mctp-userspace.md | 21 complete MCTP messages. This daemon is responsible for the packetisation and 22 routing of MCTP messages from external endpoints, and handling the forwarding 23 these messages to and from individual handler applications. This includes 69 messages of a certain type, and would transmit MCTP messages of that same type. 98 MCTP messages should be forwarded to the client. Types must be greater than 101 Subsequent messages sent over the socket are MCTP messages sent/received by the 111 For messages coming from the demux daemon, this indicates the source EID of the 112 outgoing MCTP message. For messages going to the demux daemon, this indicates 125 for passing messages from the core code to application-level handlers. The 135 messages over dbus instead. The reason for the choice of sockets rather than
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | journal.hpp | 13 * Abstract class to read messages from the journal. 26 * @brief Get messages from the journal 29 * @param maxMessages - Max number of messages to get 31 * @return The messages 58 * @brief Get messages from the journal 61 * @param maxMessages - Max number of messages to get 63 * @return The messages
|
/openbmc/bmcweb/redfish-core/src/ |
H A D | error_message_utils.cpp | 13 namespace messages namespace 53 auto& extendedInfo = error[messages::messageAnnotation]; in addMessageToErrorJson() 75 messages::addMessageToErrorJson(target, source); in moveErrorsToErrorJson() 87 errorObj->find(messages::messageAnnotation); in moveErrorsToErrorJson() 108 if (!target[messages::messageAnnotation].is_array()) in addMessageToJsonRoot() 111 target[messages::messageAnnotation] = nlohmann::json::array(); in addMessageToJsonRoot() 114 target[messages::messageAnnotation].push_back(message); in addMessageToJsonRoot() 121 extendedInfo += messages::messageAnnotation; in addMessageToJson() 134 } // namespace messages
|
/openbmc/openpower-hw-diags/ |
H A D | listener.cpp | 30 /** @brief Start a thread to listen for attention handler messages */ 52 // vector to hold messages sent to listener in threadListener() 53 std::vector<std::string> messages; in threadListener() local 65 // We will continue receiving messages until we receive in threadListener() 76 messages.push_back(buffer); in threadListener() 80 messages.pop_back(); // remove msg_send_end message in threadListener() 82 // convert messages to command line arguments in threadListener() 85 std::transform(messages.begin(), messages.end(), in threadListener()
|
/openbmc/bmcweb/redfish-core/include/ |
H A D | snmp_trap_event_clients.hpp | 41 messages::internalError(asyncResp->res); in afterGetSnmpTrapClientdata() 54 messages::internalError(asyncResp->res); in afterGetSnmpTrapClientdata() 106 messages::internalError(asyncResp->res); in getSnmpTrapClient() 117 messages::internalError(asyncResp->res); in getSnmpTrapClient() 130 messages::resourceNotFound(asyncResp->res, "Subscriptions", id); in getSnmpTrapClient() 152 messages::propertyValueIncorrect(asyncResp->res, "Destination", in afterSnmpClientCreate() 159 messages::propertyValueOutOfRange(asyncResp->res, "SNMPv2c", in afterSnmpClientCreate() 164 messages::internalError(asyncResp->res); in afterSnmpClientCreate() 171 messages::internalError(asyncResp->res); in afterSnmpClientCreate() 180 messages::created(asyncResp->res); in afterSnmpClientCreate() [all …]
|
/openbmc/telemetry/src/messages/ |
H A D | trigger_presence_changed_ind.hpp | 3 #include "messages/presence.hpp" 8 namespace messages namespace 18 } // namespace messages
|
/openbmc/bmcweb/redfish-core/lib/openbmc/ |
H A D | openbmc_managers.hpp | 70 messages::internalError(asyncResp->res); in asyncPopulatePid() 136 messages::internalError(asyncResp->res); in asyncPopulatePid() 150 messages::internalError(asyncResp->res); in asyncPopulatePid() 206 messages::internalError(asyncResp->res); in asyncPopulatePid() 229 messages::internalError(asyncResp->res); in asyncPopulatePid() 260 messages::internalError(asyncResp->res); in asyncPopulatePid() 287 messages::internalError(asyncResp->res); in asyncPopulatePid() 306 messages::internalError(asyncResp->res); in asyncPopulatePid() 324 messages::internalError(asyncResp->res); in asyncPopulatePid() 347 messages::internalError(asyncResp->res); in asyncPopulatePid() [all …]
|