Home
last modified time | relevance | path

Searched refs:subtree (Results 1 – 25 of 72) sorted by relevance

123

/openbmc/phosphor-objmgr/libmapper/
H A Dmapper.c419 struct mapper_async_subtree* subtree = userdata; in async_subtree_timeout_callback() local
421 sd_event_source_unref(subtree->event_source); in async_subtree_timeout_callback()
423 subtree->conn, NULL, "xyz.openbmc_project.ObjectMapper", in async_subtree_timeout_callback()
426 async_subtree_getpaths_callback, subtree, "sias", subtree->namespace, 0, in async_subtree_timeout_callback()
427 1, subtree->interface); in async_subtree_timeout_callback()
430 async_subtree_done(r, subtree); in async_subtree_timeout_callback()
440 struct mapper_async_subtree* subtree = userdata; in async_subtree_getpaths_callback() local
443 if (subtree->finished) in async_subtree_getpaths_callback()
453 if (subtree->op == MAPPER_OP_REMOVE) in async_subtree_getpaths_callback()
463 if ((r == EBUSY || r == ENOBUFS) && subtree->retry < mapper_busy_retries) in async_subtree_getpaths_callback()
[all …]
/openbmc/bmcweb/test/redfish-core/include/utils/
H A Dsystems_utils_test.cpp27 const dbus::utility::MapperGetSubTreeResponse subtree = { in TEST() local
38 asyncResp, 1, subtree, objectPath, service)); in TEST()
40 asyncResp, 2, subtree, objectPath, service)); in TEST()
42 asyncResp, 10, subtree, objectPath, service)); in TEST()
44 asyncResp, 999, subtree, objectPath, service)); in TEST()
46 asyncResp, 100, subtree, objectPath, service)); in TEST()
48 asyncResp, 11, subtree, objectPath, service)); in TEST()
50 asyncResp, 0, subtree, objectPath, service)); in TEST()
52 systems_utils::indexMatchingSubTreeMapObjectPath(asyncResp, 1, subtree, in TEST()
57 systems_utils::indexMatchingSubTreeMapObjectPath(asyncResp, 10, subtree, in TEST()
[all …]
/openbmc/pyphosphor/obmc/utils/
H A Dpathtree.py19 def __init__(self, path_tree, subtree, depth): argument
23 self.subtree = ['/'] + list(filter(bool, subtree.split('/')))
26 for k in self.subtree:
30 raise KeyError(subtree)
44 path = self.subtree[0] + '/'.join(self.subtree[1:] + self.path)
80 def __init__(self, path_tree, subtree, depth): argument
81 super(PathTreeKeyIterator, self).__init__(path_tree, subtree, depth)
187 def keys(self, subtree='/', depth=None): argument
188 return [x for x in self.iterkeys(subtree, depth)]
190 def values(self, subtree='/', depth=None): argument
[all …]
H A Dtestpathtree.py255 self.assertEquals(set(['/a/b']), set(pt.keys(subtree='/a')))
262 self.assertEquals(set([2]), set(pt.values(subtree='/a')))
269 self.assertEquals(set([('/a/b', 2)]), set(pt.items(subtree='/a')))
277 self.assertEquals(set([('/a/b', 2)]), set(pt.dataitems(subtree='/a')))
285 self.assertEquals(set(['/a/b']), set(pt.keys(subtree='/a', depth=1)))
293 self.assertEquals(set([2]), set(pt.values(subtree='/a', depth=1)))
301 self.assertEquals(set([('/a/b', 2)]), set(pt.items(subtree='/a', depth=1)))
310 self.assertEquals(set([('/a/b', 2)]), set(pt.dataitems(subtree='/a', depth=1)))
/openbmc/phosphor-objmgr/src/test/
H A Dhandler.cpp216 std::vector<InterfaceMapType::value_type> subtree = in TEST_F() local
218 ASSERT_TRUE(subtree.empty()); in TEST_F()
226 static void verifySubtree(std::span<InterfaceMapType::value_type> subtree) in verifySubtree() argument
228 ASSERT_EQ(subtree.size(), 2); in verifySubtree()
229 ConnectionNames connection = subtree[0].second; in verifySubtree()
234 connection = subtree[1].second; in verifySubtree()
247 std::vector<InterfaceMapType::value_type> subtree = in TEST_F() local
249 verifySubtree(subtree); in TEST_F()
252 subtree = getSubTree(interfaceMap, path0, 0, interfaces); in TEST_F()
253 verifySubtree(subtree); in TEST_F()
[all …]
/openbmc/bmcweb/redfish-core/include/utils/
H A Dmanager_utils.hpp80 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterGetValidManagerPath() argument
82 if (ec || subtree.empty()) in afterGetValidManagerPath()
91 if (subtree.size() > 1) in afterGetValidManagerPath()
105 callback(ec, subtree[0].first, subtree[0].second); in afterGetValidManagerPath()
119 const dbus::utility::MapperGetSubTreeResponse& subtree) { in getValidManagerPath() argument
121 subtree); in getValidManagerPath()
H A Dcollection.hpp106 std::span<const std::string_view> interfaces, const std::string& subtree, in getCollectionToKey() argument
111 subtree, 0, interfaces, in getCollectionToKey()
118 std::span<const std::string_view> interfaces, const std::string& subtree) in getCollectionMembers() argument
120 getCollectionToKey(asyncResp, collectionPath, interfaces, subtree, in getCollectionMembers()
H A Dsw_utils.hpp178 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterGetSubtree() argument
190 BMCWEB_LOG_DEBUG("Found {} images", subtree.size()); in afterGetSubtree()
195 obj : subtree) in afterGetSubtree()
280 const dbus::utility::MapperGetSubTreeResponse& subtree) { in afterAssociatedEndpoints() argument
283 subtree); in afterAssociatedEndpoints()
/openbmc/phosphor-state-manager/target_files/
H A Dobmc-power-start-pre@.target5 Wants=mapper-subtree-remove@-xyz-openbmc\x5fproject-software\x3Axyz.openbmc_project.Software.Activa…
6 After=mapper-subtree-remove@-xyz-openbmc\x5fproject-software\x3Axyz.openbmc_project.Software.Activa…
7 Wants=mapper-subtree-remove@-xyz-openbmc\x5fproject-logging\x3Axyz.openbmc_project.Logging.ErrorBlo…
8 After=mapper-subtree-remove@-xyz-openbmc\x5fproject-logging\x3Axyz.openbmc_project.Logging.ErrorBlo…
/openbmc/bmcweb/redfish-core/lib/
H A Dsystems.hpp342 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterSystemGetSubTree() argument
354 object : subtree) in afterSystemGetSubTree()
1379 const dbus::utility::MapperGetSubTreeResponse& subtree) in getTrustedModuleRequiredToBootCallback() argument
1388 if (subtree.empty()) in getTrustedModuleRequiredToBootCallback()
1401 asyncResp, computerSystemIndex, subtree, path, service)) in getTrustedModuleRequiredToBootCallback()
1410 if (subtree[0].first.empty() || subtree[0].second.size() != 1) in getTrustedModuleRequiredToBootCallback()
1417 path = subtree[0].first; in getTrustedModuleRequiredToBootCallback()
1418 service = subtree[0].second.begin()->first; in getTrustedModuleRequiredToBootCallback()
1477 const dbus::utility::MapperGetSubTreeResponse& subtree) in setTrustedModuleRequiredToBootCallback() argument
1485 if (subtree.empty()) in setTrustedModuleRequiredToBootCallback()
[all …]
H A Dled.hpp248 const dbus::utility::MapperGetSubTreeResponse& subtree, in handleLedGroupSubtree() argument
260 if (subtree.empty()) in handleLedGroupSubtree()
270 if (subtree.size() > 1) in handleLedGroupSubtree()
275 objPath, subtree.size()); in handleLedGroupSubtree()
280 const auto& [ledGroupPath, serviceMap] = *subtree.begin(); in handleLedGroupSubtree()
302 const dbus::utility::MapperGetSubTreeResponse& subtree) { in getLedGroupPath() argument
303 handleLedGroupSubtree(objPath, ec, subtree, callback); in getLedGroupPath()
H A Dstorage_chassis.hpp310 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterGetSubtreeSystemsStorageDrive() argument
320 subtree, in afterGetSubtreeSystemsStorageDrive()
327 if (drive == subtree.end()) in afterGetSubtreeSystemsStorageDrive()
368 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterChassisDriveCollectionSubtreeGet() argument
382 for (const auto& [path, connectionNames] : subtree) in afterChassisDriveCollectionSubtreeGet()
464 const dbus::utility::MapperGetSubTreeResponse& subtree) in buildDrive() argument
474 for (const auto& [path, connectionNames] : subtree) in buildDrive()
527 const dbus::utility::MapperGetSubTreeResponse& subtree) { in matchAndFillDrive() argument
528 buildDrive(asyncResp, chassisId, driveName, ec, subtree); in matchAndFillDrive()
548 const dbus::utility::MapperGetSubTreeResponse& subtree) { in handleChassisDriveGet() argument
[all …]
H A Dpcie_slots.hpp177 const dbus::utility::MapperGetSubTreeResponse& subtree) in onMapperSubtreeDone() argument
185 if (subtree.empty()) in onMapperSubtreeDone()
201 for (const auto& pathServicePair : subtree) in onMapperSubtreeDone()
241 const dbus::utility::MapperGetSubTreeResponse& subtree) { in handlePCIeSlotCollectionGet() argument
242 onMapperSubtreeDone(asyncResp, chassisID, ec, subtree); in handlePCIeSlotCollectionGet()
H A Dredfish_util.hpp72 const dbus::utility::MapperGetSubTreeResponse& subtree) { in getMainChassisId() argument
78 if (subtree.empty()) in getMainChassisId()
84 std::size_t idPos = subtree[0].first.rfind('/'); in getMainChassisId()
86 (idPos + 1) >= subtree[0].first.size()) in getMainChassisId()
92 std::string chassisId = subtree[0].first.substr(idPos + 1); in getMainChassisId()
H A Dstorage_controller.hpp54 const dbus::utility::MapperGetSubTreeResponse& subtree) in getStorageControllerHandler() argument
56 if (ec || subtree.empty()) in getStorageControllerHandler()
63 for (const auto& [path, interfaceDict] : subtree) in getStorageControllerHandler()
146 const dbus::utility::MapperGetSubTreeResponse& subtree) { in handleSystemsStorageControllerGet() argument
147 getStorageControllerHandler(asyncResp, controllerId, ec, subtree); in handleSystemsStorageControllerGet()
H A Dpower_supply.hpp171 const dbus::utility::MapperGetSubTreeResponse& subtree, in afterGetValidPowerSupplyPath()
192 for (const auto& [objectPath, service] : subtree) in afterGetValidPowerSupplyPath()
219 const dbus::utility::MapperGetSubTreeResponse& subtree) { in getValidPowerSupplyPath()
220 afterGetValidPowerSupplyPath(asyncResp, powerSupplyId, ec, subtree, in getValidPowerSupplyPath()
396 const dbus::utility::MapperGetSubTreeResponse& subtree) in handleGetEfficiencyResponse()
409 if (subtree.empty()) in handleGetEfficiencyResponse()
415 if (subtree.size() != 1) in handleGetEfficiencyResponse()
419 subtree.size()); in handleGetEfficiencyResponse()
424 const auto& [path, serviceMap] = *subtree.begin(); in handlePowerSupplyAttributesSubTreeResponse()
443 const dbus::utility::MapperGetSubTreeResponse& subtree) { in handlePowerSupplyAttributesSubTreeResponse()
170 afterGetValidPowerSupplyPath(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & powerSupplyId,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreeResponse & subtree,const std::function<void (const std::string & powerSupplyPath,const std::string & service)> & callback) afterGetValidPowerSupplyPath() argument
218 __anonc983e6900302( const boost::system::error_code& ec, const dbus::utility::MapperGetSubTreeResponse& subtree) getValidPowerSupplyPath() argument
426 handlePowerSupplyAttributesSubTreeResponse(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreeResponse & subtree) handlePowerSupplyAttributesSubTreeResponse() argument
473 __anonc983e6900a02(const boost::system::error_code& ec, const dbus::utility::MapperGetSubTreeResponse& subtree) getEfficiencyPercent() argument
[all...]
H A Dstorage.hpp135 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterSystemsStorageGetSubtree() argument
145 subtree, in afterSystemsStorageGetSubtree()
151 if (storage == subtree.end()) in afterSystemsStorageGetSubtree()
199 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterSubtree() argument
209 subtree, in afterSubtree()
215 if (storage == subtree.end()) in afterSubtree()
/openbmc/phosphor-dbus-monitor/mslverify/
H A Dverify.cpp82 auto subtree = util::sdbusplus::callMethodAndRead<SubTreeType>( in main() local
89 auto result = std::all_of(subtree.begin(), subtree.end(), in main()
/openbmc/phosphor-objmgr/src/systemd/
H A Dmapper-subtree-remove@.service.in2 Description=mapper subtree-remove %I
9 ExecStart=@BINDIR@/mapper subtree-remove %I
/openbmc/bmcweb/src/
H A Ddbus_utility.cpp85 const MapperGetSubTreeResponse& subtree) { callback(ec, subtree); }, in getSubTree() argument
120 const MapperGetSubTreeResponse& subtree) { callback(ec, subtree); }, in getAssociatedSubTree() argument
157 const MapperGetSubTreeResponse& subtree) { callback(ec, subtree); }, in getAssociatedSubTreeById() argument
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dsdrutils.cpp90 static void filterSensors(SensorSubTree& subtree) in filterSensors() argument
108 subtree.erase(std::remove_if(subtree.begin(), subtree.end(), in filterSensors()
120 subtree.end()); in filterSensors()
123 uint16_t getSensorSubtree(std::shared_ptr<SensorSubTree>& subtree) in getSensorSubtree() argument
142 subtree = sensorTreePtr; in getSensorSubtree()
224 subtree = sensorTreePtr; in getSensorSubtree()
282 bool getSensorSubtree(SensorSubTree& subtree) in getSensorSubtree() argument
291 subtree = *sensorTree; in getSensorSubtree()
/openbmc/ibm-logging/
H A Dmanager.cpp201 DbusSubtree subtree; in createCalloutObjects() local
214 if (subtree.empty()) in createCalloutObjects()
216 subtree = getSubtree(bus, "/", 0, ASSET_IFACE); in createCalloutObjects()
217 if (subtree.empty()) in createCalloutObjects()
223 auto service = getService(callout, ASSET_IFACE, subtree); in createCalloutObjects()
/openbmc/bmcweb/features/google/
H A Dgoogle_service_root.hpp81 const dbus::utility::MapperGetSubTreeResponse& subtree) in hothGetSubtreeCallback() argument
88 for (const auto& [path, services] : subtree) in hothGetSubtreeCallback()
120 const dbus::utility::MapperGetSubTreeResponse& subtree) { in resolveRoT() argument
122 subtree); in resolveRoT()
/openbmc/estoraged/src/
H A DgetConfig.cpp24 constexpr const char* subtree = "GetSubTree"; variable
100 mapper::busName, mapper::path, mapper::interface, mapper::subtree, "/", in getConfiguration()
/openbmc/s2600wf-misc/subprojects/hsbp-manager/src/
H A Dhsbp_manager.cpp1565 const GetSubTreeType& subtree) { in updateAssets() argument
1577 for (const auto& [path, objDict] : subtree) in updateAssets()
1762 mapper::busName, mapper::path, mapper::interface, mapper::subtree, "/", in updateAssets()
1777 const GetSubTreeType& subtree) { in populateMuxes() argument
1785 for (const auto& [path, objDict] : subtree) in populateMuxes()
1852 mapper::busName, mapper::path, mapper::interface, mapper::subtree, in populateMuxes()
1865 const GetSubTreeType& subtree) { in populateHsbpBackplanes() argument
1874 if (subtree.empty()) in populateHsbpBackplanes()
1884 for (const auto& [path, objDict] : subtree) in populateHsbpBackplanes()
1952 mapper::busName, mapper::path, mapper::interface, mapper::subtree, "/", in populateHsbpBackplanes()
[all …]

123