Home
last modified time | relevance | path

Searched refs:metric (Results 1 – 25 of 146) sorted by relevance

123456

/openbmc/phosphor-health-monitor/test/
H A Dtest_health_metric_config.cpp12 using namespace phosphor::health::metric::config;
22 bool isValidSubType(metric::Type type, metric::SubType subType) in isValidSubType()
28 using set_t = std::set<metric::SubType>; in isValidSubType()
32 case metric::Type::cpu: in isValidSubType()
33 return set_t{metric::SubType::cpuTotal, metric::SubType::cpuKernel, in isValidSubType()
34 metric::SubType::cpuUser} in isValidSubType()
37 case metric::Type::memory: in isValidSubType()
40 metric::SubType::memoryFree, in isValidSubType()
45 case metric::Type::storage: in isValidSubType()
46 case metric::Type::inode: in isValidSubType()
[all …]
H A Dtest_health_metric.cpp9 namespace ConfigIntf = phosphor::health::metric::config;
11 sdbusplus::server::xyz::openbmc_project::metric::Value::namespace_path;
12 using namespace phosphor::health::metric;
53 auto metric = std::make_unique<HealthMetric>(unmockedBus, Type::cpu, config, in TEST_F() local
87 auto metric = std::make_unique<HealthMetric>(bus, Type::cpu, config, in TEST_F() local
90 metric->update(MValue(1351, 1500)); in TEST_F()
92 metric->update(MValue(1399, 1500)); in TEST_F()
94 metric->update(MValue(1199, 1500)); in TEST_F()
H A Dtest_health_metric_collection.cpp8 namespace ConfigIntf = phosphor::health::metric::config;
9 namespace MetricIntf = phosphor::health::metric;
10 namespace CollectionIntf = phosphor::health::metric::collection;
13 sdbusplus::common::xyz::openbmc_project::metric::Value::namespace_path;
30 sdbusplus::common::xyz::openbmc_project::metric::Value::interface;
/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dfib_offload_lib.sh187 local metric
197 for metric in $(seq 1024 1026); do
198 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric $metric
324 local metric
333 for metric in $(seq 1 20); do
334 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric $metric
707 ip -n $ns route del 2001:db8:10::/64 metric 1025
721 ip -n $ns route del 2001:db8:10::/64 metric 1024
747 ip -n $ns route del 2001:db8:10::/64 metric 1024
760 ip -n $ns route del 2001:db8:10::/64 metric 1025
[all …]
/openbmc/linux/fs/ceph/
H A Dmetric.c203 mdsc->metric.session = s; in metric_get_session()
237 struct ceph_metric *metric; in ceph_metric_init() local
262 metric = &m->metric[i]; in ceph_metric_init()
264 metric->size_sum = 0; in ceph_metric_init()
265 metric->size_min = U64_MAX; in ceph_metric_init()
266 metric->size_max = 0; in ceph_metric_init()
267 metric->total = 0; in ceph_metric_init()
268 metric->latency_sum = 0; in ceph_metric_init()
269 metric->latency_avg = 0; in ceph_metric_init()
270 metric->latency_sq_sum = 0; in ceph_metric_init()
[all …]
H A Dmetric.h177 struct ceph_metric metric[METRIC_MAX]; member
220 ceph_update_metrics(&m->metric[METRIC_READ], in ceph_update_read_metrics()
227 ceph_update_metrics(&m->metric[METRIC_WRITE], in ceph_update_write_metrics()
234 ceph_update_metrics(&m->metric[METRIC_METADATA], in ceph_update_metadata_metrics()
241 ceph_update_metrics(&m->metric[METRIC_COPYFROM], in ceph_update_copyfrom_metrics()
/openbmc/openbmc/poky/meta/recipes-core/busybox/files/
H A Dsimple.script59 metric=10
62 … /SBIN_DIR/ip route add default via $i metric $metric dev $interface
64 … /SBIN_DIR/route add default gw $i dev $interface metric $metric 2>/dev/null
66 metric=$(($metric + 1))
/openbmc/telemetry/redfish-tests/
H A Dtest_telemetry.py166 metric = {"MetricId": "Id1", "MetricProperties": [telemetry.metrics[0]]}
167 report_definitions.add_report("Test", metrics=[metric])
171 r["Metrics"][0]["MetricId"] == metric["MetricId"]
174 r["Metrics"][0]["MetricProperties"] == metric["MetricProperties"]
179 metric = {
186 "Test", metrics=[metric], code=RedfishHttpStatus.bad_request
215 metric_value["MetricId"] == metric["MetricId"]
218 metric_value["MetricProperty"] == metric["MetricProperties"][0]
230 metrics=[metric],
240 metric_value["MetricId"] == metric["MetricId"]
[all …]
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dfib_offload.sh79 ip -6 route add 2001:db8:3::/64 dev $spine_p1 metric 100
93 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 10
117 ip -6 route add 2001:db8:3::/64 metric 100 \
124 ip -6 route append 2001:db8:3::/64 metric 100 \
132 ip -6 route add 2001:db8:3::/64 metric 100 \
140 ip -6 route append 2001:db8:3::/64 metric 200 \
149 ip -6 route append 2001:db8:3::/64 metric 10 \
174 ip -6 route add 2001:db8:3::/64 metric 100 dev $spine_p1
182 ip -6 route replace 2001:db8:3::/64 metric 100 \
197 ip -6 route replace 2001:db8:3::/64 metric 100 \
[all …]
/openbmc/linux/tools/perf/pmu-events/
H A Djevents.py8 import metric
132 if metric:
399 s = self.build_c_string(metric)
530 if metric.pmu != last_pmu:
537 last_pmu = metric.pmu
538 pmus.add((metric.pmu, pmu_name))
540 _args.output_file.write(metric.to_c_string(metric=True))
584 _bcs.add(mgroup, metric=True)
594 _bcs.add(event.build_c_string(metric=False), metric=False)
596 _bcs.add(pmu_name, metric=True)
[all …]
/openbmc/telemetry/src/
H A Dreport.cpp48 return metric->dumpConfiguration(); in Report()
128 for (auto& metric : metrics) in activate() local
130 metric->initialize(); in activate()
138 for (auto& metric : metrics) in deactivate() local
140 metric->deinitialize(); in deactivate()
151 for (auto& metric : metrics) in getMetricCount() local
402 for (auto& metric : self.metrics) in timerProcForOnChangeReport() local
450 for (const auto& metric : metrics) in updateReadings() local
458 metric->getUpdatedReadings()) in updateReadings()
507 [](const auto& metric) { return metric->dumpConfiguration(); }); in storeConfiguration() argument
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Metric/
H A DValue.interface.yaml9 The current metric value.
18 The maximum supported metric value.
25 The minimum supported metric value.
29 The unit for metric value. For example, memory in bytes, CPU in
60 - namespace: /xyz/openbmc_project/metric
66 The total memory metric.
70 The free memory metric.
74 The available memory metric.
106 and free storage metric gets exposed via Redfish.
121 value: /xyz/openbmc_project/metric/bmc
/openbmc/docs/designs/
H A Dtelemetry.md266 metric reports. All operations on metric reports shall be done in the Telemetry
325 For discrete metric type, trigger parameters contain:
356 metric report update.
358 In order to assign trigger to specific metric, the metric parameter is defined.
469 in metric report. Metric definition is assigned to particular metric type and it
568 Sample metric report definition:
600 Sample metric report:
627 Sample trigger, that will trigger metric report update:
786 shall contain creating metric report by POSTing proper metric report definition,
787 reading metric report (using GET on proper URI) and deleting the metric report.
[all …]
H A Dbmc-health-monitor.md64 The metric producer should provide
85 The metric consumer is not in the scope of this document.
167 |- /xyz/openbmc_project/metric/bmc/memory/total
168 |- /xyz/openbmc_project/metric/bmc/memory/free
169 |- /xyz/openbmc_project/metric/bmc/memory/available
170 |- /xyz/openbmc_project/metric/bmc/memory/shared
172 |- /xyz/openbmc_project/metric/bmc/cpu/user
173 |- /xyz/openbmc_project/metric/bmc/cpu/kernel
174 |- /xyz/openbmc_project/metric/bmc/reboot/count
192 /xyz/openbmc_project/metric/device-0/memory/total
[all …]
/openbmc/openbmc/meta-google/recipes-google/networking/files/
H A Dgbmc-ip-monitor-test.sh95 default via 192.168.243.254 dev eno2 proto dhcp metric 100
96 192.168.242.0/23 dev eno2 proto kernel scope link src 192.168.242.57 metric 100
100 ::1 dev lo proto kernel metric 256 pref medium
101 fd01:ff2:5687:4::/64 dev eno2 proto ra metric 100 pref medium
102 fe80::/64 dev eno2 proto kernel metric 100 pref medium
109 [ROUTE]default via 192.168.243.254 dev eno2 proto dhcp metric 100
110 [ROUTE]192.168.242.0/23 dev eno2 proto kernel scope link src 192.168.242.57 metric 100
111 [ROUTE]::1 dev lo proto kernel metric 256 pref medium
112 [ROUTE]fd01:ff2:5687:4::/64 dev eno2 proto ra metric 100 pref medium
113 [ROUTE]fe80::/64 dev eno2 proto kernel metric 100 pref medium
/openbmc/linux/include/net/
H A Ddst.h165 dst_metric_raw(const struct dst_entry *dst, const int metric) in dst_metric_raw() argument
169 return p[metric-1]; in dst_metric_raw()
173 dst_metric(const struct dst_entry *dst, const int metric) in dst_metric() argument
175 WARN_ON_ONCE(metric == RTAX_HOPLIMIT || in dst_metric()
176 metric == RTAX_ADVMSS || in dst_metric()
177 metric == RTAX_MTU); in dst_metric()
178 return dst_metric_raw(dst, metric); in dst_metric()
197 p[metric-1] = val; in dst_metric_set()
222 return msecs_to_jiffies(dst_metric(dst, metric)); in dst_metric_rtt()
233 dst_metric_locked(const struct dst_entry *dst, int metric) in dst_metric_locked() argument
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/ifmetric/ifmetric/
H A Difmetric.8_typo.patch13 …me as first parameter. The second parameter should be the new metric. If ommited the metric 0 (hig…
14 …me as first parameter. The second parameter should be the new metric. If omitted the metric 0 (hig…
/openbmc/linux/tools/perf/util/
H A Dmetricgroup.c120 struct metric { struct
216 struct metric *m; in metric__new()
1068 .metric = metric, in metricgroup__find_metric()
1144 const struct metric *left = container_of(l, struct metric, nd); in metric_list_cmp()
1145 const struct metric *right = container_of(r, struct metric, nd); in metric_list_cmp()
1173 const struct metric *left = container_of(l, struct metric, nd); in default_metricgroup_cmp()
1174 const struct metric *right = container_of(r, struct metric, nd); in default_metricgroup_cmp()
1379 struct metric *m; in find_tool_events()
1406 struct metric *m; in build_combined_expr_ctx()
1536 struct metric *m; in parse_groups()
[all …]
/openbmc/phosphor-health-monitor/
H A Dbmc_health_config_json.md3 This file outlines the format for the supplemental health metric config that can
7 The json config may have following metric types -
16 - This indicates the total memory for the system, which is a constant metric
35 The metric types may have the following attributes:
44 - This indicates the percentage beyond which the metric value change (since
62 - For lower bound, the threshold gets asserted if metric value falls
64 - For upper bound, the threshold gets asserted if metric value goes
H A Dhealth_metric.hpp13 namespace phosphor::health::metric namespace
22 sdbusplus::common::xyz::openbmc_project::metric::Value::namespace_path;
24 sdbusplus::common::xyz::openbmc_project::metric::Value::bmc;
40 using MType = phosphor::health::metric::Type;
H A Dhealth_monitor.hpp11 namespace ConfigIntf = phosphor::health::metric::config;
12 namespace MetricIntf = phosphor::health::metric;
13 namespace CollectionIntf = phosphor::health::metric::collection;
H A Dhealth_metric_collection.hpp5 namespace phosphor::health::metric::collection namespace
7 namespace ConfigIntf = phosphor::health::metric::config;
8 namespace MetricIntf = phosphor::health::metric;
/openbmc/openbmc-test-automation/lib/
H A Dbmc_ipv6_utils.robot78 # unreachable ::/96 dev lo metric 1024 error -113
79 # unreachable ::ffff:0.0.0.0/96 dev lo metric 1024 error -113
80 # 2xxx:xxxx:0:1::/64 dev eth0 proto kernel metric 256
81 # fe80::/64 dev eth1 proto kernel metric 256
82 # fe80::/64 dev eth0 proto kernel metric 256
83 # fe80::/64 dev eth2 proto kernel metric 256
/openbmc/linux/tools/perf/Documentation/
H A Dtopdown.txt40 metric register that reports slots ratios for the different bottleneck
53 metric event, and allow user programs to read the performance counters.
58 The metric events are mapped to the pseudo event event=0x00, umask=0x8X.
60 { .config = 0x8000, .type = PERF_TYPE_RAW } for Retiring metric event
124 #define RDPMC_METRIC (1 << 29) /* return metric counters */
158 The binary ratios in the metric value can be converted to float ratios:
162 /* L1 Topdown metric events */
169 * L2 Topdown metric events.
179 The ratios in the metric accumulate for the time when the counter
296 Four pseudo TopDown metric events are exposed for the end-users,
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Telemetry/
H A DReport.interface.yaml9 The Update method is defined for the on demand metric report update.
22 Collection of metric parameters. Single entry consists of: array of
23 [sensor path, metadata] tuples, operation type, metric ID, collection
26 Redfish it shall be metric's URI. Operation type provides knowledge of
29 specifies type of time scope applied to specific metric. Collection
35 and array of metric Id, metadata, reading value and timestamp of
128 The time scope of the related metric values.
132 The corresponding metric apply to a point in time. The reading
136 The corresponding metric apply to a time interval. The reading
142 The corresponding metric apply to a time interval that began on

123456