Home
last modified time | relevance | path

Searched refs:objectPath (Results 1 – 25 of 202) sorted by relevance

123456789

/openbmc/phosphor-host-ipmid/test/session/
H A Dclosesession_unittest.cpp9 std::string objectPath = in TEST() local
13 parseCloseSessionInputPayload(objectPath, sessionId, sessionHandle)); in TEST()
27 std::string objectPath = "/xyz/openbmc_project/ipmi/session/eth0/12a4567d"; in TEST() local
30 parseCloseSessionInputPayload(objectPath, sessionId, sessionHandle)); in TEST()
37 std::string objectPath; in TEST() local
40 parseCloseSessionInputPayload(objectPath, sessionId, sessionHandle)); in TEST()
45 std::string objectPath = in TEST() local
50 EXPECT_TRUE(isSessionObjectMatched(objectPath, sessionId, sessionHandle)); in TEST()
55 std::string objectPath = in TEST() local
60 EXPECT_TRUE(isSessionObjectMatched(objectPath, sessionId, sessionHandle)); in TEST()
[all …]
/openbmc/bmcweb/test/redfish-core/include/utils/
H A Dsystems_utils_test.cpp24 std::string objectPath; 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()
53 objectPath, service); in TEST()
54 EXPECT_EQ(objectPath, "/xyz/openbmc_project/control/host1"); in TEST()
[all …]
/openbmc/phosphor-modbus/common/
H A Devents.cpp26 sdbusplus::message::object_path objectPath, EventLevel level, double value, in generateSensorReadingEvent() argument
35 objectPath.str + ".threshold." + eventLevelToName.at(level); in generateSensorReadingEvent()
46 ctx, error_intf::ReadingCritical("SENSOR_NAME", objectPath, in generateSensorReadingEvent()
53 ctx, error_intf::ReadingWarning("SENSOR_NAME", objectPath, in generateSensorReadingEvent()
69 "SENSOR_NAME", objectPath, "READING_VALUE", in generateSensorReadingEvent()
81 sdbusplus::message::object_path objectPath, bool asserted) in generateSensorFailureEvent() argument
87 auto eventName = objectPath.str + ".SensorFailure"; in generateSensorFailureEvent()
95 ctx, error_intf::SensorFailure("SENSOR_NAME", objectPath)); in generateSensorFailureEvent()
106 ctx, event_intf::SensorRestored("SENSOR_NAME", objectPath)); in generateSensorFailureEvent()
116 sdbusplus::message::object_path objectPath, std::string additionalInfo, in generateControllerFailureEvent() argument
[all …]
H A Devents.hpp25 auto generateSensorReadingEvent(sdbusplus::message::object_path objectPath,
30 auto generateSensorFailureEvent(sdbusplus::message::object_path objectPath,
34 sdbusplus::message::object_path objectPath, std::string additionalInfo,
37 auto generatePowerFaultEvent(sdbusplus::message::object_path objectPath,
41 auto generateFilterFailureEvent(sdbusplus::message::object_path objectPath,
44 auto generatePumpFailureEvent(sdbusplus::message::object_path objectPath,
47 auto generateFanFailureEvent(sdbusplus::message::object_path objectPath,
50 auto generateLeakDetectedEvent(sdbusplus::message::object_path objectPath,
H A Dentity_manager_interface.cpp56 for (const auto& [objectPath, interfaceConfig] : in handleInventoryGet()
64 co_await addedCallback(objectPath, interfaceName); in handleInventoryGet()
87 auto& [objectPath, inventoryData] = result; in handleInventoryAdded()
93 co_await addedCallback(objectPath, interfaceName); in handleInventoryAdded()
118 auto& [objectPath, interfaces] = result; in handleInventoryRemoved()
125 co_await removedCallback(objectPath, interfaceName); in handleInventoryRemoved()
/openbmc/phosphor-modbus/rtu/
H A Ddevice_manager.cpp49 const sdbusplus::message::object_path& objectPath, in processConfigAdded() argument
52 debug("Config added for {PATH} with {INTF}", "PATH", objectPath, "INTF", in processConfigAdded()
65 co_return co_await processPortAdded(objectPath, interfaceName); in processConfigAdded()
70 co_return co_await processInventoryAdded(objectPath); in processConfigAdded()
77 co_return co_await processDeviceAdded(objectPath, interfaceName); in processConfigAdded()
82 const sdbusplus::message::object_path& objectPath, in processPortAdded() argument
86 ctx, objectPath, interfaceName); in processPortAdded()
89 error("Failed to get Port config for {PATH}", "PATH", objectPath); in processPortAdded()
100 objectPath, "ERROR", e); in processPortAdded()
106 const sdbusplus::message::object_path& objectPath) in processInventoryAdded() argument
[all …]
H A Ddevice_manager.hpp42 auto processConfigAdded(const sdbusplus::message::object_path& objectPath,
46 auto processPortAdded(const sdbusplus::message::object_path& objectPath,
51 const sdbusplus::message::object_path& objectPath)
54 auto processDeviceAdded(const sdbusplus::message::object_path& objectPath,
58 auto processConfigRemoved(const sdbusplus::message::object_path& objectPath,
/openbmc/ibm-logging/
H A Dmanager.cpp78 void Manager::createWithRestore(const std::string& objectPath, in createWithRestore() argument
81 createObject(objectPath, interfaces); in createWithRestore()
83 restoreCalloutObjects(objectPath, interfaces); in createWithRestore()
86 void Manager::create(const std::string& objectPath, in create() argument
89 createObject(objectPath, interfaces); in create()
91 createCalloutObjects(objectPath, interfaces); in create()
94 void Manager::createObject(const std::string& objectPath, in createObject() argument
99 createPolicyInterface(objectPath, logInterface->second); in createObject()
110 void Manager::addInterface(const std::string& objectPath, InterfaceType type, in addInterface() argument
113 auto id = getEntryID(objectPath); in addInterface()
[all …]
H A Dmanager.hpp102 void create(const std::string& objectPath,
116 void createWithRestore(const std::string& objectPath,
127 void createObject(const std::string& objectPath,
168 std::string getCalloutObjectPath(const std::string& objectPath,
180 void createPolicyInterface(const std::string& objectPath,
200 void createCalloutObjects(const std::string& objectPath,
212 void restoreCalloutObjects(const std::string& objectPath,
222 inline uint32_t getEntryID(const std::string& objectPath) in getEntryID() argument
224 std::experimental::filesystem::path path(objectPath); in getEntryID()
235 void addInterface(const std::string& objectPath, InterfaceType type,
[all …]
/openbmc/dbus-sensors/src/leakdetector/
H A DLeakDetectionManager.cpp32 const sdbusplus::message::object_path& objectPath, in processInventoryAdded() argument
35 ctx.spawn(processConfigAddedAsync(objectPath)); in processInventoryAdded()
39 const sdbusplus::message::object_path& objectPath, in processInventoryRemoved() argument
42 if (!detectors.contains(objectPath.str)) in processInventoryRemoved()
46 debug("Removed detector {DETECTOR}", "DETECTOR", objectPath); in processInventoryRemoved()
47 detectors.erase(objectPath.str); in processInventoryRemoved()
51 sdbusplus::message::object_path objectPath) -> sdbusplus::async::task<> in processConfigAddedAsync() argument
53 auto res = co_await getDetectorConfig(objectPath); in processConfigAddedAsync()
60 if (detectors.contains(objectPath.str)) in processConfigAddedAsync()
68 detectors[objectPath in processConfigAddedAsync()
81 getDetectorConfig(sdbusplus::message::object_path objectPath) getDetectorConfig() argument
[all...]
H A DLeakDetectionManager.hpp35 const sdbusplus::message::object_path& objectPath,
40 const sdbusplus::message::object_path& objectPath,
44 auto processConfigAddedAsync(sdbusplus::message::object_path objectPath)
48 auto getDetectorConfig(sdbusplus::message::object_path objectPath)
/openbmc/phosphor-led-manager/
H A Dutils.cpp40 PropertyMap DBusHandler::getAllProperties(const std::string& objectPath, in getAllProperties() argument
46 auto service = getService(objectPath, interface); in getAllProperties()
52 auto method = bus.new_method_call(service.c_str(), objectPath.c_str(), in getAllProperties()
63 PropertyValue DBusHandler::getProperty(const std::string& objectPath, in getProperty() argument
70 auto service = getService(objectPath, interface); in getProperty()
76 auto method = bus.new_method_call(service.c_str(), objectPath.c_str(), in getProperty()
88 const std::string& objectPath, const std::string& interface, in setProperty() argument
92 auto service = getService(objectPath, interface); in setProperty()
98 auto method = bus.new_method_call(service.c_str(), objectPath.c_str(), in setProperty()
106 const std::string& objectPath, const std::string& interface) in getSubTreePaths() argument
[all …]
H A Dutils.hpp67 static PropertyMap getAllProperties(const std::string& objectPath,
80 static PropertyValue getProperty(const std::string& objectPath,
93 static void setProperty(const std::string& objectPath,
106 const std::string& objectPath, const std::string& interface);
/openbmc/phosphor-bmc-code-mgmt/common/src/
H A Dsoftware.cpp31 parentDevice(parent), swid(swid), objectPath(baseObjPathSoftware + swid),
81 std::string objectPath) in createInventoryAssociation() argument
88 swid, "OBJPATH", objectPath); in createInventoryAssociation()
90 "running", "ran_on", objectPath}; in createInventoryAssociation()
96 swid, "OBJPATH", objectPath); in createInventoryAssociation()
98 "activating", "activated_on", objectPath}; in createInventoryAssociation()
110 ctx, Software::objectPath.str.c_str(), in createInventoryAssociation()
124 ctx, objectPath.str.c_str(), in setVersion()
151 std::string path = objectPath; in setActivationBlocksTransition()
169 "OBJPATH", objectPath); in enableUpdate()
[all …]
/openbmc/openpower-host-ipmi-oem/scripts/
H A Dinventorysensor.mako.cpp14 objectPath = sensorDict[key]
15 sensorID = objectPath["sensorID"]
16 sensorType = objectPath["sensorType"]
17 eventReadingType = objectPath["eventReadingType"]
18 offset = objectPath["offset"]
/openbmc/bmcweb/features/openbmc_rest/
H A Dopenbmc_dbus_rest.hpp96 const std::string& processName, const std::string& objectPath, in introspectObjects() argument
108 objectPath{std::string(objectPath)}]( in introspectObjects()
115 ec.message(), processName, objectPath); in introspectObjects()
119 object["path"] = objectPath; in introspectObjects()
131 processName, objectPath); in introspectObjects()
142 if (objectPath != "/") in introspectObjects()
144 newpath += objectPath; in introspectObjects()
155 processName, objectPath, "org.freedesktop.DBus.Introspectable", in introspectObjects()
160 const std::string& objectPath, const std::string& service, in getPropertiesForEnumerate() argument
164 BMCWEB_LOG_DEBUG("getPropertiesForEnumerate {} {} {}", objectPath, service, in getPropertiesForEnumerate()
[all …]
/openbmc/phosphor-host-ipmid/include/ipmid/
H A Dsessionhelper.hpp26 bool parseCloseSessionInputPayload(const std::string& objectPath, in parseCloseSessionInputPayload() argument
29 if (objectPath.empty()) in parseCloseSessionInputPayload()
35 std::size_t ptrPosition = objectPath.rfind("/"); in parseCloseSessionInputPayload()
41 std::string sessionIdString = objectPath.substr(ptrPosition + 1); in parseCloseSessionInputPayload()
77 bool isSessionObjectMatched(const std::string& objectPath, in isSessionObjectMatched() argument
84 if (parseCloseSessionInputPayload(objectPath, sessionId, sessionHandle)) in isSessionObjectMatched()
/openbmc/dbus-sensors/src/cable-monitor/
H A DCableMonitor.cpp33 const sdbusplus::message::object_path& objectPath, in inventoryAddedHandler() argument
36 debug("Received cable added for {NAME}", "NAME", objectPath); in inventoryAddedHandler()
37 ctx.spawn(processCableAddedAsync(objectPath)); in inventoryAddedHandler()
41 const sdbusplus::message::object_path& objectPath, in inventoryRemovedHandler() argument
44 debug("Received cable removed for {NAME}", "NAME", objectPath); in inventoryRemovedHandler()
45 ctx.spawn(processCableRemovedAsync(objectPath)); in inventoryRemovedHandler()
96 auto Monitor::processCableAddedAsync(sdbusplus::message::object_path objectPath) in processCableAddedAsync() argument
99 auto cableName = objectPath.filename(); in processCableAddedAsync()
131 sdbusplus::message::object_path objectPath) -> sdbusplus::async::task<> in processCableRemovedAsync() argument
133 auto cableName = objectPath.filename(); in processCableRemovedAsync()
H A DCableMonitor.hpp32 const sdbusplus::message::object_path& objectPath,
37 const sdbusplus::message::object_path& objectPath,
48 auto processCableAddedAsync(sdbusplus::message::object_path objectPath)
52 auto processCableRemovedAsync(sdbusplus::message::object_path objectPath)
/openbmc/phosphor-host-ipmid/scripts/
H A Dinventorysensor.cpp.mako15 objectPath = sensorDict[key]
16 sensorID = objectPath["sensorID"]
17 sensorType = objectPath["sensorType"]
18 eventReadingType = objectPath["eventReadingType"]
19 offset = objectPath["offset"]
/openbmc/phosphor-objmgr/src/
H A Dhandler.cpp16 const std::string& objectPath, in addObjectMapResult() argument
26 [&objectPath](const auto& i) { return objectPath == i.first; }); in addObjectMapResult()
35 object.first = objectPath; in addObjectMapResult()
59 for (const auto& objectPath : interfaceMap) in getAncestors() local
61 const auto& thisPath = objectPath.first; in getAncestors()
72 ret.emplace_back(objectPath); in getAncestors()
76 for (const auto& connectionInterfaces : objectPath.second) in getAncestors()
169 for (const auto& objectPath : interfaceMap) in getSubTree() local
171 const auto& thisPath = objectPath.first; in getSubTree()
188 for (const auto& connectionInterfaces : objectPath.second) in getSubTree()
[all …]
/openbmc/phosphor-debug-collector/
H A Delog_watch.cpp62 sdbusplus::message::object_path objectPath; in addCallback() local
66 msg.read(objectPath, propertyMap); in addCallback()
76 std::size_t found = objectPath.str.find("entry"); in addCallback()
83 auto eId = getEid(objectPath); in addCallback()
127 CreateParameters::FilePath)] = objectPath; in addCallback()
152 sdbusplus::message::object_path objectPath; in delCallback() local
155 msg.read(objectPath); in delCallback()
165 std::size_t found = objectPath.str.find("entry"); in delCallback()
173 auto eId = getEid(objectPath); in delCallback()
/openbmc/dbus-sensors/src/
H A DEntityManagerInterface.cpp48 for (const auto& [objectPath, detectorConfig] : in handleInventoryGet()
56 addedCallback(objectPath, interfaceName); in handleInventoryGet()
79 auto& [objectPath, inventoryData] = result; in handleInventoryAdded()
85 addedCallback(objectPath, interfaceName); in handleInventoryAdded()
110 auto& [objectPath, interfaces] = result; in handleInventoryRemoved()
117 removedCallback(objectPath, interfaceName); in handleInventoryRemoved()
/openbmc/dbus-sensors/src/external/
H A DExternalSensor.cpp46 std::string objectPath = "/xyz/openbmc_project/sensors/"; in ExternalSensor() local
47 objectPath += dbusPath; in ExternalSensor()
48 objectPath += '/'; in ExternalSensor()
49 objectPath += name; in ExternalSensor()
52 objectPath, "xyz.openbmc_project.Sensor.Value"); in ExternalSensor()
58 objectServer.add_interface(objectPath, interface); in ExternalSensor()
62 objectServer.add_interface(objectPath, association::interface); in ExternalSensor()
68 "NAME", name, "PATH", objectPath, "TYPE", objectType, "MIN", minReading, in ExternalSensor()
/openbmc/phosphor-power/phosphor-regulators/src/
H A Ddbus_sensor.cpp76 std::string objectPath; local
79 getTypeBasedProperties(objectPath, unit, minValue, maxValue);
88 bus, objectPath.c_str(), DBusSensorObject::action::defer_emit);
175 void DBusSensor::getTypeBasedProperties(std::string& objectPath, Unit& unit, in getTypeBasedProperties() argument
260 objectPath = sensorsObjectPath; in getTypeBasedProperties()
261 objectPath += '/'; in getTypeBasedProperties()
262 objectPath += typeNamespace; in getTypeBasedProperties()
263 objectPath += '/'; in getTypeBasedProperties()
264 objectPath += name; in getTypeBasedProperties()

123456789