Home
last modified time | relevance | path

Searched refs:sensorPath (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/phosphor-fan-presence/sensor-monitor/
H A Dthreshold_alarm_logger.cpp147 std::string sensorPath = msg.get_path(); in propertiesChanged() local
152 checkProperties(sensorPath, interface, properties); in propertiesChanged()
190 const std::string& sensorPath, const std::string& interface, in checkProperties() argument
208 InterfaceKey key{sensorPath, interface}; in checkProperties()
223 createEventLog(sensorPath, interface, propertyName, in checkProperties()
232 const std::string& sensorPath, in checkThresholds() argument
246 bus, service, sensorPath, interface, property); in checkThresholds()
247 alarms[InterfaceKey(sensorPath, interface)][property] = alarmValue; in checkThresholds()
257 createEventLog(sensorPath, interface, property, alarmValue); in checkThresholds()
271 const std::string& sensorPath, const std::string& interface, in createEventLog() argument
[all …]
H A Dshutdown_alarm_monitor.cpp147 const auto& [sensorPath, shutdownType, alarmType] = alarmKey; in checkAlarms()
154 value = SDBusPlus::getProperty<bool>(bus, sensorPath, interface, in checkAlarms()
161 "INTERFACE", interface, "SENSOR_PATH", sensorPath); in checkAlarms()
187 std::string sensorPath = message.get_path(); in propertiesChanged() local
192 AlarmKey alarmKey{sensorPath, *type, AlarmType::low}; in propertiesChanged()
204 AlarmKey alarmKey{sensorPath, *type, AlarmType::high}; in propertiesChanged()
242 const auto& [sensorPath, shutdownType, alarmType] = alarmKey; in startTimer()
255 value = SDBusPlus::getProperty<double>(bus, sensorPath, valueInterface, in startTimer()
282 "PROPERTY_NAME", propertyName, "SENSOR_PATH", sensorPath, in startTimer()
303 "PROPERTY_NAME", propertyName, "SENSOR_PATH", sensorPath, in startTimer()
[all …]
H A Dthreshold_alarm_logger.hpp112 const std::string& sensorPath, const std::string& interface,
124 const std::string& sensorPath,
142 void createEventLog(const std::string& sensorPath,
156 std::string getSensorType(std::string sensorPath);
167 std::string getSensorName(const std::string& sensorPath);
191 std::string getCallout(const std::string& sensorPath);
/openbmc/phosphor-host-ipmid/
H A Dsensordatahandler.cpp55 const auto pos = sensorInfo.sensorPath.find_last_of('/'); in nameParentLeaf()
56 const auto leaf = sensorInfo.sensorPath.substr(pos + 1); in nameParentLeaf()
58 const auto remaining = sensorInfo.sensorPath.substr(0, pos); in nameParentLeaf()
120 sensorInfo.sensorPath); in mapDbusToEventdata2()
131 bus, service, sensorInfo.sensorPath, intf, property); in mapDbusToEventdata2()
147 "SERVICE", service, "PATH", sensorInfo.sensorPath, in mapDbusToEventdata2()
159 return mapDbusToAssertion(sensorInfo, sensorInfo.sensorPath, in assertion()
173 auto response = mapDbusToAssertion(sensorInfo, sensorInfo.sensorPath, in assertion()
207 const std::string& sensorPath, in makeDbusMsg() argument
214 auto dbusService = getService(bus, sensorInterface, sensorPath); in makeDbusMsg()
[all...]
H A Dsensordatahandler.hpp106 return sensorInfo.sensorPath.substr( in nameLeaf()
107 sensorInfo.sensorPath.find_last_of('/') + 1, in nameLeaf()
108 sensorInfo.sensorPath.length()); in nameLeaf()
191 sensorInfo.sensorPath); in readingAssertion()
193 bus, service, sensorInfo.sensorPath, in readingAssertion()
204 "PATH", sensorInfo.sensorPath, "INTERFACE", in readingAssertion()
229 sensorInfo.sensorPath); in readingData()
239 bus, service, sensorInfo.sensorPath, in readingData()
260 bus, service, sensorInfo.sensorPath, in readingData()
271 "PATH", sensorInfo.sensorPath, "INTERFACE", in readingData()
[all …]
H A Dsensorhandler.cpp161 bus, interfacesAdded() + argNpath(0, s.second.sensorPath), in initSensorMatches()
162 [id = s.first, obj = s.second.sensorPath, in initSensorMatches()
168 bus, interfacesRemoved() + argNpath(0, s.second.sensorPath), in initSensorMatches()
180 type::signal() + path(s.second.sensorPath) + in initSensorMatches()
185 s.second.sensorPath, in initSensorMatches()
246 ipmi::getService(bus, info.sensorInterface, info.sensorPath); in find_openbmc_path()
251 info.sensorPath.c_str(), serviceName.c_str()); in find_openbmc_path()
257 strcpy(interface->path, info.sensorPath.c_str()); in find_openbmc_path()
595 sensorInfo.sensorPath, service); in ipmiSensorGetSensorReading()
600 fillSensorIdServiceMap(sensorInfo.sensorPath, in ipmiSensorGetSensorReading()
[all …]
H A Dselutility.cpp129 const auto& sensorPath = iter->second; in constructSEL() local
130 auto sensorIter = invSensors.find(sensorPath); in constructSEL()
/openbmc/openpower-occ-control/
H A Docc_manager.cpp922 std::string sensorPath = in readTempSensors() local
929 sensorPath.append( in readTempSensors()
934 sensorPath.append( in readTempSensors()
961 sensorPath.append( in readTempSensors()
976 sensorPath.append("proc" + std::to_string(occInstance) + in readTempSensors()
1068 auto existing = sensorData.find(sensorPath); in readTempSensors()
1089 sensorData[sensorPath] = tempValue; in readTempSensors()
1172 std::string sensorPath = OCC_SENSORS_ROOT + std::string("/power/"); in readPowerSensors() local
1179 sensorPath.append(iter->second); in readPowerSensors()
1197 sensorPath, "xyz.openbmc_project.Sensor.Value.Unit.Watts"); in readPowerSensors()
[all …]
/openbmc/telemetry/src/
H A Dreport_factory.cpp103 [this](const LabeledSensorInfo& sensorPath) in getSensors()
106 sensorPath.at_label<Service>(), sensorPath.at_label<Path>(), in getSensors()
107 sensorPath.at_label<Metadata>(), bus->get_io_context(), bus); in getSensors()
149 for (const auto& [sensorPath, metadata] : sensorPaths) in getMetricParamsFromSensorTree()
152 [path = sensorPath](const auto& v) { in getMetricParamsFromSensorTree()
159 sensorParameters.emplace_back(service, sensorPath, in getMetricParamsFromSensorTree()
H A Dtrigger_factory.cpp275 const auto& sensorPath = labeledSensorInfo.at_label<ts::Path>(); in updateSensors() local
279 service, sensorPath, metadata, bus->get_io_context(), bus)); in updateSensors()
311 const auto& [sensorPath, metadata] = item; in parseSensorTree()
314 [path = sensorPath](const auto& x) { return x.first == path; }); in parseSensorTree()
319 return LabeledSensorInfo(service, sensorPath, metadata); in parseSensorTree()
H A Dmetric.cpp119 auto sensorPath = utils::transform(sensors, [](const auto& sensor) { in dumpConfiguration() local
124 return LabeledMetricParameters(std::move(sensorPath), operationType, in dumpConfiguration()
/openbmc/s2600wf-misc/subprojects/callback-manager/include/
H A Dcallback_manager.hpp12 constexpr const char* sensorPath = "/xyz/openbmc_project/sensors"; variable
32 objectServer.add_interface(sensorPath, associationIface)) in AssociationManager()
75 if (!boost::starts_with(path, sensorPath)) in setSensorAssociations()
83 if (!boost::starts_with(path, sensorPath)) in setSensorAssociations()
/openbmc/s2600wf-misc/callback-manager/include/
H A Dcallback_manager.hpp12 constexpr const char* sensorPath = "/xyz/openbmc_project/sensors"; variable
32 objectServer.add_interface(sensorPath, associationIface)) in AssociationManager()
75 if (!boost::starts_with(path, sensorPath)) in setSensorAssociations()
83 if (!boost::starts_with(path, sensorPath)) in setSensorAssociations()
/openbmc/bmcweb/redfish-core/include/utils/
H A Dsensor_utils.hpp912 sdbusplus::message::object_path sensorPath(path); in objectExcerptToJson() local
913 std::string sensorName = sensorPath.filename(); in objectExcerptToJson()
914 std::string sensorType = sensorPath.parent_path().filename(); in objectExcerptToJson()
966 for (const auto& [sensorPath, serviceMaps] : subtree) in getAllSensorObjects()
970 sensorsServiceAndPath.emplace_back(service, sensorPath); in getAllSensorObjects()
1009 const std::string& serviceName, const std::string& sensorPath, in checkSensorPurpose() argument
1037 sensorPath); in checkSensorPurpose()
1038 sensorMatches->emplace_back(serviceName, sensorPath); in checkSensorPurpose()
1085 for (const auto& [serviceName, sensorPath] : sensorListIn) in getSensorsByPurpose()
1088 serviceName, sensorPath, "xy in getSensorsByPurpose()
[all...]
/openbmc/bmcweb/redfish-core/lib/
H A Dthermal_metrics.hpp101 for (const auto& [service, sensorPath] : sensorsServiceAndPath) in handleTemperatureReadingsCelsius()
104 *crow::connections::systemBus, service, sensorPath, in handleTemperatureReadingsCelsius()
107 sensorPath](const boost::system::error_code& ec1, in handleTemperatureReadingsCelsius()
109 afterGetTemperatureValue(asyncResp, chassisId, sensorPath, ec1, in handleTemperatureReadingsCelsius()
H A Denvironment_metrics.hpp96 const std::string& sensorPath = (*sensorList)[0].second; in handleTotalPowerList() local
98 *crow::connections::systemBus, serviceName, sensorPath, in handleTotalPowerList()
101 sensorPath](const boost::system::error_code& ec1, in handleTotalPowerList()
103 afterGetPowerWatts(asyncResp, chassisId, sensorPath, ec1, in handleTotalPowerList()
H A Dsensors.hpp481 std::string sensorPath = *chassisPath + "/all_sensors"; in getChassis() local
483 sensorPath, [asyncResp, chassisSubNode, sensorTypes, in getChassis()
1888 sdbusplus::message::object_path sensorPath( in getSensorData() local
1891 connection, sensorPath, in getSensorData()
2437 const std::string& sensorPath, in getSensorFromDbus() argument
2448 BMCWEB_LOG_DEBUG("Path {}", sensorPath); in getSensorFromDbus()
2451 *crow::connections::systemBus, connectionName, sensorPath, "", in getSensorFromDbus()
2453 sensorPath](const boost::system::error_code& ec, in getSensorFromDbus()
2460 sdbusplus::message::object_path path(sensorPath); in getSensorFromDbus()
2494 std::string sensorPath = "/xyz/openbmc_project/sensors/" + nameType.first + in handleSensorGet() local
[all …]
/openbmc/openbmc/meta-quanta/meta-gbs/recipes-phosphor/fans/phosphor-pid-control/
H A Dfan-table-init.sh70 sensorPath="${nvmePath}${i}"
71 pathLine=$(grep -nw "$sensorPath" "$TEMP_FILE" | awk -F ':' '{print $1}')
/openbmc/dbus-sensors/src/smbpbi/
H A DSmbpbiSensor.cpp68 std::string sensorPath = sensorRootPath + sensorType + "/"; in SmbpbiSensor() local
71 objectServer.add_interface(sensorPath + name, sensorValueInterface); in SmbpbiSensor()
77 objectServer.add_interface(sensorPath + name, interface); in SmbpbiSensor()
80 objectServer.add_interface(sensorPath + name, association::interface); in SmbpbiSensor()
/openbmc/dbus-sensors/src/psu/
H A DPSUSensorMain.cpp272 const std::filesystem::path& sensorPath, std::string& labelHead, in checkPWMSensor()
283 const std::string& sensorPathStr = sensorPath.string(); in checkPWMSensor()
573 for (const auto& sensorPath : sensorPaths) in createSensorsCallback()
577 std::string sensorPathStr = sensorPath.string(); in createSensorsCallback()
578 std::string sensorNameStr = sensorPath.filename(); in createSensorsCallback()
627 "PATH", sensorPath.string()); in createSensorsCallback()
667 checkPWMSensor(sensorPath, labelHead, *interfacePath, in createSensorsCallback()
271 checkPWMSensor(const std::filesystem::path & sensorPath,std::string & labelHead,const std::string & interfacePath,std::shared_ptr<sdbusplus::asio::connection> & dbusConnection,sdbusplus::asio::object_server & objectServer,const std::string & psuName) checkPWMSensor() argument
572 for (const auto& sensorPath : sensorPaths) createSensorsCallback() local
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dsdrutils.cpp196 if (sensor.second.sensorPath.starts_with( in getSensorSubtree()
208 sensorTreePtr->emplace(sensor.second.sensorPath, connectionMap); in getSensorSubtree()
303 return findSensor.second.sensorPath == path; in findStaticSensor()
H A Dstoragecommands.cpp1038 std::string& sensorPath = targetEntryFields[4]; in ipmiStorageGetSELEntry() local
1052 sensorType = getSensorTypeFromPath(sensorPath); in ipmiStorageGetSELEntry()
1053 sensorAndLun = getSensorNumberFromPath(sensorPath); in ipmiStorageGetSELEntry()
1065 eventType = getSensorEventTypeFromPath(sensorPath); in ipmiStorageGetSELEntry()
/openbmc/phosphor-modbus/rtu/device/
H A Dbase_device.cpp57 auto sensorPath = getObjectPath( in createSensors() local
61 ctx, sensorPath.str.c_str(), initValue, initAvailability, in createSensors()
/openbmc/intel-ipmi-oem/src/
H A Dstoragecommands.cpp990 std::string& sensorPath = targetEntryFields[4]; in ipmiStorageGetSELEntry() local
1004 sensorType = getSensorTypeFromPath(sensorPath); in ipmiStorageGetSELEntry()
1005 sensorAndLun = getSensorNumberFromPath(sensorPath); in ipmiStorageGetSELEntry()
1008 eventType = getSensorEventTypeFromPath(sensorPath); in ipmiStorageGetSELEntry()
/openbmc/dbus-sensors/src/hwmon-temp/
H A DHwmonTempMain.cpp203 std::string sensorPath; member
358 findSensorCfg->second.sensorPath; in createSensors()

12