/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-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 | 41 std::vector<std::string>& interfaces) in getAncestors() argument 44 std::sort(interfaces.begin(), interfaces.end()); in getAncestors() 68 if (interfaces.empty()) in getAncestors() 77 interfaces.size(), interfaceMap.second.size())); in getAncestors() 81 interfaces.begin(), interfaces.end(), in getAncestors() 98 std::vector<std::string>& interfaces) in getObject() argument 103 std::sort(interfaces.begin(), interfaces.end()); in getObject() 110 if (interfaces.empty()) in getObject() 117 std::min(interfaces.size(), interfaceMap.second.size())); in getObject() 120 if (std::set_intersection(interfaces.begin(), interfaces.end(), in getObject() [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 findAssociatedData(const interfaces::Sensor& notifier); 42 std::unique_ptr<interfaces::Clock> clock; 43 std::vector<std::reference_wrapper<interfaces::MetricListener>> listeners;
|
H A D | report.hpp | 30 class Report : public interfaces::Report, public interfaces::MetricListener 62 interfaces::ReportManager& reportManager, 63 interfaces::JsonStorage& reportStorage, 64 std::vector<std::shared_ptr<interfaces::Metric>> metrics, 65 const interfaces::ReportFactory& reportFactory, const bool enabled, 66 std::unique_ptr<interfaces::Clock> clock, Readings); 91 makeReportInterface(const interfaces::ReportFactory& reportFactory); 103 const std::vector<std::shared_ptr<interfaces::Metric>>& metrics); 104 interfaces::JsonStorage::FilePath reportFileName() const; 129 std::vector<std::shared_ptr<interfaces::Metric>> metrics; [all …]
|
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); 30 void sensorUpdated(interfaces::Sensor&, Milliseconds, double) override; 37 const std::vector<std::unique_ptr<interfaces::TriggerAction>> actions; 40 std::unique_ptr<interfaces::Clock> clock;
|
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); 36 void sensorUpdated(interfaces::Sensor&, Milliseconds, double) override; 43 const std::vector<std::unique_ptr<interfaces::TriggerAction>> actions; 49 std::unique_ptr<interfaces::Clock> clock; 74 std::unordered_map<std::shared_ptr<interfaces::Sensor>, 82 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); 36 void sensorUpdated(interfaces::Sensor&, Milliseconds, double) override; 43 const std::vector<std::unique_ptr<interfaces::TriggerAction>> actions; 50 std::unique_ptr<interfaces::Clock> clock; 73 std::unordered_map<std::shared_ptr<interfaces::Sensor>, 81 ThresholdDetail& getDetails(const interfaces::Sensor& sensor);
|
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, 27 void removeTrigger(const interfaces::Trigger* trigger) override; 34 std::unique_ptr<interfaces::TriggerFactory> triggerFactory; 35 std::unique_ptr<interfaces::JsonStorage> triggerStorage; 37 std::vector<std::unique_ptr<interfaces::Trigger>> triggers; 43 interfaces::Trigger&
|
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&
|
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, 61 std::vector<std::shared_ptr<interfaces::Threshold>> thresholds; 63 interfaces::JsonStorage::FilePath fileName; 64 interfaces::JsonStorage& triggerStorage;
|
H A D | trigger_factory.hpp | 12 class TriggerFactory : public interfaces::TriggerFactory 19 std::unique_ptr<interfaces::Trigger> 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 | trigger_actions.hpp | 33 class LogToJournal : public interfaces::TriggerAction 48 class LogToRedfishEventLog : public interfaces::TriggerAction 67 std::vector<std::unique_ptr<interfaces::TriggerAction>>& actionsIf, 75 class LogToJournal : public interfaces::TriggerAction 88 class LogToRedfishEventLog : public interfaces::TriggerAction 99 std::vector<std::unique_ptr<interfaces::TriggerAction>>& actionsIf, 106 class LogToJournal : public interfaces::TriggerAction 116 class LogToRedfishEventLog : public interfaces::TriggerAction 127 std::vector<std::unique_ptr<interfaces::TriggerAction>>& actionsIf, 134 class UpdateReport : public interfaces::TriggerAction
|
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 Metric::findAssociatedData(const interfaces::Sensor& notifier) in findAssociatedData() 141 for (interfaces::MetricListener& listener : listeners) in updateReadings()
|
/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/linux/drivers/net/phy/ |
H A D | sfp-bus.c | 149 unsigned long *support, unsigned long *interfaces) in sfp_parse_support() argument 178 __set_bit(PHY_INTERFACE_MODE_10GBASER, interfaces); in sfp_parse_support() 182 __set_bit(PHY_INTERFACE_MODE_10GBASER, interfaces); in sfp_parse_support() 186 __set_bit(PHY_INTERFACE_MODE_10GBASER, interfaces); in sfp_parse_support() 190 __set_bit(PHY_INTERFACE_MODE_10GBASER, interfaces); in sfp_parse_support() 196 __set_bit(PHY_INTERFACE_MODE_1000BASEX, interfaces); in sfp_parse_support() 201 __set_bit(PHY_INTERFACE_MODE_1000BASEX, interfaces); in sfp_parse_support() 202 __set_bit(PHY_INTERFACE_MODE_SGMII, interfaces); in sfp_parse_support() 209 __set_bit(PHY_INTERFACE_MODE_1000BASEX, interfaces); in sfp_parse_support() 215 __set_bit(PHY_INTERFACE_MODE_100BASEX, interfaces); in sfp_parse_support() [all …]
|
/openbmc/linux/Documentation/driver-api/ |
H A D | firewire.rst | 8 The Linux FireWire subsystem adds some interfaces into the Linux system to 11 The main purpose of these interfaces is to access address space on each node 15 Two types of interfaces are added, according to consumers of the interface. A 16 set of userspace interfaces is available via `firewire character devices`. A set 17 of kernel interfaces is available via exported symbols in `firewire-core` module. 28 Firewire device probing and sysfs interfaces 37 Firewire core transaction interfaces 43 Firewire Isochronous I/O interfaces
|
/openbmc/bmcweb/include/ |
H A D | dbus_monitor.hpp | 27 interfaces; member 107 auto it = thisSession->second.interfaces.find(entry.first); in onPropertyUpdate() 108 if (it != thisSession->second.interfaces.end()) in onPropertyUpdate() 153 nlohmann::json::iterator interfaces = j.find("interfaces"); in requestRoutes() local 154 if (interfaces != j.end()) in requestRoutes() 156 thisSession.interfaces.reserve(interfaces->size()); in requestRoutes() 157 for (auto& interface : *interfaces) in requestRoutes() 163 thisSession.interfaces.insert(*str); in requestRoutes() 176 size_t interfaceCount = thisSession.interfaces.size(); in requestRoutes() 213 if (thisSession.interfaces.empty()) in requestRoutes() [all …]
|
/openbmc/docs/architecture/ |
H A D | object-mapper.md | 19 Use this method to find the services, with their interfaces, that implement a 21 interfaces. An optional list of interfaces may also be passed in to constrain 22 the output to services that implement those specific interfaces. 27 - param: interfaces - an optional list of interfaces to constrain the search to 31 - Map of service names to their interfaces 59 Use this method to find the objects, services, and interfaces in the specified 60 subtree that implement a certain interface. An optional list of interfaces may 62 specific interfaces. If no interfaces are passed in, then all 63 objects/services/interfaces in the subtree are returned. 70 - param: interfaces - an optional list of interfaces to constrain the search to [all …]
|
/openbmc/phosphor-host-ipmid/libipmid/ |
H A D | utils.cpp | 46 std::vector<DbusInterface> interfaces; in getDbusObject() local 47 interfaces.emplace_back(interface); in getDbusObject() 49 ObjectTree objectTree = getSubTree(bus, interfaces, serviceRoot); in getDbusObject() 125 ipmi::ObjectValueTree interfaces; in getManagedObjects() local 131 reply.read(interfaces); in getManagedObjects() 133 return interfaces; in getManagedObjects() 218 ObjectTree getSubTree(sdbusplus::bus_t& bus, const InterfaceList& interfaces, in getSubTree() argument 224 mapperCall.append(subtreePath, depth, interfaces); in getSubTree() 237 std::vector<std::string> interfaces; in getAllDbusObjects() local 238 interfaces.emplace_back(interface); in getAllDbusObjects() [all …]
|
/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 121 const interfaces::JsonStorage::DirectoryPath& directory) in setupSymlinks() 128 return interfaces::JsonStorage::FilePath(linkPath); in setupSymlinks() 134 static interfaces::JsonStorage::FilePath 136 const interfaces::JsonStorage::DirectoryPath& directory) in setupSymlinks() 143 return interfaces::JsonStorage::FilePath(linkPath / in setupSymlinks() [all …]
|
/openbmc/linux/Documentation/ABI/ |
H A D | README | 2 userspace, and the relative stability of these interfaces. Due to the 4 interfaces should be used by userspace programs in different ways. 13 This directory documents the interfaces that the developer has 15 interfaces with no restrictions, and backward compatibility for 16 them will be guaranteed for at least 2 years. Most interfaces 21 This directory documents interfaces that are felt to be stable, 26 programs can start to rely on these interfaces, but they must be 27 aware of changes that can occur before these interfaces move to 28 be marked stable. Programs that use these interfaces are 30 these interfaces, so that the kernel developers can easily [all …]
|
/openbmc/linux/Documentation/networking/ |
H A D | ipv6.rst | 37 No IPv6 addresses will be added to interfaces, and 45 on all interfaces. This might be used when one does not wish 52 IPv6 address autoconfiguration is disabled on all interfaces. 55 will be added to interfaces. 58 IPv6 address autoconfiguration is enabled on all interfaces. 64 Specifies whether to disable IPv6 on all interfaces. 70 IPv6 is enabled on all interfaces. 75 IPv6 is disabled on all interfaces. 77 No IPv6 addresses will be added to interfaces.
|
/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) in expectMake()
|