Home
last modified time | relevance | path

Searched refs:objPath (Results 1 – 25 of 215) sorted by relevance

123456789

/openbmc/sdbusplus/test/server/
H A Dobject.cpp33 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 Dca_certs_manager_test.cpp63 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 …]
H A Dcerts_manager_test.cpp271 auto objPath = std::string(objectNamePrefix) + '/' + in TEST_F() local
276 ManagerInTest manager(bus, event, objPath.c_str(), type, verifyUnit, in TEST_F()
294 auto objPath = std::string(objectNamePrefix) + '/' + in TEST_F() local
299 ManagerInTest manager(bus, event, objPath.c_str(), type, verifyUnit, in TEST_F()
316 auto objPath = std::string(objectNamePrefix) + '/' + in TEST_F() local
321 ManagerInTest manager(bus, event, objPath.c_str(), type, verifyUnit, in TEST_F()
359 auto objPath = std::string(objectNamePrefix) + '/' + in TEST_F() local
364 ManagerInTest manager(bus, event, objPath.c_str(), type, verifyUnit, in TEST_F()
400 auto objPath = std::string(objectNamePrefix) + '/' + in TEST_F() local
405 ManagerInTest manager(bus, event, objPath.c_str(), type, verifyUnit, in TEST_F()
[all …]
/openbmc/pldm/fw-update/
H A Dactivation.hpp38 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/
H A Dsnmp_conf_manager.cpp27 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 Dsnmp_client.hpp48 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-snmp/test/
H A Dtest_snmp_serialize.cpp44 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 Dtest_snmp_client.cpp41 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-pid-control/test/
H A Dsensor_host_unittest.cpp41 const char* objPath = "/asdf/asdf0"; in TEST() local
50 SetupDbusObject(&sdbus_mock, defer, objPath, interface, properties, &d); in TEST()
54 sd_bus_emit_object_removed(IsNull(), StrEq(objPath))) in TEST()
58 HostSensor::createTemp(name, timeout, bus_mock, objPath, defer); in TEST()
70 const char* objPath = "/asdf/asdf0"; in TEST() local
77 SetupDbusObject(&sdbus_mock, defer, objPath, interface, properties, &d); in TEST()
80 sd_bus_emit_object_removed(IsNull(), StrEq(objPath))) in TEST()
84 HostSensor::createTemp(name, timeout, bus_mock, objPath, defer); in TEST()
95 IsNull(), StrEq(objPath), StrEq(interface), NotNull())) in TEST()
/openbmc/phosphor-hwmon/test/
H A Dfanpwm_unittest.cpp60 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-debug-collector/
H A Dbmc_dump_entry.hpp57 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 Ddump_manager_faultlog.cpp59 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-virtual-sensor/
H A DvirtualSensor.hpp97 VirtualSensor(sdbusplus::bus_t& bus, const char* objPath, in VirtualSensor() argument
99 ValueObject(bus, objPath, action::defer_emit), bus(bus), name(name) in VirtualSensor()
101 initVirtualSensor(sensorConfig, objPath); in VirtualSensor()
115 VirtualSensor(sdbusplus::bus_t& bus, const char* objPath, in VirtualSensor() argument
119 ValueObject(bus, objPath, action::defer_emit), bus(bus), name(name), in VirtualSensor()
122 initVirtualSensor(ifacemap, objPath, type, calculationType); in VirtualSensor()
184 const std::string& objPath);
190 const std::string& objPath,
198 void createThresholds(const Json& threshold, const std::string& objPath);
259 void createAssociation(const std::string& objPath,
H A DvirtualSensor.cpp223 const std::string& objPath) in initVirtualSensor() argument
230 createThresholds(threshold, objPath); in initVirtualSensor()
253 std::make_unique<AssociationObject>(bus, objPath.c_str()); in initVirtualSensor()
358 void VirtualSensor::createAssociation(const std::string& objPath, in createAssociation() argument
361 if (objPath.empty() || entityPath.empty()) in createAssociation()
370 std::make_unique<AssociationObject>(bus, objPath.c_str()); in createAssociation()
375 const InterfaceMap& interfaceMap, const std::string& objPath, in initVirtualSensor() argument
396 createThresholds(thresholds, objPath); in initVirtualSensor()
401 createAssociation(objPath, entityPath); in initVirtualSensor()
480 const std::string& objPath) in createThresholds() argument
[all …]
/openbmc/phosphor-psu-code-mgmt/src/
H A Dversion.hpp75 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)), bus(bus), objPath(objPath), in Version()
87 deleteObject = std::make_unique<Delete>(bus, objPath, *this); in Version()
149 std::string objPath; member in phosphor::software::updater::Version
/openbmc/phosphor-networkd/src/
H A Dinventory_mac.cpp111 DbusObjectPath objPath; in getfromInventory() local
116 objPath = objectTree.begin()->first; in getfromInventory()
130 objPath = object.first; in getfromInventory()
136 if (objPath.empty()) in getfromInventory()
144 auto method = bus.new_method_call(service.c_str(), objPath.c_str(), in getfromInventory()
154 "DBUS_PATH", objPath, "DBUS_INTF", invNetworkIntf); in getfromInventory()
219 sdbusplus::message::object_path objPath; in registerSignals() local
220 m.read(objPath, interfacesProperties); in registerSignals()
224 if (objPath.str.find(pattern.value()) != std::string::npos) in registerSignals()
292 sdbusplus::message::object_path objPath; in watchEthernetInterface() local
[all …]
/openbmc/ibm-logging/
H A Ddbus.cpp34 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-host-ipmid/libipmid/
H A Dutils.cpp86 const std::string& objPath, const std::string& interface, in getDbusProperty() argument
92 auto method = bus.new_method_call(service.c_str(), objPath.c_str(), in getDbusProperty()
105 const std::string& objPath, const std::string& interface, in getAllDbusProperties() argument
110 auto method = bus.new_method_call(service.c_str(), objPath.c_str(), in getAllDbusProperties()
123 const std::string& objPath) in getManagedObjects() argument
127 auto method = bus.new_method_call(service.c_str(), objPath.c_str(), in getManagedObjects()
137 const std::string& objPath, const std::string& interface, in setDbusProperty() argument
141 auto method = bus.new_method_call(service.c_str(), objPath.c_str(), in setDbusProperty()
150 "PROPERTY", property, "PATH", objPath, "INTERFACE", in setDbusProperty()
315 const std::string& objPath, const std::string& interface, in callDbusMethod() argument
[all …]
/openbmc/phosphor-led-manager/manager/
H A Dmanager.cpp212 int Manager::drivePhysicalLED(const std::string& objPath, Layout::Action action, in drivePhysicalLED() argument
224 objPath, phyLedIntf, "DutyOn", dutyOnValue); in drivePhysicalLED()
226 objPath, phyLedIntf, "Period", periodValue); in drivePhysicalLED()
230 phosphor::led::utils::DBusHandler::setProperty(objPath, phyLedIntf, in drivePhysicalLED()
237 "ERROR", e, "PATH", objPath); in drivePhysicalLED()
274 std::string objPath = std::string(phyLedPath) + it.name; in driveLedsHandler() local
277 if (drivePhysicalLED(objPath, Layout::Action::Off, it.dutyOn, in driveLedsHandler()
286 std::string objPath = std::string(phyLedPath) + it.name; in driveLedsHandler() local
289 if (drivePhysicalLED(objPath, it.action, it.dutyOn, it.period) != 0) in driveLedsHandler()
H A Dgroup.hpp41 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-host-ipmid/include/ipmid/
H A Dutils.hpp137 const std::string& objPath, const std::string& interface,
151 const std::string& objPath, const std::string& interface,
163 const std::string& objPath);
174 const std::string& objPath, const std::string& interface,
282 Context::ptr ctx, const std::string& service, const std::string& objPath, in getDbusProperty() argument
288 ctx->yield, ec, service.c_str(), objPath.c_str(), PROP_INTF, METHOD_GET, in getDbusProperty()
315 Context::ptr ctx, const std::string& service, const std::string& objPath,
328 Context::ptr ctx, const std::string& service, const std::string& objPath,
376 Context::ptr ctx, const std::string& service, const std::string& objPath,
402 Context::ptr ctx, const std::string& service, const std::string& objPath,
[all …]
/openbmc/phosphor-watchdog/src/
H A Dwatchdog.hpp68 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-debug-collector/dump-extensions/openpower-dumps/
H A Ddump_manager_system.cpp101 auto objPath = std::filesystem::path(baseEntryPath) / idString; in notify() local
112 bus, objPath.c_str(), id, timeStamp, size, dumpId, in notify()
122 "ERROR", e, "OBJECT_PATH", objPath, "ID", id, "TIMESTAMP", in notify()
203 auto objPath = std::filesystem::path(baseEntryPath) / idString; in createDump() local
213 bus, objPath.c_str(), id, timeStamp, 0, INVALID_SOURCE_ID, in createDump()
221 "ERROR", e, "OBJECT_PATH", objPath, "ID", id); in createDump()
226 return objPath.string(); in createDump()
H A Ddump_manager_resource.cpp77 auto objPath = std::filesystem::path(baseEntryPath) / idString; in notify() local
90 bus, objPath.c_str(), id, timeStamp, size, dumpId, in notify()
101 "ERROR", e, "OBJECT_PATH", objPath, "ID", id, "TIMESTAMP", in notify()
132 auto objPath = std::filesystem::path(baseEntryPath) / idString; in createDump() local
202 bus, objPath.c_str(), id, timeStamp, 0, INVALID_SOURCE_ID, in createDump()
211 "ERROR", e, "OBJECT_PATH", objPath, "VSP_STRING", vspString, "ID", in createDump()
217 return objPath.string(); in createDump()
/openbmc/pldm/requester/
H A Dmctp_endpoint_discovery.cpp174 ObjectPath objPath; in getAddedMctpInfos() local
182 msg.read(objPath, interfaces); in getAddedMctpInfos()
191 const Availability& availability = getEndpointConnectivityProp(objPath.str); in getAddedMctpInfos()
197 objPath.str.c_str(), EndpointUUID); in getAddedMctpInfos()
198 uuid = getEndpointUUIDProp(service, objPath.str); in getAddedMctpInfos()
283 std::string objPath{}; in propertiesChangedCb() local
289 objPath = msg.get_path(); in propertiesChangedCb()
306 service = pldm::utils::DBusHandler().getService(objPath.c_str(), in propertiesChangedCb()
309 getMctpEndpointProps(service, objPath); in propertiesChangedCb()
316 const UUID& uuid = getEndpointUUIDProp(service, objPath); in propertiesChangedCb()

123456789