Home
last modified time | relevance | path

Searched refs:services (Results 1 – 25 of 654) sorted by relevance

12345678910>>...27

/openbmc/phosphor-power/phosphor-regulators/test/
H A Derror_logging_utils_tests.cpp72 MockServices services{}; in TEST() local
73 MockErrorLogging& errorLogging = services.getMockErrorLogging(); in TEST()
74 MockJournal& journal = services.getMockJournal(); in TEST()
83 error_logging_utils::logError(eptr, Entry::Level::Error, services); in TEST()
93 MockServices services{}; in TEST() local
96 error_logging_utils::logError(eptr, Entry::Level::Error, services, in TEST()
114 MockServices services{}; in TEST() local
115 MockErrorLogging& errorLogging = services.getMockErrorLogging(); in TEST()
116 MockJournal& journal = services.getMockJournal(); in TEST()
124 error_logging_utils::logError(eptr, Entry::Level::Critical, services, in TEST()
[all …]
H A Dphase_fault_detection_tests.cpp203 auto setExpectations = [](MockServices& services) { in TEST_F() argument
209 MockJournal& journal = services.getMockJournal(); in TEST_F()
236 MockErrorLogging& errorLogging = services.getMockErrorLogging(); in TEST_F()
248 MockServices services{}; in TEST_F() local
249 setExpectations(services); in TEST_F()
254 detection.execute(services, *system, *chassis, *regulator); in TEST_F()
264 MockServices services{}; in TEST_F() local
265 setExpectations(services); in TEST_F()
270 detection.execute(services, *system, *chassis, *regulator); in TEST_F()
296 MockServices services{}; in TEST_F() local
[all …]
H A Dsensor_monitoring_tests.cpp157 auto setExpectations = [](MockServices& services) { in TEST() argument
159 MockSensors& sensors = services.getMockSensors(); in TEST()
165 MockJournal& journal = services.getMockJournal(); in TEST()
171 MockErrorLogging& errorLogging = services.getMockErrorLogging(); in TEST()
178 MockServices services{}; in TEST() local
179 setExpectations(services); in TEST()
183 monitoring->execute(services, *system, *chassis, *device, *rail); in TEST()
193 MockServices services{}; in TEST() local
194 setExpectations(services); in TEST()
198 monitoring->execute(services, *system, *chassis, *device, *rail); in TEST()
[all …]
H A Dpresence_detection_tests.cpp125 MockServices services{}; in TEST() local
126 EXPECT_TRUE(detection->execute(services, *system, *chassis, *device)); in TEST()
162 MockServices services{}; in TEST() local
164 services.getMockPresenceService(); in TEST()
172 EXPECT_TRUE(detection->execute(services, *system, *chassis, *device)); in TEST()
184 MockServices services{}; in TEST() local
186 services.getMockPresenceService(); in TEST()
190 EXPECT_TRUE(detection->execute(services, *system, *chassis, *device)); in TEST()
201 MockServices services{}; in TEST() local
203 services.getMockPresenceService(); in TEST()
[all …]
H A Dchassis_tests.cpp169 MockServices services{}; in TEST_F() local
170 presenceDetectionPtr->execute(services, *system, chassis, *devicePtr); in TEST_F()
217 auto setExpectations = [](MockServices& services) { in TEST_F() argument
219 MockSensors& sensors = services.getMockSensors(); in TEST_F()
225 MockJournal& journal = services.getMockJournal(); in TEST_F()
231 MockErrorLogging& errorLogging = services.getMockErrorLogging(); in TEST_F()
238 MockServices services{}; in TEST_F() local
239 setExpectations(services); in TEST_F()
243 chassis.monitorSensors(services, *system); in TEST_F()
253 MockServices services{}; in TEST_F() local
[all …]
H A Ddevice_tests.cpp230 MockServices services{}; in TEST_F() local
231 presenceDetectionPtr->execute(services, *system, *chassis, device); in TEST_F()
288 auto setExpectations = [](MockServices& services) { in TEST_F() argument
293 MockJournal& journal = services.getMockJournal(); in TEST_F()
310 MockErrorLogging& errorLogging = services.getMockErrorLogging(); in TEST_F()
316 MockSensors& sensors = services.getMockSensors(); in TEST_F()
324 MockServices services{}; in TEST_F() local
325 setExpectations(services); in TEST_F()
329 device.monitorSensors(services, *system, *chassis); in TEST_F()
330 device.detectPhaseFaults(services, *system, *chassis); in TEST_F()
[all …]
/openbmc/phosphor-power/phosphor-power-sequencer/test/
H A Ducd90160_device_tests.cpp63 MockServices services; in TEST() local
70 UCD90160Device device{std::move(rails), services, bus, address}; in TEST()
100 MockServices services; in TEST() local
101 EXPECT_CALL(services, getGPIOValues("ucd90160")) in TEST()
104 EXPECT_CALL(services, logInfoMsg("Device UCD90160 GPIO values:")) in TEST()
106 EXPECT_CALL(services, in TEST()
112 services, in TEST()
117 EXPECT_CALL(services, in TEST()
121 EXPECT_CALL(services, in TEST()
125 EXPECT_CALL(services, in TEST()
[all …]
H A Ducd90320_device_tests.cpp63 MockServices services; in TEST() local
70 UCD90320Device device{std::move(rails), services, bus, address}; in TEST()
102 MockServices services; in TEST() local
103 EXPECT_CALL(services, getGPIOValues("ucd90320")) in TEST()
106 EXPECT_CALL(services, logInfoMsg("Device UCD90320 GPIO values:")) in TEST()
108 EXPECT_CALL(services, logInfoMsg("MAR01-24: [" in TEST()
112 EXPECT_CALL(services, logInfoMsg("EN1-32: [" in TEST()
117 EXPECT_CALL(services, logInfoMsg("LGP01-16: [" in TEST()
121 EXPECT_CALL(services, logInfoMsg("DMON1-8: [" in TEST()
124 EXPECT_CALL(services, logInfoMsg("GPIO1-4: [" in TEST()
[all …]
H A Dstandard_device_tests.cpp69 MOCK_METHOD(std::vector<int>, getGPIOValues, (Services & services),
77 MOCK_METHOD(void, prepareForPgoodFaultDetection, (Services & services),
226 MockServices services{}; in TEST() local
231 device.findPgoodFault(services, powerSupplyError, additionalData); in TEST()
254 MockServices services{}; in TEST() local
255 EXPECT_CALL(services, in TEST()
259 services, in TEST()
263 EXPECT_CALL(services, logErrorMsg("Pgood fault detected in rail PSU")) in TEST()
266 services, in TEST()
274 device.findPgoodFault(services, powerSupplyError, additionalData); in TEST()
[all …]
H A Drail_tests.cpp357 MockServices services{}; in TEST() local
358 EXPECT_CALL(services, isPresent).Times(0); in TEST()
360 EXPECT_TRUE(rail.isPresent(services)); in TEST()
375 MockServices services{}; in TEST() local
376 EXPECT_CALL(services, isPresent(*presence)) in TEST()
380 EXPECT_FALSE(rail.isPresent(services)); in TEST()
395 MockServices services{}; in TEST() local
396 EXPECT_CALL(services, isPresent(*presence)) in TEST()
400 EXPECT_TRUE(rail.isPresent(services)); in TEST()
415 MockServices services{}; in TEST() local
[all …]
H A Ducd90x_device_tests.cpp65 MockServices services; in TEST() local
73 UCD90xDevice device{name, std::move(rails), services, bus, address}; in TEST()
90 MockServices services; in TEST() local
96 UCD90xDevice device{name, std::move(rails), services, bus, address}; in TEST()
109 MockServices services; in TEST() local
115 UCD90xDevice device{name, std::move(rails), services, bus, address}; in TEST()
143 MockServices services; in TEST() local
145 EXPECT_CALL(services, getGPIOValues("ucd90320")) in TEST()
148 EXPECT_CALL(services, in TEST()
151 EXPECT_CALL(services, in TEST()
[all …]
H A Dpmbus_driver_device_tests.cpp112 MockServices services; in TEST_F() local
120 PMBusDriverDevice device{name, std::move(rails), services, bus, in TEST_F()
136 MockServices services; in TEST_F() local
146 PMBusDriverDevice device{name, std::move(rails), services, bus, in TEST_F()
163 MockServices services; in TEST_F() local
169 PMBusDriverDevice device{name, std::move(rails), services, bus, address}; in TEST_F()
176 MockServices services; in TEST_F() local
182 PMBusDriverDevice device{name, std::move(rails), services, bus, address}; in TEST_F()
189 MockServices services; in TEST_F() local
196 PMBusDriverDevice device{name, std::move(rails), services, in TEST_F()
[all …]
/openbmc/phosphor-power/phosphor-regulators/test/actions/
H A Daction_environment_tests.cpp42 MockServices services{}; in TEST() local
56 ActionEnvironment env{idMap, "regulator1", services}; in TEST()
73 MockServices services{}; in TEST() local
74 ActionEnvironment env{idMap, "", services}; in TEST()
87 MockServices services{}; in TEST() local
88 ActionEnvironment env{idMap, "", services}; in TEST()
111 MockServices services{}; in TEST() local
112 ActionEnvironment env{idMap, "", services}; in TEST()
128 MockServices services{}; in TEST() local
129 ActionEnvironment env{idMap, "", services}; in TEST()
[all …]
H A Di2c_compare_byte_action_tests.cpp80 MockServices services{}; in TEST() local
81 ActionEnvironment env{idMap, "reg1", services}; in TEST()
112 MockServices services{}; in TEST() local
113 ActionEnvironment env{idMap, "reg1", services}; in TEST()
141 MockServices services{}; in TEST() local
142 ActionEnvironment env{idMap, "reg1", services}; in TEST()
173 MockServices services{}; in TEST() local
174 ActionEnvironment env{idMap, "reg1", services}; in TEST()
189 MockServices services{}; in TEST() local
190 ActionEnvironment env{idMap, "reg1", services}; in TEST()
[all …]
/openbmc/phosphor-power/phosphor-power-sequencer/src/
H A Dstandard_device.cpp30 Services& services, const std::string& powerSupplyError, in findPgoodFault() argument
36 prepareForPgoodFaultDetection(services); in findPgoodFault()
40 std::vector<int> gpioValues = getGPIOValuesIfPossible(services); in findPgoodFault()
44 findRailWithPgoodFault(services, gpioValues, additionalData); in findPgoodFault()
47 services.logErrorMsg(std::format( in findPgoodFault()
63 storePgoodFaultDebugData(services, gpioValues, additionalData); in findPgoodFault()
75 std::vector<int> StandardDevice::getGPIOValuesIfPossible(Services& services) in getGPIOValuesIfPossible() argument
80 values = getGPIOValues(services); in getGPIOValuesIfPossible()
88 Services& services, const std::vector<int>& gpioValues, in findRailWithPgoodFault() argument
99 if (rail->hasPgoodFaultStatusVout(*this, services, additionalData)) in findRailWithPgoodFault()
[all …]
H A Drail.cpp29 bool Rail::isPresent(Services& services) in isPresent() argument
40 present = services.isPresent(inventoryPath); in isPresent()
120 bool Rail::hasPgoodFault(PowerSequencerDevice& device, Services& services, 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()
130 PowerSequencerDevice& device, Services& services, in hasPgoodFaultStatusVout() argument
136 if (isPresent(services) && checkStatusVout) in hasPgoodFaultStatusVout()
145 services.logErrorMsg(std::format( in hasPgoodFaultStatusVout()
150 storePgoodFaultDebugData(device, services, additionalData); in hasPgoodFaultStatusVout()
[all …]
H A Dpower_control.cpp49 services{bus},
83 services.logInfoMsg("After onFailure wait"); in onFailureCallback()
105 error = device->findPgoodFault(services, powerSupplyError, in onFailure()
110 services.logErrorMsg(e.what()); in onFailure()
132 services.logError(error, Entry::Level::Critical, additionalData); in onFailure()
136 services.createBMCDump(); in onFailure()
148 services.logErrorMsg(std::format( in pollPgood()
161 services.logError(powerOffTimeoutError, Entry::Level::Critical, in pollPgood()
196 services.logErrorMsg("Chassis pgood failure"); in pollPgood()
220 services.logInfoMsg( in setState()
[all …]
/openbmc/phosphor-power/phosphor-regulators/src/
H A Ddevice.cpp66 void Device::close(Services& services) in close() argument
79 services.getJournal().logError(exception_utils::getMessages(e)); in close()
80 services.getJournal().logError("Unable to close device " + id); in close()
84 Entry::Level::Notice, services); in close()
88 void Device::configure(Services& services, System& system, Chassis& chassis) in configure() argument
91 if (isPresent(services, system, chassis)) in configure()
96 configuration->execute(services, system, chassis, *this); in configure()
102 rail->configure(services, system, chassis, *this); in configure()
107 void Device::detectPhaseFaults(Services& services, System& system, in detectPhaseFaults() argument
111 if (isPresent(services, system, chassis)) in detectPhaseFaults()
[all …]
H A Dmanager.cpp72 services{bus},
109 system->configure(services); in configure()
114 services.getJournal().logError("Unable to configure regulator devices: " in configure()
119 services.getErrorLogging().logConfigFileError(Entry::Level::Critical, in configure()
120 services.getJournal()); in configure()
138 services.getJournal().logDebug("Monitoring enabled"); in monitor()
147 services.getSensors().enable(); in monitor()
151 services.getJournal().logDebug("Monitoring disabled"); in monitor()
158 services.getSensors().disable(); in monitor()
167 system->closeDevices(services); in monitor()
[all …]
H A Dphase_fault_detection.cpp45 void PhaseFaultDetection::execute(Services& services, System& system, in execute() argument
57 services}; in execute()
63 checkForPhaseFault(PhaseFaultType::n, services, regulator, environment); in execute()
64 checkForPhaseFault(PhaseFaultType::n_plus_1, services, regulator, in execute()
73 services.getJournal().logError(exception_utils::getMessages(e)); in execute()
74 services.getJournal().logError( in execute()
81 Entry::Level::Warning, services, in execute()
87 PhaseFaultType faultType, Services& services, Device& regulator, in checkForPhaseFault() argument
112 services.getJournal().logError( in checkForPhaseFault()
120 logPhaseFault(faultType, services, regulator, environment); in checkForPhaseFault()
[all …]
H A Dchassis.cpp51 void Chassis::closeDevices(Services& services) in closeDevices() argument
54 services.getJournal().logDebug( in closeDevices()
60 device->close(services); in closeDevices()
64 void Chassis::configure(Services& services, System& system) in configure() argument
67 services.getJournal().logInfo( in configure()
73 device->configure(services, system, *this); in configure()
77 void Chassis::detectPhaseFaults(Services& services, System& system) in detectPhaseFaults() argument
82 device->detectPhaseFaults(services, system, *this); in detectPhaseFaults()
86 void Chassis::monitorSensors(Services& services, System& system) in monitorSensors() argument
91 device->monitorSensors(services, system, *this); in monitorSensors()
H A Dconfiguration.cpp33 void Configuration::execute(Services& services, System& system, in execute() argument
36 execute(services, system, chassis, device, device.getID()); in execute()
39 void Configuration::execute(Services& services, System& system, in execute() argument
42 execute(services, system, chassis, device, rail.getID()); in execute()
45 void Configuration::execute(Services& services, System& system, in execute() argument
57 services.getJournal().logDebug(message); in execute()
61 services}; in execute()
73 services.getJournal().logError(exception_utils::getMessages(e)); in execute()
74 services.getJournal().logError("Unable to configure " + deviceOrRailID); in execute()
78 Entry::Level::Warning, services); in execute()
H A Dsystem.cpp55 void System::closeDevices(Services& services) in closeDevices() argument
60 oneChassis->closeDevices(services); in closeDevices()
64 void System::configure(Services& services) in configure() argument
69 oneChassis->configure(services, *this); in configure()
73 void System::detectPhaseFaults(Services& services) in detectPhaseFaults() argument
78 oneChassis->detectPhaseFaults(services, *this); in detectPhaseFaults()
82 void System::monitorSensors(Services& services) in monitorSensors() argument
87 oneChassis->monitorSensors(services, *this); in monitorSensors()
/openbmc/qemu/backends/
H A Dcryptodev-hmp-cmds.c27 g_autofree char *services = NULL; in hmp_info_cryptodev() local
35 if (!services) { in hmp_info_cryptodev()
36 services = g_strdup(service); in hmp_info_cryptodev()
38 tmp_services = g_strjoin("|", services, service, NULL); in hmp_info_cryptodev()
39 g_free(services); in hmp_info_cryptodev()
40 services = tmp_services; in hmp_info_cryptodev()
43 monitor_printf(mon, "%s: service=[%s]\n", info->id, services); in hmp_info_cryptodev()
/openbmc/openbmc-test-automation/redfish/extended/
H A Dtest_service_restart_policy.robot3 ... services needed for functioning on BMC.
21 [Documentation] Kill active services and expect auto restart.
23 # The services listed below restart policy should be "always"
27 @{services}=
33 FOR ${SERVICE} IN @{services}
63 [Documentation] Kill the given services and expect again services get restarted automatically.
66 # Create a list of services in respective server model python file
68 # Example of creating a list of services in their respective server model python file
78 # Creating an list of services which needs to be validated.
80 ${services}= Get Service Restart Policy Services ${OPENBMC_MODEL}
[all …]

12345678910>>...27