| /openbmc/ibm-logging/ |
| H A D | manager.cpp | 61 const auto& interfaces = object.second; in createAll() local 63 auto propertyMap = interfaces.find(LOGGING_IFACE); in createAll() 65 if (propertyMap != interfaces.end()) in createAll() 67 createWithRestore(object.first, interfaces); in createAll() 79 const DbusInterfaceMap& interfaces) in createWithRestore() argument 81 createObject(objectPath, interfaces); in createWithRestore() 83 restoreCalloutObjects(objectPath, interfaces); in createWithRestore() 87 const DbusInterfaceMap& interfaces) in create() argument 89 createObject(objectPath, interfaces); in create() 91 createCalloutObjects(objectPath, interfaces); in create() [all …]
|
| /openbmc/phosphor-power/ |
| H A D | dbus_interfaces_finder.cpp | 29 const std::vector<std::string>& interfaces, Callback callback) : in DBusInterfacesFinder() argument 30 bus{bus}, service{service}, interfaces{interfaces}, in DBusInterfacesFinder() 55 interfaces; in interfacesAddedCallback() local 56 message.read(path, interfaces); in interfacesAddedCallback() 59 for (const auto& [interface, properties] : interfaces) in interfacesAddedCallback() 61 if (std::ranges::contains(this->interfaces, interface)) in interfacesAddedCallback() 79 auto objects = util::getSubTree(bus, "/", interfaces, 0); in findInterfaces() 84 for (const auto& [service, interfaces] : services) in findInterfaces() 88 for (const auto& interface : interfaces) in findInterfaces() 90 if (std::ranges::contains(this->interfaces, interface)) in findInterfaces()
|
| /openbmc/telemetry/src/ |
| H A D | metric.hpp | 12 public interfaces::Metric, 13 public interfaces::SensorListener, 18 CollectionDuration, std::unique_ptr<interfaces::Clock>); 23 void sensorUpdated(interfaces::Sensor&, Milliseconds, 27 void registerForUpdates(interfaces::MetricListener& listener) override; 28 void unregisterFromUpdates(interfaces::MetricListener& listener) override; 34 const interfaces::Sensor& notifier); 42 std::unique_ptr<interfaces::Clock> clock; 43 std::vector<std::reference_wrapper<interfaces::MetricListener>> listeners;
|
| H A D | on_change_threshold.hpp | 17 public interfaces::Threshold, 18 public interfaces::SensorListener, 24 std::vector<std::unique_ptr<interfaces::TriggerAction>> actions, 25 std::unique_ptr<interfaces::Clock> clock); 33 void sensorUpdated(interfaces::Sensor&, Milliseconds, double) override; 40 const std::vector<std::unique_ptr<interfaces::TriggerAction>> actions; 43 std::unique_ptr<interfaces::Clock> clock;
|
| H A D | report.hpp | 30 class Report : public interfaces::Report, public interfaces::MetricListener 66 interfaces::ReportManager& reportManager, 67 interfaces::JsonStorage& reportStorage, 68 std::vector<std::shared_ptr<interfaces::Metric>> metrics, 69 const interfaces::ReportFactory& reportFactory, const bool enabled, 70 std::unique_ptr<interfaces::Clock> clock, Readings); 95 const interfaces::ReportFactory& reportFactory); 107 const std::vector<std::shared_ptr<interfaces::Metric>>& metrics); 108 interfaces::JsonStorage::FilePath reportFileName() const; 133 std::vector<std::shared_ptr<interfaces::Metric>> metrics; [all …]
|
| H A D | trigger_manager.hpp | 14 class TriggerManager : public interfaces::TriggerManager 18 std::unique_ptr<interfaces::TriggerFactory> triggerFactory, 19 std::unique_ptr<interfaces::JsonStorage> triggerStorage, 28 void removeTrigger(const interfaces::Trigger* trigger) override; 35 std::unique_ptr<interfaces::TriggerFactory> triggerFactory; 36 std::unique_ptr<interfaces::JsonStorage> triggerStorage; 38 std::vector<std::unique_ptr<interfaces::Trigger>> triggers; 44 interfaces::Trigger& addTrigger(
|
| H A D | numeric_threshold.hpp | 20 public interfaces::Threshold, 21 public interfaces::SensorListener, 28 std::vector<std::unique_ptr<interfaces::TriggerAction>> actions, 31 std::unique_ptr<interfaces::Clock> clock); 39 void sensorUpdated(interfaces::Sensor&, Milliseconds, double) override; 46 const std::vector<std::unique_ptr<interfaces::TriggerAction>> actions; 52 std::unique_ptr<interfaces::Clock> clock; 80 std::unordered_map<std::shared_ptr<interfaces::Sensor>, 88 ThresholdDetail& getDetails(const interfaces::Sensor& sensor);
|
| H A D | discrete_threshold.hpp | 20 public interfaces::Threshold, 21 public interfaces::SensorListener, 28 std::vector<std::unique_ptr<interfaces::TriggerAction>> actions, 31 std::unique_ptr<interfaces::Clock> clock); 39 void sensorUpdated(interfaces::Sensor&, Milliseconds, double) override; 46 const std::vector<std::unique_ptr<interfaces::TriggerAction>> actions; 53 std::unique_ptr<interfaces::Clock> clock; 79 std::unordered_map<std::shared_ptr<interfaces::Sensor>, 87 ThresholdDetail& getDetails(const interfaces::Sensor& sensor);
|
| H A D | report_manager.hpp | 20 class ReportManager : public interfaces::ReportManager 24 std::unique_ptr<interfaces::ReportFactory> reportFactory, 25 std::unique_ptr<interfaces::JsonStorage> reportStorage, 34 void removeReport(const interfaces::Report* report) override; 40 std::unique_ptr<interfaces::ReportFactory> reportFactory; 41 std::unique_ptr<interfaces::JsonStorage> reportStorage; 44 std::vector<std::unique_ptr<interfaces::Report>> reports; 51 interfaces::Report& addReport( 57 interfaces::Report& addReport(
|
| H A D | trigger.hpp | 17 class Trigger : public interfaces::Trigger 25 std::vector<std::shared_ptr<interfaces::Threshold>>&& thresholds, 26 interfaces::TriggerManager& triggerManager, 27 interfaces::JsonStorage& triggerStorage, 28 const interfaces::TriggerFactory& triggerFactory, 62 std::vector<std::shared_ptr<interfaces::Threshold>> thresholds; 64 interfaces::JsonStorage::FilePath fileName; 65 interfaces::JsonStorage& triggerStorage;
|
| H A D | trigger_factory.hpp | 12 class TriggerFactory : public interfaces::TriggerFactory 19 std::unique_ptr<interfaces::Trigger> make( 23 interfaces::TriggerManager& triggerManager, 24 interfaces::JsonStorage& triggerStorage, 36 std::vector<std::shared_ptr<interfaces::Threshold>>& currentThresholds, 60 std::vector<std::shared_ptr<interfaces::Threshold>>& currentThresholds, 68 std::vector<std::shared_ptr<interfaces::Threshold>>& currentThresholds, 76 std::vector<std::shared_ptr<interfaces::Threshold>>& thresholds, 84 std::vector<std::shared_ptr<interfaces::Threshold>>& thresholds, 92 std::vector<std::shared_ptr<interfaces::Threshold>>& thresholds,
|
| H A D | sensor.hpp | 15 public interfaces::Sensor, 21 Sensor(interfaces::Sensor::Id sensorId, const std::string& sensorMetadata, 37 const std::weak_ptr<interfaces::SensorListener>& weakListener) override; 39 const std::weak_ptr<interfaces::SensorListener>& weakListener) override; 53 interfaces::Sensor::Id sensorId; 61 std::vector<std::weak_ptr<interfaces::SensorListener>> listeners;
|
| H A D | metric.cpp | 16 std::unique_ptr<interfaces::Clock> clockIn) : in Metric() 25 void Metric::registerForUpdates(interfaces::MetricListener& listener) in registerForUpdates() 30 void Metric::unregisterFromUpdates(interfaces::MetricListener& listener) in unregisterFromUpdates() 34 [&listener](const interfaces::MetricListener& item) { in unregisterFromUpdates() 92 void Metric::sensorUpdated(interfaces::Sensor& notifier, Milliseconds timestamp, in sensorUpdated() 100 for (interfaces::MetricListener& listener : listeners) in sensorUpdated() 108 const interfaces::Sensor& notifier) in findAssociatedData() 141 for (interfaces::MetricListener& listener : listeners) in updateReadings()
|
| H A D | trigger_actions.hpp | 34 class LogToRedfishEventLog : public interfaces::TriggerAction 53 std::vector<std::unique_ptr<interfaces::TriggerAction>>& actionsIf, 62 class LogToRedfishEventLog : public interfaces::TriggerAction 73 std::vector<std::unique_ptr<interfaces::TriggerAction>>& actionsIf, 81 class LogToRedfishEventLog : public interfaces::TriggerAction 92 std::vector<std::unique_ptr<interfaces::TriggerAction>>& actionsIf, 99 class UpdateReport : public interfaces::TriggerAction
|
| /openbmc/phosphor-objmgr/src/test/ |
| H A D | handler.cpp | 114 for (const auto& [_, interfaces] : entry->second) in TEST_F() 116 ASSERT_THAT(interfaces, in TEST_F() 131 for (const auto& [_, interfaces] : entry->second) in TEST_F() 133 ASSERT_THAT(interfaces, in TEST_F() 141 std::vector<std::string> interfaces = {"bad_interface"}; in TEST_F() local 143 getAncestors(interfaceMap, path, interfaces); in TEST_F() 148 getAncestors(interfaceMap, path, interfaces), in TEST_F() 155 std::vector<std::string> interfaces = {"test_interface_0", in TEST_F() local 158 getAncestors(interfaceMap, path, interfaces); in TEST_F() 179 std::vector<std::string> interfaces = {"bad_interface"}; in TEST_F() local [all …]
|
| /openbmc/phosphor-objmgr/src/ |
| H A D | handler.cpp | 43 std::vector<std::string>& interfaces) in getAncestors() argument 46 std::sort(interfaces.begin(), interfaces.end()); in getAncestors() 70 if (interfaces.empty()) in getAncestors() 79 interfaces.size(), connectionInterfaces.second.size())); in getAncestors() 83 interfaces.begin(), interfaces.end(), in getAncestors() 100 std::vector<std::string>& interfaces) in getObject() argument 105 std::sort(interfaces.begin(), interfaces.end()); in getObject() 112 if (interfaces.empty()) in getObject() 119 std::min(interfaces.size(), connectionInterfaces.second.size())); in getObject() 122 if (std::set_intersection(interfaces.begin(), interfaces.end(), in getObject() [all …]
|
| /openbmc/phosphor-dbus-monitor/src/test/ |
| H A D | propertygentest.cpp | 39 ::Property{interfaces[0], properties[0], meta[0]}, 40 ::Property{interfaces[1], properties[1], meta[1]}, 43 ::Property{interfaces[0], properties[2], meta[0]}, 44 ::Property{interfaces[1], properties[0], meta[1]}, 47 ::Property{interfaces[2], properties[0], meta[0]}, 48 ::Property{interfaces[3], properties[1], meta[1]}, 51 ::Property{interfaces[0], properties[2], meta[0]}, 52 ::Property{interfaces[1], properties[1], meta[1]}, 53 ::Property{interfaces[2], properties[3], meta[2]}, 71 ASSERT_EQ(sizeof(expectedInterfaces), sizeof(interfaces)); in TEST() [all …]
|
| /openbmc/bmcweb/features/openbmc_rest/ |
| H A D | dbus_monitor.hpp | 36 interfaces; member 116 auto it = thisSession->second.interfaces.find(entry.first); in onPropertyUpdate() 117 if (it != thisSession->second.interfaces.end()) in onPropertyUpdate() 162 nlohmann::json::iterator interfaces = j.find("interfaces"); in requestRoutes() local 163 if (interfaces != j.end()) in requestRoutes() 165 thisSession.interfaces.reserve(interfaces->size()); in requestRoutes() 166 for (auto& interface : *interfaces) in requestRoutes() 172 thisSession.interfaces.insert(*str); in requestRoutes() 185 size_t interfaceCount = thisSession.interfaces.size(); in requestRoutes() 222 if (thisSession.interfaces.empty()) in requestRoutes() [all …]
|
| /openbmc/telemetry/src/interfaces/ |
| H A D | trigger_factory.hpp | 17 namespace interfaces namespace 25 virtual std::unique_ptr<interfaces::Trigger> make( 29 interfaces::TriggerManager& triggerManager, 30 interfaces::JsonStorage& triggerStorage, 42 std::vector<std::shared_ptr<interfaces::Threshold>>& currentThresholds,
|
| /openbmc/telemetry/tests/src/mocks/ |
| H A D | trigger_factory_mock.hpp | 12 class TriggerFactoryMock : public interfaces::TriggerFactory 25 MOCK_METHOD(std::unique_ptr<interfaces::Trigger>, make, 29 interfaces::TriggerManager& triggerManager, 30 interfaces::JsonStorage& triggerStorage, 43 (std::vector<std::shared_ptr<interfaces::Threshold>> & 59 const testing::Matcher<interfaces::TriggerManager&>& tm, in expectMake() 60 const testing::Matcher<interfaces::JsonStorage&>& triggerStorage) const in expectMake()
|
| H A D | report_factory_mock.hpp | 10 class ReportFactoryMock : public interfaces::ReportFactory 57 (std::vector<std::shared_ptr<interfaces::Metric>> & metrics, 61 MOCK_METHOD(std::unique_ptr<interfaces::Report>, make, 64 const ReportUpdates, interfaces::ReportManager&, 65 interfaces::JsonStorage&, std::vector<LabeledMetricParameters>, 71 const testing::Matcher<interfaces::ReportManager&>& rm, in expectMake() 72 const testing::Matcher<interfaces::JsonStorage&>& js) const in expectMake()
|
| H A D | sensor_mock.hpp | 9 class SensorMock : public interfaces::Sensor 27 static std::vector<std::shared_ptr<interfaces::Sensor>> makeSensorMocks( in makeSensorMocks() 39 return utils::convContainer<std::shared_ptr<interfaces::Sensor>>( in makeSensorMocks() 47 (const std::weak_ptr<interfaces::SensorListener>&), (override)); 49 (const std::weak_ptr<interfaces::SensorListener>&), (override));
|
| /openbmc/telemetry/tests/src/ |
| H A D | test_persistent_json_storage.cpp | 14 using FilePath = interfaces::JsonStorage::FilePath; 15 using DirectoryPath = interfaces::JsonStorage::DirectoryPath; 36 const interfaces::JsonStorage::DirectoryPath 38 interfaces::JsonStorage::DirectoryPath( 119 static interfaces::JsonStorage::FilePath setupSymlinks( in setupSymlinks() 121 const interfaces::JsonStorage::DirectoryPath& directory) in setupSymlinks() 128 return interfaces::JsonStorage::FilePath(linkPath); in setupSymlinks() 134 static interfaces::JsonStorage::FilePath setupSymlinks( in setupSymlinks() 136 const interfaces::JsonStorage::DirectoryPath& directory) in setupSymlinks() 143 return interfaces::JsonStorage::FilePath( in setupSymlinks() [all …]
|
| /openbmc/docs/architecture/ |
| H A D | object-mapper.md | 16 [phosphor-dbus-interfaces][1]. 20 Use this method to find the services, with their interfaces, that implement a 22 interfaces. An optional list of interfaces may also be passed in to constrain 23 the output to services that implement those specific interfaces. 28 - param: interfaces - an optional list of interfaces to constrain the search to 32 - Map of service names to their interfaces 60 Use this method to find the objects, services, and interfaces in the specified 61 subtree that implement a certain interface. An optional list of interfaces may 63 specific interfaces. If no interfaces are passed in, then all 64 objects/services/interfaces in the subtree are returned. [all …]
|
| /openbmc/phosphor-networkd/test/ |
| H A D | test_network_manager.cpp | 34 manager.interfaces.find(ifname)->second->vlan->delete_(); in deleteVLAN() 40 EXPECT_TRUE(manager.interfaces.empty()); in TEST_F() 51 EXPECT_THAT(manager.interfaces, UnorderedElementsAre(Key("igb1"))); in TEST_F() 64 EXPECT_THAT(manager.interfaces, in TEST_F() 80 manager.interfaces, in TEST_F() 88 EXPECT_THAT(manager.interfaces, in TEST_F()
|