| /openbmc/sdbusplus/test/server/ |
| H A D | object.cpp | 33 static constexpr auto objPath = "/xyz/openbmc_project/sdbusplus/test"; member in Object 39 sdbusplus::server::manager_t objManager(bus, objPath); in TEST_F() 42 EXPECT_CALL(sdbusMock, sd_bus_emit_object_added(_, StrEq(objPath))) in TEST_F() 45 sd_bus_emit_interfaces_added_strv(_, StrEq(objPath), _)) in TEST_F() 50 bus, objPath, TestInherit::action::emit_interface_added); in TEST_F() 53 EXPECT_CALL(sdbusMock, sd_bus_emit_object_removed(_, StrEq(objPath))) in TEST_F() 56 sd_bus_emit_interfaces_removed_strv(_, StrEq(objPath), _)) in TEST_F() 63 sdbusplus::server::manager_t objManager(bus, objPath); in TEST_F() 66 EXPECT_CALL(sdbusMock, sd_bus_emit_object_added(_, StrEq(objPath))) in TEST_F() 69 sd_bus_emit_interfaces_added_strv(_, StrEq(objPath), _)) in TEST_F() [all …]
|
| /openbmc/phosphor-certificate-manager/test/ |
| H A D | ca_certs_manager_test.cpp | 63 std::string objPath = "/xyz/openbmc_project/certs/ca"; in TEST_F() local 64 MockCACertMgr manager(bus, objPath.c_str()); in TEST_F() 67 EXPECT_NO_THROW(objPath = manager.createCSRObject(csrString)); in TEST_F() 74 std::string objPath = "/xyz/openbmc_project/certs/ca"; in TEST_F() local 75 MockCACertMgr manager(bus, objPath.c_str()); in TEST_F() 79 EXPECT_THROW(objPath = manager.createCSRObject(csrString), InvalidArgument); in TEST_F() 84 std::string objPath = "/xyz/openbmc_project/certs/ca"; in TEST_F() local 86 MockCACertMgr manager(bus, objPath.c_str()); in TEST_F() 90 objPath = manager.createCSRObject(csrString); in TEST_F() 91 objPath = manager.createCSRObject(csrString); in TEST_F() [all …]
|
| /openbmc/pldm/fw-update/ |
| H A D | activation.hpp | 38 ActivationProgress(sdbusplus::bus_t& bus, const std::string& objPath) : in ActivationProgress() argument 39 ActivationProgressIntf(bus, objPath.c_str(), in ActivationProgress() 59 Delete(sdbusplus::bus_t& bus, const std::string& objPath, in Delete() argument 61 DeleteIntf(bus, objPath.c_str(), action::emit_interface_added), in Delete() 86 Activation(sdbusplus::bus_t& bus, std::string objPath, in Activation() argument 88 ActivationIntf(bus, objPath.c_str(), in Activation() 90 bus(bus), objPath(objPath), updateManager(updateManager) in Activation() 93 deleteImpl = std::make_unique<Delete>(bus, objPath, updateManager); in Activation() 124 const std::string objPath; member in pldm::fw_update::Activation
|
| /openbmc/phosphor-snmp/test/ |
| H A D | test_snmp_serialize.cpp | 44 std::string objPath = clientObjPath; in TEST_F() local 45 objPath += "/" + std::to_string(1); in TEST_F() 49 Client client(bus, objPath.c_str(), manager, "1.1.1.1", 23); in TEST_F() 62 std::string objPath = clientObjPath; in TEST_F() local 63 objPath += "/" + std::to_string(1); in TEST_F() 65 Client client(bus, objPath.c_str(), manager); in TEST_F() 76 std::string objPath = clientObjPath; in TEST_F() local 77 objPath += "/" + std::to_string(1); in TEST_F() 79 Client restoreClient(bus, objPath.c_str(), manager); in TEST_F()
|
| H A D | test_snmp_client.cpp | 41 std::string objPath = mgrObjPath; in TEST_F() local 42 objPath += "/" + std::to_string(1); in TEST_F() 43 Client client(bus, objPath.c_str(), manager, "1.1.1.1", 202); in TEST_F() 57 std::string objPath = mgrObjPath; in TEST_F() local 58 objPath += "/" + std::to_string(1); in TEST_F() 59 Client client(bus, objPath.c_str(), manager, "1.1.1.1", 202); in TEST_F() 68 std::string objPath = mgrObjPath; in TEST_F() local 69 objPath += "/" + std::to_string(1); in TEST_F() 73 Client client(bus, objPath.c_str(), manager, "1.1.1.1", 23); in TEST_F()
|
| /openbmc/phosphor-snmp/ |
| H A D | snmp_conf_manager.cpp | 27 ConfManager::ConfManager(sdbusplus::bus_t& bus, const char* objPath) : in ConfManager() argument 28 details::CreateIface(bus, objPath, in ConfManager() 31 objectPath(objPath) in ConfManager() 53 std::filesystem::path objPath; in client() local 54 objPath /= objectPath; in client() 55 objPath /= std::to_string(lastClientId); in client() 58 bus, objPath.string().c_str(), *this, address, port); in client() 64 return objPath.string(); in client() 141 fs::path objPath = objectPath; in restoreClients() local 142 objPath /= managerID; in restoreClients() [all …]
|
| H A D | snmp_client.hpp | 48 Client(sdbusplus::bus_t& bus, const char* objPath, ConfManager& parent, 56 Client(sdbusplus::bus_t& bus, const char* objPath, ConfManager& parent) : in Client() argument 57 Ifaces(bus, objPath, Ifaces::action::defer_emit), in Client() 58 id(std::stol(std::filesystem::path(objPath).filename())), parent(parent) in Client()
|
| /openbmc/phosphor-pid-control/test/ |
| H A D | sensor_host_unittest.cpp | 46 const char* objPath = "/asdf/asdf0"; in TEST() local 54 SetupDbusObject(&sdbus_mock, defer, objPath, SensorValue::interface, in TEST() 59 sd_bus_emit_object_removed(IsNull(), StrEq(objPath))) in TEST() 63 HostSensor::createTemp(name, timeout, bus_mock, objPath, defer); in TEST() 75 const char* objPath = "/asdf/asdf0"; in TEST() local 81 SetupDbusObject(&sdbus_mock, defer, objPath, SensorValue::interface, in TEST() 85 sd_bus_emit_object_removed(IsNull(), StrEq(objPath))) in TEST() 89 HostSensor::createTemp(name, timeout, bus_mock, objPath, defer); in TEST() 99 IsNull(), StrEq(objPath), in TEST()
|
| /openbmc/phosphor-hwmon/test/ |
| H A D | fanpwm_unittest.cpp | 60 std::string objPath = "asdf"; in TEST() local 67 SetupDbusObject(&sdbus_mock, objPath, FanPwmIntf, FanPwmProp); in TEST() 70 objPath.c_str(), defer, target); in TEST() 85 std::string objPath = "asdf"; in TEST() local 92 SetupDbusObject(&sdbus_mock, objPath, FanPwmIntf, FanPwmProp); in TEST() 101 objPath.c_str(), defer, target); in TEST() 114 std::string objPath = "asdf"; in TEST() local 121 SetupDbusObject(&sdbus_mock, objPath, FanPwmIntf, FanPwmProp); in TEST() 127 objPath.c_str(), defer, target); in TEST() 158 std::string objPath = "asdf"; in TEST() local [all …]
|
| /openbmc/phosphor-virtual-sensor/src/ |
| H A D | virtualSensor.hpp | 99 VirtualSensor(sdbusplus::bus_t& bus, const char* objPath, in VirtualSensor() argument 102 ValueObject(bus, objPath, action::defer_emit), bus(bus), name(name), in VirtualSensor() 103 objPath(objPath) in VirtualSensor() 105 initVirtualSensor(sensorConfig, objPath, type); in VirtualSensor() 119 VirtualSensor(sdbusplus::bus_t& bus, const char* objPath, in VirtualSensor() argument 123 ValueObject(bus, objPath, action::defer_emit), bus(bus), name(name), in VirtualSensor() 124 objPath(objPath), entityPath(entityPath) in VirtualSensor() 126 initVirtualSensor(ifacemap, objPath, type, calculationType); in VirtualSensor() 151 std::string objPath; member in phosphor::virtual_sensor::VirtualSensor 191 void initVirtualSensor(const Json& sensorConfig, const std::string& objPath, [all …]
|
| H A D | thresholds.hpp | 60 auto tryCommit(const std::string& objPath, double value, Unit unit, in tryCommit() argument 67 error("SENSOR_NAME", objPath, "READING_VALUE", value, "UNITS", unit, in tryCommit() 74 "SENSOR", objPath, "VALUE", value); in tryCommit() 107 std::string objPath; member 125 WarningObject(bus, path), bus(bus), objPath(std::string(path)), in Threshold() 154 objPath, value, units, high()); in alarmHighSignalAsserted() 169 objPath, value, units, low()); in alarmLowSignalAsserted() 235 std::string objPath; member 259 CriticalObject(bus, path), bus(bus), objPath(std::string(path)), in Threshold() 288 objPath, value, units, high()); in alarmHighSignalAsserted() [all …]
|
| /openbmc/bmcweb/redfish-core/lib/ |
| H A D | led.hpp | 247 const std::string& objPath, const boost::system::error_code& ec, in handleLedGroupSubtree() argument 265 objPath); in handleLedGroupSubtree() 275 objPath, subtree.size()); in handleLedGroupSubtree() 287 const std::string& objPath, in getLedGroupPath() argument 295 objPath + "/identifying"; in getLedGroupPath() 300 [asyncResp, objPath, callback{std::move(callback)}]( in getLedGroupPath() 303 handleLedGroupSubtree(objPath, ec, subtree, callback); in getLedGroupPath() 366 const std::string& objPath, std::function<void(bool asserted)>&& callback) in getLocationIndicatorActive() argument 368 BMCWEB_LOG_DEBUG("Get LocationIndicatorActive for {}", objPath); in getLocationIndicatorActive() 370 asyncResp, objPath, in getLocationIndicatorActive() [all …]
|
| /openbmc/phosphor-bmc-code-mgmt/common/src/ |
| H A D | software_manager.cpp | 210 auto& [objPath, interfacesMap] = nextResult; in interfaceAddedMatch() 217 interface, "PATH", objPath); in interfaceAddedMatch() 219 co_await handleInterfaceAdded(serviceNameEM, objPath, in interfaceAddedMatch() 234 auto& [objPath, interfacesRemoved] = nextResult; in interfaceRemovedMatch() 236 debug("detected interface removed on {PATH}", "PATH", objPath); in interfaceRemovedMatch() 244 interface, "PATH", objPath); in interfaceRemovedMatch() 245 co_await handleInterfaceRemoved(objPath); in interfaceRemovedMatch() 252 const sdbusplus::message::object_path& objPath) in handleInterfaceRemoved() argument 254 if (!devices.contains(objPath)) in handleInterfaceRemoved() 260 if (devices[objPath]->updateInProgress) in handleInterfaceRemoved() [all …]
|
| /openbmc/phosphor-debug-collector/ |
| H A D | bmc_dump_entry.hpp | 57 Entry(sdbusplus::bus_t& bus, const std::string& objPath, uint32_t dumpId, in Entry() argument 62 phosphor::dump::Entry(bus, objPath.c_str(), dumpId, timeStamp, fileSize, in Entry() 65 EntryIfaces(bus, objPath.c_str(), EntryIfaces::action::defer_emit) in Entry() 118 sdbusplus::bus_t& bus, uint32_t id, const std::string& objPath, in deserializeEntry() argument 124 new Entry(bus, objPath, id, filePath, parent)); in deserializeEntry() 148 Entry(sdbusplus::bus_t& bus, const std::string& objPath, uint32_t dumpId, in Entry() argument 150 phosphor::dump::Entry(bus, objPath.c_str(), dumpId, 0, 0, file, in Entry() 153 EntryIfaces(bus, objPath.c_str(), EntryIfaces::action::defer_emit) in Entry()
|
| H A D | dump_manager_faultlog.cpp | 59 auto objPath = std::filesystem::path(baseEntryPath) / idString; in createDump() local 85 strerror(errno), "OBJECT_PATH", objPath, "ID", id); in createDump() 86 elog<Open>(ErrnoOpen(errno), PathOpen(objPath.c_str())); in createDump() 101 bus, objPath.c_str(), id, timestamp, in createDump() 110 "ERROR", e, "OBJECT_PATH", objPath, "ID", id); in createDump() 117 return objPath.string(); in createDump()
|
| /openbmc/phosphor-psu-code-mgmt/src/ |
| H A D | version.hpp | 75 Version(sdbusplus::bus_t& bus, const std::string& objPath, in Version() argument 78 VersionInherit(bus, (objPath).c_str(), in Version() 80 eraseCallback(std::move(callback)), objPath(objPath), in Version() 87 deleteObject = std::make_unique<Delete>(bus, objPath, *this); in Version() 146 std::string objPath; member in phosphor::software::updater::Version
|
| /openbmc/phosphor-host-ipmid/include/ipmid/ |
| H A D | utils.hpp | 136 const std::string& objPath, const std::string& interface, 150 const std::string& objPath, const std::string& interface, 162 const std::string& objPath); 173 const std::string& objPath, const std::string& interface, 258 Context::ptr ctx, const std::string& service, const std::string& objPath, in getDbusProperty() argument 264 ctx->yield, ec, service.c_str(), objPath.c_str(), PROP_INTF, METHOD_GET, in getDbusProperty() 291 Context::ptr ctx, const std::string& service, const std::string& objPath, 304 Context::ptr ctx, const std::string& service, const std::string& objPath, 339 Context::ptr ctx, const std::string& service, const std::string& objPath, 353 Context::ptr ctx, const std::string& service, const std::string& objPath, [all …]
|
| /openbmc/phosphor-bmc-code-mgmt/test/common/software/ |
| H A D | software_config.cpp | 22 const std::string objPath = variable 27 SoftwareConfig config(objPath, vendorIANA, compatibleHardware, in TEST() 38 SoftwareConfig config(objPath, vendorIANA, "comexamplesamplecorp", in TEST() 50 SoftwareConfig config(objPath, vendorIANA, in TEST()
|
| /openbmc/ibm-logging/ |
| H A D | dbus.cpp | 34 const std::string& objPath) in getManagedObjects() argument 38 auto method = bus.new_method_call(service.c_str(), objPath.c_str(), in getManagedObjects() 51 const std::string& objPath, in getAllProperties() argument 56 auto method = bus.new_method_call(service.c_str(), objPath.c_str(), in getAllProperties() 83 DbusService getService(const std::string& objPath, const std::string& interface, in getService() argument 88 auto services = tree.find(objPath); in getService()
|
| /openbmc/phosphor-led-manager/manager/ |
| H A D | manager.cpp | 214 int Manager::drivePhysicalLED(const std::string& objPath, Layout::Action action, in drivePhysicalLED() argument 226 objPath, phyLedIntf, "DutyOn", dutyOnValue); in drivePhysicalLED() 228 objPath, phyLedIntf, "Period", periodValue); in drivePhysicalLED() 232 phosphor::led::utils::DBusHandler::setProperty(objPath, phyLedIntf, in drivePhysicalLED() 241 if (auto it = physicalLEDErrors.find(objPath); in drivePhysicalLED() 253 "ERROR", e, "PATH", objPath); in drivePhysicalLED() 254 physicalLEDErrors[objPath] = now; in drivePhysicalLED() 291 std::string objPath = std::string(phyLedPath) + it.name; in driveLedsHandler() local 294 if (drivePhysicalLED(objPath, Layout::Action::Off, it.dutyOn, in driveLedsHandler() 303 std::string objPath = std::string(phyLedPath) + it.name; in driveLedsHandler() local [all …]
|
| H A D | group.hpp | 41 Group(sdbusplus::bus_t& bus, const std::string& objPath, Manager& manager, in Group() argument 45 GroupInherit(bus, objPath.c_str(), GroupInherit::action::defer_emit), in Group() 46 path(objPath), manager(manager), serializePtr(serializePtr), in Group() 50 if (serializePtr && serializePtr->getGroupSavedState(objPath)) in Group()
|
| /openbmc/phosphor-certificate-manager/bmc-vmi-ca/ |
| H A D | mainapp.cpp | 12 static constexpr auto objPath = "/xyz/openbmc_project/certs/ca"; in main() local 15 sdbusplus::server::manager_t objManager(bus, objPath); in main() 17 ca::cert::CACertMgr manager(bus, objPath); in main()
|
| H A D | ca_certs_manager.cpp | 26 std::string objPath; in signCSR() local 36 objPath = fs::path(objectNamePrefix) / "ca" / "entry" / in signCSR() 43 id, std::make_unique<Entry>(bus, objPath, id, csr, cert, *this))); in signCSR() 52 return objPath; in signCSR()
|
| /openbmc/phosphor-watchdog/src/ |
| H A D | watchdog.hpp | 68 Watchdog(sdbusplus::bus_t& bus, const char* objPath, in Watchdog() argument 74 WatchdogInherits(bus, objPath), bus(bus), 78 objPath(objPath), exitAfterTimeout(exitAfterTimeout) 190 std::string_view objPath; member in phosphor::watchdog::Watchdog
|
| /openbmc/phosphor-networkd/src/ |
| H A D | inventory_mac.cpp | 115 DbusObjectPath objPath; in getfromInventory() local 120 objPath = objectTree.begin()->first; in getfromInventory() 133 objPath = object.first; in getfromInventory() 139 if (objPath.empty()) in getfromInventory() 147 auto method = bus.new_method_call(service.c_str(), objPath.c_str(), in getfromInventory() 161 "DBUS_PATH", objPath, "DBUS_INTF", invNetworkIntf); in getfromInventory() 227 sdbusplus::message::object_path objPath; in registerSignals() local 228 m.read(objPath, interfacesProperties); in registerSignals() 232 if (objPath.str.ends_with("/" + pattern.value().get<std::string>())) in registerSignals() 300 sdbusplus::message::object_path objPath; in watchEthernetInterface() local [all …]
|