Home
last modified time | relevance | path

Searched full:average (Results 1 – 25 of 217) sorted by relevance

123456789

/openbmc/witherspoon-pfault-analysis/power-supply/
H A Daverage.hpp2 #include <org/open_power/Sensor/Aggregation/History/Average/server.hpp>
17 sdbusplus::org::open_power::Sensor::Aggregation::History::server::Average;
20 * @class Average
22 * Implements Sensor.Aggregation.History.Average
24 * This includes a property that is an array of timestamp/average tuples
27 class Average : public ServerObject<AverageInterface> class
30 static constexpr auto name = "average";
32 Average() = delete;
33 Average(const Average&) = delete;
34 Average& operator=(const Average&) = delete;
[all …]
/openbmc/phosphor-power/power-supply/
H A Daverage.hpp2 #include <org/open_power/Sensor/Aggregation/History/Average/server.hpp>
17 sdbusplus::org::open_power::Sensor::Aggregation::History::server::Average;
20 * @class Average
22 * Implements Sensor.Aggregation.History.Average
24 * This includes a property that is an array of timestamp/average tuples
27 class Average : public ServerObject<AverageInterface> class
30 static constexpr auto name = "average";
32 Average() = delete;
33 Average(const Average&) = delete;
34 Average& operator=(const Average&) = delete;
[all …]
/openbmc/phosphor-hwmon/
H A Daverage.hpp12 class Average class
18 /** @brief <average, average_interval>
19 * average is the value of power*_average.
40 /** @brief Set average value in averageMap based on sensor key.
45 * @param[in] sensorValue - The related average values of this sensor
50 /** @brief Calculate the average value.
52 * @param[in] preAverage - The previous average value from *_average file
55 * @param[in] curAverage - The current average value from *_average file
61 * return new calculated average value, if curInterval-preInterval>0
68 /** @brief Store the previous average sensor map */
H A Daverage.cpp1 #include "average.hpp"
5 std::optional<Average::averageValue> Average::getAverageValue( in getAverageValue()
6 const Average::averageKey& sensorKey) const in getAverageValue()
17 void Average::setAverageValue(const Average::averageKey& sensorKey, in setAverageValue()
18 const Average::averageValue& sensorValue) in setAverageValue()
23 std::optional<int64_t> Average::calcAverage( in calcAverage()
H A Dmainloop.hpp3 #include "average.hpp"
136 /** @brief Object of class Average, to handle with average related process
138 Average _average;
H A Dmainloop.cpp476 // If type is power and AVERAGE_power* is true in env, use average in read()
481 input = hwmon::entry::average; in read()
540 if (input == hwmon::entry::average) in read()
543 // average value, current average_interval value, previous in read()
544 // average value, previous average_interval value in read()
554 auto calValue = Average::calcAverage( in read()
562 // Update value to be calculated average in read()
569 // previous calculated average instead. So skip dbus in read()
673 // average instead of input in addDroppedSensors()
677 input = hwmon::entry::average; in addDroppedSensors()
/openbmc/phosphor-hwmon/test/
H A Daverage_unittest.cpp1 #include "average.hpp"
10 Average av; in TEST()
20 Average av; in TEST()
26 auto expected = Average::averageValue(2, 2); in TEST()
32 Average av; in TEST()
39 Average av; in TEST()
46 Average av; in TEST()
/openbmc/qemu/scripts/simplebench/
H A Dresults_to_text.py39 if 'average' in result:
40 s = format_value(result['average'], result['stdev'])
92 if 'average' not in res:
102 if 'average' not in res_j:
108 diff_pr = round((res['average'] - res_j['average']) /
109 res_j['average'] * 100)
H A Dsimplebench.py45 count -- how many times to call test_func, to calculate average
54 'average': average value (iops or seconds) per run (exists only if at
94 result['average'] = statistics.mean(r[dim] for r in succeeded)
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-bsp/lm_sensors/lmsensors-config/
H A Dsensord.conf6 # -T, --rrd-no-average -- switch RRD in non-average mode
12 # -a, --load-average -- include load average in RRD file
/openbmc/phosphor-debug-collector/tools/dreport.d/plugins.d/
H A Dnetwork49 #Load average
52 add_cmd_output "echo $'\n[Load average]'" "$file_name" "load average"
53 add_cmd_output "cat $loadavg" "$file_name" "load average"
/openbmc/qemu/tests/unit/
H A Dtest-timed-average.c2 * Timed average computation tests
15 #include "qemu/timed-average.h"
40 /* we will compute some average on a period of 1 second */ in test_average()
86 g_test_add_func("/timed-average/average", test_average); in main()
/openbmc/bmcweb/redfish-core/include/generated/enums/
H A Dtelemetry_service.hpp12 Average, enumerator
20 {CollectionFunction::Average, "Average"},
H A Dmetric_report_definition.hpp33 Average, enumerator
69 {CalculationAlgorithmEnum::Average, "Average"},
H A Dmetric_definition.hpp47 Average, enumerator
90 {CalculationAlgorithmEnum::Average, "Average"},
/openbmc/phosphor-dbus-interfaces/gen/org/open_power/Sensor/Aggregation/History/
H A Dmeson.build2 subdir('Average') subdir
10 '../../../../../../yaml/org/open_power/Sensor/Aggregation/History/Average.interface.yaml',
12 output: ['Average.md'],
24 'org/open_power/Sensor/Aggregation/History/Average',
/openbmc/ipmitool/contrib/
H A Dcreate_rrds.sh37 RRA:AVERAGE:0.5:1:288 \
38 RRA:AVERAGE:0.5:6:336 \
39 RRA:AVERAGE:0.5:12:720
/openbmc/phosphor-dbus-interfaces/gen/org/open_power/Sensor/Aggregation/History/Average/
H A Dmeson.build3 sdbusplus_current_path = 'org/open_power/Sensor/Aggregation/History/Average'
8 … '../../../../../../../yaml/org/open_power/Sensor/Aggregation/History/Average.interface.yaml',
28 'org/open_power/Sensor/Aggregation/History/Average',
/openbmc/qemu/util/
H A Dtimed-average.c2 * QEMU timed average computation
29 #include "qemu/timed-average.h"
31 /* This module computes an average of a set of values within a time
39 * - The minimum / maximum / average values are always returned from
108 * period on average */ in timed_average_init()
198 /* Get the average value
201 * @ret: the average value
H A Dbuffer.c30 * that is used in the average size calculation. a shift
48 /* make it even harder for the buffer to shrink, reset average size in buffer_adj_size()
49 * to current capacity if it is larger than the average. */ in buffer_adj_size()
72 /* Calculate the average size of the buffer as in buffer_shrink()
79 /* And then only shrink if the average size of the buffer is much in buffer_shrink()
/openbmc/qemu/tests/functional/acpi-bits/bits-tests/
H A Dsmilatency.py277 …testsuite.print_detail("{}; average = {}; count = {}".format(desc, bits.format_tsc(bin.total/bin.c…
106 average = average_io_smi(port, value, count)
107 …print "Average of {} SMIs (via outb, port={:#x}, value={:#x}): {}".format(count, port, value, bits…
/openbmc/bmcweb/redfish-core/include/utils/
H A Dtelemetry_utils.hpp136 "xyz.openbmc_project.Telemetry.Report.OperationType.Average") in toRedfishCollectionFunction()
138 return metric_report_definition::CalculationAlgorithmEnum::Average; in toRedfishCollectionFunction()
158 if (redfishValue == "Average") in toDbusCollectionFunction()
160 return "xyz.openbmc_project.Telemetry.Report.OperationType.Average"; in toDbusCollectionFunction()
/openbmc/phosphor-dbus-interfaces/yaml/org/open_power/Sensor/Aggregation/History/
H A DAverage.interface.yaml4 duration the average is calculated over.
28 An array of timestamp, average value tuples. The timestamp is the
/openbmc/openbmc-test-automation/lib/
H A Dopen_power_utils.robot174 … (e.g. "/org/open_power/sensors/aggregation/per_30s/ps0_input_power/average").
202 ... average list URIs.
207 # avgs[0]: /org/open_power/sensors/aggregation/per_30s/ps0_input_power/average
208 # avgs[1]: /org/open_power/sensors/aggregation/per_30s/ps1_input_power/average
216 # (e.g. "base path + aggregation/per_30s/ps0_input_power/average")
222 # "/org/open_power/sensors/aggregation/per_30s/ps0_input_power/average",
225 # "/org/open_power/sensors/aggregation/per_30s/ps1_input_power/average"
234 Run Keyword If 'average' in '${entry}' Append To List ${power_supply_avg_list} ${entry}
/openbmc/phosphor-virtual-sensor/src/
H A Dcalculate.cpp25 // Average of the two middle values in calculateModifiedMedianValue()
74 {"xyz.openbmc_project.Configuration.Average", calculateAverageValue},

123456789