Home
last modified time | relevance | path

Searched full:services (Results 1 – 25 of 2446) sorted by relevance

12345678910>>...98

/openbmc/phosphor-power/phosphor-regulators/src/
H A Dservices.hpp31 * @class Services
33 * Abstract base class that provides an interface to system services like error
36 * This interface is a container for a set of system services. It can be passed
39 class Services class
43 Services() = default;
44 Services(const Services&) = delete;
45 Services(Services&&) = delete;
46 Services& operator=(const Services&) = delete;
47 Services& operator=(Services&&) = delete;
48 virtual ~Services() = default;
[all …]
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 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 Dsystem.hpp21 #include "services.hpp"
80 * @param services system services like error logging and the journal
82 void closeDevices(Services& services);
90 * @param services system services like error logging and the journal
92 void configure(Services& services);
99 * @param services system services like error logging and the journal
101 void detectPhaseFaults(Services& services);
142 * @param services system services like error logging and the journal
144 void monitorSensors(Services& services);
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 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 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()
H A Dchassis.hpp20 #include "services.hpp"
107 * @param services system services like error logging and the journal
109 void closeDevices(Services& services);
117 * @param services system services like error logging and the journal
120 void configure(Services& services, System& system);
127 * @param services system services like error logging and the journal
130 void detectPhaseFaults(Services& services, System& system);
171 * @param services system services like error logging and the journal
174 void monitorSensors(Services& services, System& system);
/openbmc/openbmc-test-automation/redfish/extended/
H A Dtest_service_restart_policy.robot3 ... services needed for functioning on BMC.
20 Verify OpenBMC Services Auto Restart Policy
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}
38 Kill Services And Expect Service Restart
62 Kill The List Of Services And Expect Killed Service Gets Restarted
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
[all …]
/openbmc/phosphor-power/phosphor-regulators/test/actions/
H A Daction_environment_tests.cpp41 // Create mock services. in TEST()
42 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
[all …]
/openbmc/phosphor-power/phosphor-power-sequencer/src/
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 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 Dstandard_device.hpp20 #include "services.hpp"
81 Services& services, const std::string& powerSupplyError,
94 * @param services System services like hardware presence and the journal
97 prepareForPgoodFaultDetection([[maybe_unused]] Services& services) in prepareForPgoodFaultDetection() argument
106 * @param services System services like hardware presence and the journal
109 virtual std::vector<int> getGPIOValuesIfPossible(Services& services);
121 * @param services System services like hardware presence and the journal
129 Services& services, const std::vector<int>& gpioValues,
144 * @param services System services like hardware presence and the journal
149 Services& services, const std::vector<int>& gpioValues,
[all …]
H A Dservices.hpp40 * @class Services
42 * Abstract base class that provides an interface to system services like error
45 class Services class
49 Services() = default;
50 Services(const Services&) = delete;
51 Services(Services&&) = delete;
52 Services& operator=(const Services&) = delete;
53 Services& operator=(Services&&) = delete;
54 virtual ~Services() = default;
147 * Implementation of the Services interface using standard BMC system services.
[all …]
/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 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()
237 // Create mock services. Set expectations via lambda. in TEST_F()
238 MockServices services{}; in TEST_F() local
239 setExpectations(services); in TEST_F()
243 chassis.monitorSensors(services, *system); in TEST_F()
[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()
247 // Create mock services. Set expectations via lambda. 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()
263 // Create mock services. Set expectations via lambda. in TEST_F()
264 MockServices services{}; in TEST_F() local
265 setExpectations(services); in TEST_F()
[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()
177 // Create mock services. Set expectations via lambda. in TEST()
178 MockServices services{}; in TEST() local
179 setExpectations(services); in TEST()
183 monitoring->execute(services, *system, *chassis, *device, *rail); in TEST()
192 // Create mock services. Set expectations via lambda. in TEST()
193 MockServices services{}; in TEST() 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()
323 // Create mock services. Set expectations via lambda. 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()
[all …]
/openbmc/phosphor-power/phosphor-power-sequencer/test/
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 Ducd90160_device_tests.cpp21 #include "services.hpp"
63 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()
[all …]
H A Dpmbus_driver_device_tests.cpp22 #include "services.hpp"
112 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
[all …]
H A Dstandard_device_tests.cpp19 #include "services.hpp"
69 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()
[all …]
H A Ducd90x_device_tests.cpp21 #include "services.hpp"
65 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()
[all …]
/openbmc/openbmc-test-automation/security/
H A Dtest_slp.robot2 Documentation Find services and service agents on the system.
9 # Get the SLP services available, make it suite global.
17 ${service_path} /etc/slp/services
18 # SLP_SERVICES Services listed by slptool, by default Empty.
24 [Documentation] Find services supported by system.
42 [Documentation] Get SLP services.
64 @{services}= Split String ${remove_prefix} ${\n}
65 ${service_count}= Get Length ${services}
72 ... msg=Number of services on system & command are not equal.
74 FOR ${service} IN @{services}
[all …]

12345678910>>...98