/openbmc/telemetry/src/metrics/ |
H A D | collection_function.cpp | 11 double calculate(const std::vector<ReadingItem>& readings, in calculate() argument 15 readings.begin(), readings.end(), in calculate() 25 double calculateForStartupInterval(std::vector<ReadingItem>& readings, in calculateForStartupInterval() argument 28 readings.assign( in calculateForStartupInterval() 29 {ReadingItem(timestamp, calculate(readings, timestamp))}); in calculateForStartupInterval() 30 return readings.back().second; in calculateForStartupInterval() 37 double calculate(const std::vector<ReadingItem>& readings, in calculate() argument 41 readings.begin(), readings.end(), in calculate() 51 double calculateForStartupInterval(std::vector<ReadingItem>& readings, in calculateForStartupInterval() argument 54 readings.assign( in calculateForStartupInterval() [all …]
|
H A D | collection_data.cpp | 49 if (readings.empty()) in update() 56 return function->calculate(readings, timestamp); in update() 61 readings.emplace_back(timestamp, reading); in update() 65 return function->calculate(readings, timestamp); in update() 71 auto it = readings.begin(); in cleanup() 72 for (auto kt = std::next(readings.rbegin()); kt != readings.rend(); in cleanup() 83 readings.erase(readings.begin(), it); in cleanup() 87 readings.front().first = in cleanup() 88 std::max(readings.front().first, timestamp - duration.t); in cleanup() 93 std::vector<ReadingItem> readings; member in metrics::DataInterval [all …]
|
H A D | collection_function.hpp | 21 virtual double calculate(const std::vector<ReadingItem>& readings, 24 std::vector<ReadingItem>& readings, Milliseconds timestamp) const = 0;
|
/openbmc/telemetry/src/ |
H A D | metric.cpp | 67 if (i < readings.size()) in getUpdatedReadings() 69 readings[i].timestamp = systemTimestamp; in getUpdatedReadings() 70 readings[i].value = *value; in getUpdatedReadings() 74 if (i > readings.size()) in getUpdatedReadings() 76 const auto idx = readings.size(); in getUpdatedReadings() 83 readings.emplace_back(sensors[i]->metadata(), *value, in getUpdatedReadings() 89 return readings; in getUpdatedReadings()
|
H A D | report_manager.cpp | 158 const bool enabled, Readings readings) in addReport() argument 172 labeledMetricParams, enabled, std::move(readings))); in addReport() 208 Readings readings = {}; in loadFromPersistent() local 213 readings = utils::toReadings(labeledReadings); in loadFromPersistent() 220 std::move(readings)); in loadFromPersistent()
|
H A D | report.cpp | 37 reportUpdates(reportUpdatesIn), readings(std::move(readingsIn)), in Report() 38 readingsBuffer(std::get<1>(readings), in Report() 280 dbusIface->register_property_r("Readings", readings, in makeReportInterface() 282 [this](const auto&) { return readings; }); in makeReportInterface() 472 std::get<0>(readings) = in updateReadings() 513 data["MetricValues"] = utils::toLabeledReadings(readings); in storeConfiguration()
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | adc128d818.txt | 6 - Mode 0: 7 single-ended voltage readings (IN0-IN6), 8 - Mode 1: 8 single-ended voltage readings (IN0-IN7), 10 - Mode 2: 4 pseudo-differential voltage readings 13 - Mode 3: 4 single-ended voltage readings (IN0-IN3), 14 2 pseudo-differential voltage readings
|
/openbmc/telemetry/src/types/ |
H A D | readings.cpp | 10 LabeledReadings toLabeledReadings(const Readings& readings) in toLabeledReadings() argument 13 std::get<0>(readings), in toLabeledReadings() 14 utils::transform(std::get<1>(readings), [](const auto& readingData) { in toLabeledReadings()
|
/openbmc/linux/tools/bpf/bpftool/skeleton/ |
H A D | profiler.bpf.c | 102 struct bpf_perf_event_value___local readings[MAX_NUM_MATRICS]; in BPF_PROG() local 111 (void *)(readings + i), in BPF_PROG() 112 sizeof(*readings)); in BPF_PROG() 120 fexit_update_maps(i, &readings[i]); in BPF_PROG()
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | metric_report.hpp | 43 inline nlohmann::json toMetricValues(const Readings& readings) in toMetricValues() argument 47 for (const auto& [metadata, sensorValue, timestamp] : readings) in toMetricValues() 71 const auto& [timestamp, readings] = timestampReadings; in fillReport() 73 json["MetricValues"] = toMetricValues(readings); in fillReport()
|
/openbmc/telemetry/tests/src/params/ |
H A D | metric_params.hpp | 49 MetricParams& readings(std::vector<std::pair<Milliseconds, double>> value) in readings() function in MetricParams 55 const std::vector<std::pair<Milliseconds, double>>& readings() const in readings() function in MetricParams 100 for (auto [timestamp, reading] : mp.readings()) in operator <<()
|
H A D | report_params.hpp | 112 ReportParams& readings(Readings val) in readings() function in ReportParams 118 Readings readings() const in readings() function in ReportParams
|
/openbmc/telemetry/tests/src/ |
H A D | test_report.cpp | 86 std::vector<MetricValue> readings{ in initMetricMocks() local 89 ASSERT_THAT(readings.size(), Ge(metricParameters.size())); in initMetricMocks() 94 .WillByDefault(ReturnRefOfCopy(std::vector({readings[i]}))); in initMetricMocks() 145 params.readings()); in makeReport() 774 const auto [timestamp, readings] = in TEST_P() 786 const auto [timestamp, readings] = in TEST_P() 797 const auto [timestamp, readings] = in TEST_P() 818 const auto [timestamp, readings] = in TEST_F() 828 const auto [timestamp, readings] = in TEST_F() 831 EXPECT_THAT(readings, ElementsAre(std::make_tuple("b"s, 17.1, 114u), in TEST_F() [all …]
|
H A D | test_metric.cpp | 231 .readings(TestMetricCalculationFunctions::defaultReadings()) in defaultCollectionFunctionParams() 347 for (auto [timestamp, reading] : GetParam().readings()) in TEST_P() 356 const auto readings = sut->getUpdatedReadings(); in TEST_P() local 358 EXPECT_THAT(readings, ElementsAre(MetricValue{"metadata0", expectedReading, in TEST_P() 365 for (auto [timestamp, reading] : GetParam().readings()) in TEST_P() 375 const auto readings = sut->getUpdatedReadings(); in TEST_P() local 377 EXPECT_THAT(readings, ElementsAre(MetricValue{"metadata0", expectedReading, in TEST_P()
|
/openbmc/bmcweb/redfish-core/src/ |
H A D | dbus_log_watcher.cpp | 139 const telemetry::TimestampReadings* readings = in getReadingsForReport() local 141 if (readings == nullptr) in getReadingsForReport() 146 EventServiceManager::sendTelemetryReportToSubs(id, *readings); in getReadingsForReport()
|
/openbmc/telemetry/tests/src/helpers/ |
H A D | report_params_helpers.hpp | 20 inline void PrintTo(const Readings& readings, std::ostream* os) in PrintTo() argument 22 const auto& [timestamp, readingDataVec] = readings; in PrintTo()
|
/openbmc/openbmc-test-automation/redfish/systems/ |
H A D | test_powersupply_readings.robot | 2 Documentation Get the system power supply voltage readings. 70 # reading_type The power watt readings (e.g. "PowerInputWatts") 82 # reading_type The power voltage readings (e.g. "ReadingVolts")
|
H A D | test_power_control_metrics.robot | 2 Documentation Get the system power supply voltage readings. 35 # reading_type The power metric readings (e.g. "PowerConsumedWatts")
|
H A D | test_power_voltage_readings.robot | 2 Documentation Getting the systems power sensor readings for voltages. 34 # reading_type The power voltage readings (e.g. "ReadingVolts")
|
/openbmc/linux/drivers/hwmon/peci/ |
H A D | Kconfig | 11 readings of the CPU package and CPU cores that are accessible via 24 driver which provides Temperature Sensor on DIMM readings that are
|
/openbmc/linux/Documentation/hwmon/ |
H A D | aquacomputer_d5next.rst | 57 The High Flow Next exposes +5V voltages, water quality, conductivity and flow readings. 62 target readings). It also exposes the estimated reservoir volume and how much of it is 66 The Aquastream XT pump exposes temperature readings for the coolant, external sensor 72 It also exposes pressure and flow speed readings.
|
H A D | emc2103.rst | 25 readings can be divided by a programmable divider (1, 2, 4 or 8) to give 26 the readings more range or accuracy. Not all RPM values can accurately be
|
H A D | w83l786ng.rst | 38 Fan rotation speeds are reported in RPM (rotations per minute). Fan readings 40 or 128 for fan 1/2) to give the readings more range or accuracy.
|
/openbmc/openpower-occ-control/ |
H A D | README.md | 4 processors. The OCC provides processor and memory temperatures, power readings, 7 readings, updating the system power mode, setting power caps, and idle power
|
/openbmc/linux/drivers/iio/common/scmi_sensors/ |
H A D | scmi_iio.c | 55 sensor->iio_buf[i] = sensor_update->readings[i].value; in scmi_iio_sensor_update_cb() 64 time = sensor_update->readings[0].timestamp; in scmi_iio_sensor_update_cb() 291 struct scmi_sensor_reading readings[SCMI_IIO_NUM_OF_AXIS]; in scmi_iio_read_channel_data() local 307 sensor->sensor_info->num_axis, readings); in scmi_iio_read_channel_data() 326 *val = lower_32_bits(readings[ch->scan_index].value); in scmi_iio_read_channel_data() 327 *val2 = upper_32_bits(readings[ch->scan_index].value); in scmi_iio_read_channel_data()
|