Home
last modified time | relevance | path

Searched full:subtree (Results 1 – 25 of 167) sorted by relevance

1234567

/openbmc/phosphor-objmgr/libmapper/
H A Dmapper.c431 struct mapper_async_subtree* subtree = userdata; in async_subtree_timeout_callback() local
433 sd_event_source_unref(subtree->event_source); in async_subtree_timeout_callback()
435 subtree->conn, NULL, "xyz.openbmc_project.ObjectMapper", in async_subtree_timeout_callback()
438 async_subtree_getpaths_callback, subtree, "sias", subtree->namespace, 0, in async_subtree_timeout_callback()
439 1, subtree->interface); in async_subtree_timeout_callback()
442 async_subtree_done(r, subtree); in async_subtree_timeout_callback()
452 struct mapper_async_subtree* subtree = userdata; in async_subtree_getpaths_callback() local
455 if (subtree->finished) in async_subtree_getpaths_callback()
465 if (subtree->op == MAPPER_OP_REMOVE) in async_subtree_getpaths_callback()
475 if ((r == EBUSY || r == ENOBUFS) && subtree->retry < mapper_busy_retries) in async_subtree_getpaths_callback()
[all …]
H A Dapp.c130 mapper_async_subtree* subtree = NULL; in subtree_main() local
135 "Usage: %s subtree-remove " in subtree_main()
174 &subtree, op); in subtree_main()
177 fprintf(stderr, "Error configuring subtree list: %s\n", strerror(-r)); in subtree_main()
244 " subtree-remove\n" in main()
260 if (!strcmp(argv[1], "subtree-remove")) in main()
/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/bmcweb/test/redfish-core/include/utils/
H A Dsystems_utils_test.cpp28 const dbus::utility::MapperGetSubTreeResponse subtree = { in TEST() local
38 EXPECT_TRUE(indexMatchingSubTreeMapObjectPath(asyncResp, 1, subtree, in TEST()
40 EXPECT_TRUE(indexMatchingSubTreeMapObjectPath(asyncResp, 2, subtree, in TEST()
42 EXPECT_TRUE(indexMatchingSubTreeMapObjectPath(asyncResp, 10, subtree, in TEST()
44 EXPECT_TRUE(indexMatchingSubTreeMapObjectPath(asyncResp, 999, subtree, in TEST()
46 EXPECT_FALSE(indexMatchingSubTreeMapObjectPath(asyncResp, 100, subtree, in TEST()
48 EXPECT_FALSE(indexMatchingSubTreeMapObjectPath(asyncResp, 11, subtree, in TEST()
50 EXPECT_FALSE(indexMatchingSubTreeMapObjectPath(asyncResp, 0, subtree, in TEST()
53 indexMatchingSubTreeMapObjectPath(asyncResp, 1, subtree, objectPath, in TEST()
58 indexMatchingSubTreeMapObjectPath(asyncResp, 10, subtree, objectPath, in TEST()
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/
H A DObjectMapper.interface.yaml54 - name: subtree
57 The subtree path for which the result should be fetched.
61 The maximum subtree depth for which results should be fetched.
76 Obtain an array of paths where array elements are in subtree.
78 - name: subtree
81 The subtree path for which the result should be fetched.
85 The maximum subtree depth for which results should be fetched.
107 - name: subtree
110 The subtree path for which the result should be fetched.
114 The maximum subtree depth for which results should be fetched.
[all …]
/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 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/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/phosphor-objmgr/src/
H A Dhandler.hpp34 * @param reqPath Base path to search for the subtree
56 * @param reqPath Base path to search for the subtree
77 * @param id Identifier to search for the subtree
78 * @param objectPath Base path to search for the subtree
79 * @param subtreeInterfaces Interface filter for the subtree
101 * @param id Identifier to search for the subtree
102 * @param objectPath Base path to search for the subtree
103 * @param subtreeInterfaces Interface filter for the subtree
/openbmc/bmcweb/redfish-core/include/utils/
H A Dcollection.hpp97 * @param[in] subtree D-Bus base path to constrain search to.
106 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()
/openbmc/docs/architecture/
H A Dobject-mapper.md61 subtree that implement a certain interface. An optional list of interfaces may
64 objects/services/interfaces in the subtree are returned.
68 - param: subtree - the root of the tree. Using "/" will search the whole tree
122 subtree that implement a certain interface and an endpoint of the input
125 interfaces are passed in, then all objects/services/interfaces in the subtree
131 - param: subtree - the root of the tree. Using "/" will search the whole tree
196 subtree that implement certain interfaces and endpoints that end by input `id`.
199 in, then all objects/services/interfaces in the subtree and associated endpoint
282 - param: subtree - the root of the tree. Using "/" will search the whole tree
289 - array of object paths in that subtree
[all …]
/openbmc/phosphor-dbus-monitor/mslverify/
H A Dverify.cpp76 // with a mapper subtree query. For each object, validate that in main()
82 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/linux/include/linux/
Dinterval_tree_generic.h
/openbmc/linux/tools/include/linux/
Dinterval_tree_generic.h
/openbmc/bmcweb/redfish-core/lib/
H A Dstorage.hpp157 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterSystemsStorageGetSubtree() argument
167 subtree, in afterSystemsStorageGetSubtree()
173 if (storage == subtree.end()) in afterSystemsStorageGetSubtree()
221 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterSubtree() argument
231 subtree, in afterSubtree()
237 if (storage == subtree.end()) in afterSubtree()
584 const dbus::utility::MapperGetSubTreeResponse& subtree) in getDriveItemProperties()
594 subtree, in getDriveItemProperties()
601 if (drive == subtree.end()) in getDriveItemProperties()
682 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterGetSubtreeSystemsStorageDrive()
637 afterGetSubtreeSystemsStorageDrive(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & driveId,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreeResponse & subtree) afterGetSubtreeSystemsStorageDrive() argument
735 afterChassisDriveCollectionSubtreeGet(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreeResponse & subtree) afterChassisDriveCollectionSubtreeGet() argument
838 buildDrive(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & driveName,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreeResponse & subtree) buildDrive() argument
901 __anoncaeb4f4c0a02( const boost::system::error_code& ec, const dbus::utility::MapperGetSubTreeResponse& subtree) matchAndFillDrive() argument
922 __anoncaeb4f4c0b02(const boost::system::error_code& ec, const dbus::utility::MapperGetSubTreeResponse& subtree) handleChassisDriveGet() argument
1065 getStorageControllerHandler(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & controllerId,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreeResponse & subtree) getStorageControllerHandler() argument
1194 __anoncaeb4f4c1002(const boost::system::error_code& ec, const dbus::utility::MapperGetSubTreeResponse& subtree) handleSystemsStorageControllerGet() argument
[all...]
H A Dsystems.hpp342 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterGetInventory()
354 object : subtree) in afterGetAssetTag()
1379 const dbus::utility::MapperGetSubTreeResponse& subtree) in getStopBootOnFault()
1388 if (subtree.empty()) in getStopBootOnFault()
1401 subtree, path, service)) in getTrustedModuleRequiredToBootCallback() argument
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)
364 afterSystemGetSubTree(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreeResponse & subtree) afterSystemGetSubTree() argument
1499 setTrustedModuleRequiredToBootCallback(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const uint64_t computerSystemIndex,const bool tpmRequired,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreeResponse & subtree) setTrustedModuleRequiredToBootCallback() argument
1801 __anoncc7ad08f1402(const boost::system::error_code& ec, const dbus::utility::MapperGetSubTreeResponse& subtree) setAssetTag() argument
2195 __anoncc7ad08f1602(const boost::system::error_code& ec, const dbus::utility::MapperGetSubTreeResponse& subtree) getPowerMode() argument
2325 __anoncc7ad08f1802(const boost::system::error_code& ec, const dbus::utility::MapperGetSubTreeResponse& subtree) setPowerMode() argument
2630 __anoncc7ad08f1a02(const boost::system::error_code& ec, const dbus::utility::MapperGetSubTreeResponse& subtree) getIdlePowerSaver() argument
2730 __anoncc7ad08f1c02(const boost::system::error_code& ec, const dbus::utility::MapperGetSubTreeResponse& subtree) setIdlePowerSaver() argument
[all...]
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 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 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 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()
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dsdrutils.cpp79 static void filterSensors(SensorSubTree& subtree) in filterSensors() argument
97 subtree.erase(std::remove_if(subtree.begin(), subtree.end(), in filterSensors()
109 subtree.end()); in filterSensors()
112 uint16_t getSensorSubtree(std::shared_ptr<SensorSubTree>& subtree) in getSensorSubtree() argument
131 subtree = sensorTreePtr; in getSensorSubtree()
156 lg2::error("Failed to update subtree, path: {PATH}, error: {ERROR}", in getSensorSubtree()
216 subtree = sensorTreePtr; in getSensorSubtree()
274 bool getSensorSubtree(SensorSubTree& subtree) in getSensorSubtree() argument
283 subtree = *sensorTree; in getSensorSubtree()
/openbmc/bmcweb/src/
H A Ddbus_utility.cpp86 const MapperGetSubTreeResponse& subtree) { callback(ec, subtree); }, in getAllProperties()
121 const MapperGetSubTreeResponse& subtree) { callback(ec, subtree); }, in getSubTreePaths()
158 const MapperGetSubTreeResponse& subtree) { callback(ec, subtree); }, in getAssociatedSubTreePaths()
113 __anon364fd45a0202( const boost::system::error_code& ec, const MapperGetSubTreeResponse& subtree) getSubTree() argument
148 __anon364fd45a0402( const boost::system::error_code& ec, const MapperGetSubTreeResponse& subtree) getAssociatedSubTree() argument
185 __anon364fd45a0602( const boost::system::error_code& ec, const MapperGetSubTreeResponse& subtree) getAssociatedSubTreeById() argument
/openbmc/phosphor-fan-presence/
H A Dsdbusplus.hpp178 /** @brief Get subtree from the mapper without checking response. */
198 /** @brief Get subtree from the mapper without checking response,
219 /** @brief Get subtree from the mapper. */
227 … "Empty response from mapper GetSubTree, SubTree={SUBTREE}, Interface={INTERFACE}, Depth={DEPTH}", in getSubTree()
228 "SUBTREE", path, "INTERFACE", interface, "DEPTH", depth); in getSubTree()
234 /** @brief Get subtree paths from the mapper without checking response. */
254 /** @brief Get subtree paths from the mapper. */
262 …"Empty response from mapper GetSubTreePaths, SubTree={SUBTREE}, Interface={INTERFACE}, Depth={DEPT… in getSubTreePaths()
263 "SUBTREE", path, "INTERFACE", interface, "DEPTH", depth); in getSubTreePaths()
/openbmc/linux/lib/
Drbtree_test.c

1234567