Home
last modified time | relevance | path

Searched refs:metric (Results 1 – 25 of 149) 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()
38 return set_t{metric::SubType::memoryAvailable, in isValidSubType()
39 metric::SubType::memoryBufferedAndCached, in isValidSubType()
40 metric::SubType::memoryFree, 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 = 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.sh67 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 0 metric 1024
71 ip -n $ns route append 192.0.2.0/24 dev dummy2 tos 0 metric 1024
75 ip -n $ns route prepend 192.0.2.0/24 dev dummy3 tos 0 metric 1024
98 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 0 metric 1024
102 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 8 metric 1024
109 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 4 metric 1024
127 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric 1024
131 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric 1022
138 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric 1023
159 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric 1024
[all …]
/openbmc/linux/fs/ceph/
H A Dmetric.c31 struct ceph_client_metric *m = &mdsc->metric; in ceph_mdsc_send_metrics()
78 sum = m->metric[METRIC_READ].latency_sum; in ceph_mdsc_send_metrics()
80 ktime_to_ceph_timespec(&read->avg, m->metric[METRIC_READ].latency_avg); in ceph_mdsc_send_metrics()
81 read->sq_sum = cpu_to_le64(m->metric[METRIC_READ].latency_sq_sum); in ceph_mdsc_send_metrics()
82 read->count = cpu_to_le64(m->metric[METRIC_READ].total); in ceph_mdsc_send_metrics()
91 sum = m->metric[METRIC_WRITE].latency_sum; in ceph_mdsc_send_metrics()
93 ktime_to_ceph_timespec(&write->avg, m->metric[METRIC_WRITE].latency_avg); in ceph_mdsc_send_metrics()
94 write->sq_sum = cpu_to_le64(m->metric[METRIC_WRITE].latency_sq_sum); in ceph_mdsc_send_metrics()
95 write->count = cpu_to_le64(m->metric[METRIC_WRITE].total); in ceph_mdsc_send_metrics()
104 sum = m->metric[METRIC_METADATA].latency_sum; in ceph_mdsc_send_metrics()
[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/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
208 metric = {"MetricId": "Id1", "MetricProperties": [telemetry.metrics[0]]}
209 report_definitions.add_report("Test", metrics=[metric], type="OnRequest")
215 metric_value["MetricId"] == metric["MetricId"]
218 metric_value["MetricProperty"] == metric["MetricProperties"][0]
[all …]
/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/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
85 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 200
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
177 ip -6 route replace 2001:db8:3::/64 metric 100 dev $spine_p2
[all …]
/openbmc/linux/tools/perf/pmu-events/
H A Djevents.py8 import metric
126 def add(self, s: str, metric: bool) -> None:
132 if metric:
329 self.metric_expr = metric.ParsePerfJson(jd['MetricExpr']).Simplify()
380 def build_c_string(self, metric: bool) -> str:
382 for attr in _json_metric_attributes if metric else _json_event_attributes:
384 if metric and x and attr == 'metric_expr':
388 if metric and x and attr == 'metric_threshold':
396 def to_c_string(self, metric: bool) -> str:
399 s = self.build_c_string(metric)
[all …]
H A Dmetric_test.py4 from metric import Constant
5 from metric import Event
6 from metric import Expression
7 from metric import ParsePerfJson
8 from metric import RewriteMetricsInTermsOfOthers
/openbmc/docs/designs/
H A Dtelemetry.md42 - Metric Report Definitions - defines how metric report shall be created (which
44 - Metric Reports - contains actual metric reports containing telemetry data
97 URIs for metric report creation. Those sensors are also used to get URI->D-Bus
110 The time period for calculating aggregated metric is taken from the Redfish
111 Metric Report Definition resource for each sensor's metric.
113 Telemetry service supports creating and managing metric report, which may
114 contain single or multiple metrics from sensors. This metric report is mapped to
117 The diagram below shows the flows for creation and update of metric report.
131 | | with metric | | | |
152 |Periodic metric report update flow| | | |
[all …]
H A Dbmc-health-monitor.md16 For this purpose, there may exist a metric producer (the subject of discussion
17 of this document), and a metric consumer (a program that makes use of health
64 The metric producer should provide
72 - Capability to provide granular details for various metric types, for example -
81 The metric consumer may be written in various different ways. No matter how the
85 The metric consumer is not in the scope of this document.
89 The metric producer is a daemon running on the BMC that performs the required
160 | xyz.openbmc_project.Time.EpochTime | Interface to indicate when the metric was collected. …
162 Each metric will be exposed on a specific object path and above interfaces will
167 |- /xyz/openbmc_project/metric/bmc/memory/total
[all …]
/openbmc/telemetry/src/
H A Dreport.cpp45 toReadingParameters(utils::transform(metrics, [](const auto& metric) { in Report() argument
46 return metric->dumpConfiguration(); in Report()
126 for (auto& metric : metrics) in activate() local
128 metric->initialize(); in activate()
136 for (auto& metric : metrics) in deactivate() local
138 metric->deinitialize(); in deactivate()
149 for (auto& metric : metrics) in getMetricCount() local
151 metricCount += metric->metricCount(); in getMetricCount()
297 utils::transform(metrics, [](const auto& metric) { in makeReportInterface() argument
298 return metric->dumpConfiguration(); in makeReportInterface()
[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/tools/perf/util/
H A Dmetricgroup.c120 struct metric { struct
197 static void metric__free(struct metric *m) in metric__free()
209 static struct metric *metric__new(const struct pmu_metric *pm, in metric__new()
216 struct metric *m; in metric__new()
374 static bool match_pm_metric(const struct pmu_metric *pm, const char *pmu, const char *metric) in match_pm_metric() argument
381 return match_metric(pm->metric_group, metric) || in match_pm_metric()
382 match_metric(pm->metric_name, metric); in match_pm_metric()
799 struct metric *root_metric;
805 const char *metric,
816 struct metric *root_metric,
[all …]
/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()
192 static inline void dst_metric_set(struct dst_entry *dst, int metric, u32 val) in dst_metric_set() argument
197 p[metric-1] = val; in dst_metric_set()
220 static inline unsigned long dst_metric_rtt(const struct dst_entry *dst, int metric) in dst_metric_rtt() argument
233 dst_metric_locked(const struct dst_entry * dst,int metric) dst_metric_locked() argument
[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/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/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
210 Later the individual ratios of L1 metric events for the measurement period can
[all …]
/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/Documentation/networking/
H A Dvrf.rst85 ip route add table 10 unreachable default metric 4278198272
87 This high metric value ensures that the default unreachable route can
90 (lower 3 bytes). Thus the above metric translates to [255/8192].
320 unreachable default metric 4278198272
331 local 2002:1:: dev lo proto none metric 0 pref medium
332 local 2002:1::2 dev lo proto none metric 0 pref medium
333 2002:1::/120 dev eth1 proto kernel metric 256 pref medium
334 local 2002:2:: dev lo proto none metric 0 pref medium
335 local 2002:2::2 dev lo proto none metric 0 pref medium
336 2002:2::/120 dev eth2 proto kernel metric 256 pref medium
[all …]

123456