/openbmc/phosphor-fan-presence/sensor-monitor/ |
H A D | threshold_alarm_logger.cpp | 151 std::string sensorPath = msg.get_path(); in propertiesChanged() local 156 checkProperties(sensorPath, interface, properties); in propertiesChanged() 194 const std::string& sensorPath, const std::string& interface, in checkProperties() argument 212 InterfaceKey key{sensorPath, interface}; in checkProperties() 227 createEventLog(sensorPath, interface, propertyName, in checkProperties() 236 const std::string& sensorPath, in checkThresholds() argument 250 bus, service, sensorPath, interface, property); in checkThresholds() 251 alarms[InterfaceKey(sensorPath, interface)][property] = alarmValue; in checkThresholds() 261 createEventLog(sensorPath, interface, property, alarmValue); in checkThresholds() 275 const std::string& sensorPath, const std::string& interface, in createEventLog() argument [all …]
|
H A D | shutdown_alarm_monitor.cpp | 150 const auto& [sensorPath, shutdownType, alarmType] = alarmKey; in checkAlarms() 157 value = SDBusPlus::getProperty<bool>(bus, sensorPath, interface, in checkAlarms() 164 interface, sensorPath) in checkAlarms() 191 std::string sensorPath = message.get_path(); in propertiesChanged() local 196 AlarmKey alarmKey{sensorPath, *type, AlarmType::low}; in propertiesChanged() 208 AlarmKey alarmKey{sensorPath, *type, AlarmType::high}; in propertiesChanged() 246 const auto& [sensorPath, shutdownType, alarmType] = alarmKey; in startTimer() 259 value = SDBusPlus::getProperty<double>(bus, sensorPath, valueInterface, in startTimer() 286 propertyName, sensorPath, original) in startTimer() 309 propertyName, sensorPath, original, now) in startTimer() [all …]
|
H A D | threshold_alarm_logger.hpp | 113 const std::string& sensorPath, const std::string& interface, 125 const std::string& sensorPath, 143 void createEventLog(const std::string& sensorPath, 157 std::string getSensorType(std::string sensorPath); 181 std::string getCallout(const std::string& sensorPath);
|
/openbmc/phosphor-host-ipmid/ |
H A D | sensordatahandler.cpp | 55 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() 109 sensorInfo.sensorPath); in mapDbusToEventdata2() 118 ipmi::getDbusProperty(bus, service, sensorInfo.sensorPath, in mapDbusToEventdata2() 138 return mapDbusToAssertion(sensorInfo, sensorInfo.sensorPath, in assertion() 152 auto response = mapDbusToAssertion(sensorInfo, sensorInfo.sensorPath, in assertion() 186 const std::string& sensorPath, in makeDbusMsg() argument 193 auto dbusService = getService(bus, sensorInterface, sensorPath); in makeDbusMsg() 195 return bus.new_method_call(dbusService.c_str(), sensorPath.c_str(), in makeDbusMsg() [all …]
|
H A D | sensordatahandler.hpp | 97 return sensorInfo.sensorPath.substr( in nameLeaf() 98 sensorInfo.sensorPath.find_last_of('/') + 1, in nameLeaf() 99 sensorInfo.sensorPath.length()); in nameLeaf() 181 sensorInfo.sensorPath); in readingAssertion() 184 bus, service, sensorInfo.sensorPath, in readingAssertion() 211 sensorInfo.sensorPath); in readingData() 222 bus, service, sensorInfo.sensorPath, in readingData() 240 bus, service, sensorInfo.sensorPath, in readingData() 276 bus, service, sensorInfo.sensorPath, in readingData() 288 bus, service, sensorInfo.sensorPath, in readingData() [all …]
|
H A D | sensorhandler.cpp | 153 bus, interfacesAdded() + argNpath(0, s.second.sensorPath), in initSensorMatches() 154 [id = s.first, obj = s.second.sensorPath, in initSensorMatches() 160 bus, interfacesRemoved() + argNpath(0, s.second.sensorPath), in initSensorMatches() 172 type::signal() + path(s.second.sensorPath) + in initSensorMatches() 177 s.second.sensorPath, in initSensorMatches() 238 ipmi::getService(bus, info.sensorInterface, info.sensorPath); in find_openbmc_path() 243 info.sensorPath.c_str(), serviceName.c_str()); in find_openbmc_path() 249 strcpy(interface->path, info.sensorPath.c_str()); in find_openbmc_path() 587 sensorInfo.sensorPath, service); in ipmiSensorGetSensorReading() 592 fillSensorIdServiceMap(sensorInfo.sensorPath, in ipmiSensorGetSensorReading() [all …]
|
H A D | selutility.cpp | 126 const auto& sensorPath = iter->second; in constructSEL() local 127 auto sensorIter = invSensors.find(sensorPath); in constructSEL()
|
/openbmc/openpower-occ-control/ |
H A D | occ_manager.cpp | 990 std::string sensorPath = in readTempSensors() local 997 sensorPath.append( in readTempSensors() 1002 sensorPath.append( in readTempSensors() 1029 sensorPath.append( in readTempSensors() 1044 sensorPath.append("proc" + std::to_string(occInstance) + in readTempSensors() 1136 auto existing = sensorData.find(sensorPath); in readTempSensors() 1157 sensorData[sensorPath] = tempValue; in readTempSensors() 1240 std::string sensorPath = OCC_SENSORS_ROOT + std::string("/power/"); in readPowerSensors() local 1247 sensorPath.append(iter->second); in readPowerSensors() 1265 sensorPath, "xy in readPowerSensors() 1318 std::string sensorPath = OCC_SENSORS_ROOT + std::string("/power/"); readExtnSensors() local 1427 const fs::path sensorPath = occ->getHwmonPath(); getSensorValues() local [all...] |
/openbmc/telemetry/src/ |
H A D | report_factory.cpp | 103 [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 D | trigger_factory.cpp | 275 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 D | metric.cpp | 119 auto sensorPath = utils::transform(sensors, [this](const auto& sensor) { in dumpConfiguration() local 124 return LabeledMetricParameters(std::move(sensorPath), operationType, in dumpConfiguration()
|
/openbmc/s2600wf-misc/callback-manager/include/ |
H A D | callback_manager.hpp | 12 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/lib/ |
H A D | thermal_metrics.hpp | 101 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 D | sensors.hpp | 462 std::string sensorPath = *chassisPath + "/all_sensors"; in getChassis() local 464 sensorPath, [asyncResp, chassisSubNode, sensorTypes, in getChassis() 1855 sdbusplus::message::object_path sensorPath( in getSensorData() local 1858 connection, sensorPath, in getSensorData() 2404 const std::string& sensorPath, in getSensorFromDbus() argument 2415 BMCWEB_LOG_DEBUG("Path {}", sensorPath); in getSensorFromDbus() 2418 *crow::connections::systemBus, connectionName, sensorPath, "", in getSensorFromDbus() 2420 sensorPath](const boost::system::error_code& ec, in getSensorFromDbus() 2427 sdbusplus::message::object_path path(sensorPath); in getSensorFromDbus() 2461 std::string sensorPath = "/xyz/openbmc_project/sensors/" + nameType.first + in handleSensorGet() local [all …]
|
H A D | trigger.hpp | 597 std::string sensorPath = in parseMetricProperties() local 600 ctx.sensors.emplace_back(sensorPath, uriStr); in parseMetricProperties()
|
/openbmc/openbmc/meta-quanta/meta-gbs/recipes-phosphor/fans/phosphor-pid-control/ |
H A D | fan-table-init.sh | 70 sensorPath="${nvmePath}${i}" 71 pathLine=$(grep -nw "$sensorPath" "$TEMP_FILE" | awk -F ':' '{print $1}')
|
/openbmc/bmcweb/redfish-core/include/utils/ |
H A D | sensor_utils.hpp | 706 sdbusplus::message::object_path sensorPath(path); in objectExcerptToJson() local 707 std::string sensorName = sensorPath.filename(); in objectExcerptToJson() 708 std::string sensorType = sensorPath.parent_path().filename(); in objectExcerptToJson() 760 for (const auto& [sensorPath, serviceMaps] : subtree) in getAllSensorObjects() 764 sensorsServiceAndPath.emplace_back(service, sensorPath); in getAllSensorObjects()
|
/openbmc/dbus-sensors/src/psu/ |
H A D | PSUSensorMain.cpp | 261 const std::filesystem::path& sensorPath, std::string& labelHead, in checkPWMSensor() argument 272 const std::string& sensorPathStr = sensorPath.string(); in checkPWMSensor() 568 for (const auto& sensorPath : sensorPaths) in createSensorsCallback() 572 std::string sensorPathStr = sensorPath.string(); in createSensorsCallback() 573 std::string sensorNameStr = sensorPath.filename(); in createSensorsCallback() 624 "PATH", sensorPath.string()); in createSensorsCallback() 653 checkPWMSensor(sensorPath, labelHead, *interfacePath, in createSensorsCallback() 567 for (const auto& sensorPath : sensorPaths) createSensorsCallback() local
|
/openbmc/phosphor-host-ipmid/dbus-sdr/ |
H A D | sdrutils.cpp | 188 if (boost::starts_with(sensor.second.sensorPath, in getSensorSubtree() 200 sensorTreePtr->emplace(sensor.second.sensorPath, connectionMap); in getSensorSubtree() 295 return findSensor.second.sensorPath == path; in findStaticSensor()
|
H A D | storagecommands.cpp | 1042 std::string& sensorPath = targetEntryFields[4]; in ipmiStorageGetSELEntry() local 1056 sensorType = getSensorTypeFromPath(sensorPath); in ipmiStorageGetSELEntry() 1057 sensorAndLun = getSensorNumberFromPath(sensorPath); in ipmiStorageGetSELEntry() 1069 eventType = getSensorEventTypeFromPath(sensorPath); in ipmiStorageGetSELEntry()
|
/openbmc/intel-ipmi-oem/src/ |
H A D | storagecommands.cpp | 990 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 D | HwmonTempMain.cpp | 198 std::string sensorPath; member 353 findSensorCfg->second.sensorPath; in createSensors()
|
/openbmc/phosphor-host-ipmid/scripts/ |
H A D | writesensor.cpp.mako | 85 .sensorPath = "${path}",
|
/openbmc/phosphor-host-ipmid/include/ipmid/ |
H A D | types.hpp | 165 InstancePath sensorPath; member
|
/openbmc/telemetry/tests/src/ |
H A D | test_trigger.cpp | 74 const auto& [sensorPath, sensorMetadata] = sensorInfo; in convertToLabeledSensor() 75 return LabeledSensorInfo("service1", sensorPath, sensorMetadata); in convertToLabeledSensor()
|