Home
last modified time | relevance | path

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

1234

/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 …]
/linux/fs/ceph/
H A Dmetric.c105 struct ceph_client_metric *m = &mdsc->metric; in ceph_mdsc_send_metrics()
184 sum = m->metric[METRIC_READ].latency_sum; in ceph_mdsc_send_metrics()
186 ktime_to_ceph_timespec(&read->avg, m->metric[METRIC_READ].latency_avg); in ceph_mdsc_send_metrics()
187 read->sq_sum = cpu_to_le64(m->metric[METRIC_READ].latency_sq_sum); in ceph_mdsc_send_metrics()
188 read->count = cpu_to_le64(m->metric[METRIC_READ].total); in ceph_mdsc_send_metrics()
197 sum = m->metric[METRIC_WRITE].latency_sum; in ceph_mdsc_send_metrics()
199 ktime_to_ceph_timespec(&write->avg, m->metric[METRIC_WRITE].latency_avg); in ceph_mdsc_send_metrics()
200 write->sq_sum = cpu_to_le64(m->metric[METRIC_WRITE].latency_sq_sum); in ceph_mdsc_send_metrics()
201 write->count = cpu_to_le64(m->metric[METRIC_WRITE].total); in ceph_mdsc_send_metrics()
210 sum = m->metric[METRIC_METADATA].latency_sum; in ceph_mdsc_send_metrics()
[all …]
H A Dmetric.h214 struct ceph_metric metric[METRIC_MAX]; member
257 ceph_update_metrics(&m->metric[METRIC_READ], in ceph_update_read_metrics()
264 ceph_update_metrics(&m->metric[METRIC_WRITE], in ceph_update_write_metrics()
271 ceph_update_metrics(&m->metric[METRIC_METADATA], in ceph_update_metadata_metrics()
278 ceph_update_metrics(&m->metric[METRIC_COPYFROM], in ceph_update_copyfrom_metrics()
H A Ddebugfs.c182 struct ceph_client_metric *m = &fsc->mdsc->metric; in metrics_file_show()
206 struct ceph_client_metric *cm = &fsc->mdsc->metric; in metrics_latency_show()
215 m = &cm->metric[i]; in metrics_latency_show()
232 struct ceph_client_metric *cm = &fsc->mdsc->metric; in metrics_size_show()
245 m = &cm->metric[i]; in metrics_size_show()
262 struct ceph_client_metric *m = &fsc->mdsc->metric; in metrics_caps_show()
477 if (mdsc->metric.session) { in metric_features_show()
479 session_features = mdsc->metric.session->s_features; in metric_features_show()
/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 …]
/linux/tools/perf/pmu-events/
H A Djevents.py8 import metric
131 def add(self, s: str, metric: bool) -> None:
137 if metric:
364 self.metric_expr = metric.ParsePerfJson(jd['MetricExpr']).Simplify()
434 def build_c_string(self, metric: bool) -> str:
436 for attr in _json_metric_attributes if metric else _json_event_attributes:
438 if metric and x and attr == 'metric_expr':
442 if metric and x and attr == 'metric_threshold':
450 def to_c_string(self, metric: bool) -> str:
456 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
H A Dempty-pmu-events.c2779 /* Struct used to make the PMU metric table implementation opaque to callers. */
3066 const char *metric, in pmu_metrics_table__find_metric_pmu() argument
3080 if (!pm.metric_name && !metric) in pmu_metrics_table__find_metric_pmu()
3083 if (!pm.metric_name && metric) { in pmu_metrics_table__find_metric_pmu()
3087 if (pm.metric_name && !metric) { in pmu_metrics_table__find_metric_pmu()
3092 cmp = strcmp(pm.metric_name, metric); in pmu_metrics_table__find_metric_pmu()
3125 const char *metric, in pmu_metrics_table__find_metric() argument
3139 ret = pmu_metrics_table__find_metric_pmu(table, table_pmu, metric, fn, data); in pmu_metrics_table__find_metric()
H A DBuild48 GEN_METRIC_DEPS := pmu-events/metric.py pmu-events/common_metrics.py
50 model_name = $(shell echo $(1)|sed -e 's@.\+/\(.*\)/extra-metric.*\.json@\1@')
51 vendor_name = $(shell echo $(1)|sed -e 's@.\+/\(.*\)/[^/]*/extra-metric.*\.json@\1@')
150 METRIC_PY = pmu-events/metric.py
152 # Rule to run the metric test.
H A Dcommon_metrics.py2 from metric import (d_ratio, Event, Metric, MetricGroup)
/linux/tools/perf/python/
H A Dilist.py61 for metric in perf.metrics():
62 if metric["MetricName"] != self.metric_name:
64 if self.metric_pmu and metric["PMU"] != self.metric_pmu:
66 desc = get_info(metric, "BriefDescription")
67 desc += get_info(metric, "PublicDescription")
68 desc += get_info(metric, "MetricExpr")
69 desc += get_info(metric, "MetricThreshold")
463 for metric in perf.metrics():
464 groups.update(metric["MetricGroup"])
467 for metric in sorted(perf.metrics(), key=lambda x: x["MetricName"]):
[all …]
/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 …]
H A Dperf-stat.txt100 allows multiple perf-stat sessions that are counting the same metric (cycles,
278 If the metric exists, it is calculated by the counts generated in this interval and the metric is printed after #.
293 --metric-only::
353 --metric-no-group::
354 By default, events to compute a metric are placed in weak groups. The
356 --metric-no-group option places events outside of groups and may
362 --metric-no-merge::
363 By default metric events in different weak groups can be shared if one
372 --metric
[all...]
/linux/tools/perf/util/
H A Dmetricgroup.c123 struct metric { struct
209 static void metric__free(struct metric *m) in metric__free()
221 static struct metric *metric__new(const struct pmu_metric *pm, in metric__new()
229 struct metric *m; in metric__new()
694 struct metric *root_metric;
706 struct metric *root_metric,
746 struct metric *root_metric, in resolve_metric()
832 struct metric *root_metric, in __add_metric()
951 struct metric *root_metric, in add_metric()
989 const struct metric *left = container_of(l, struct metric, nd); in metric_list_cmp()
[all …]
/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 …]
/linux/Documentation/userspace-api/media/dvb/
H A Dfrontend-stat-properties.rst20 plus one metric per each carrier group (called "layer" on ISDB).
24 to the global metric. The other elements of the array represent each
61 Possible scales for this metric are:
80 Possible scales for this metric are:
111 Possible scales for this metric are:
139 Possible scales for this metric are:
168 Possible scales for this metric are:
196 Possible scales for this metric are:
217 Possible scales for this metric are:
239 Possible scales for this metric are:
/linux/tools/perf/tests/shell/lib/
H A Dperf_metric_validation.py11 …def __init__(self, metric: list[str], wl: str, value: list[float], low: float, up=float('nan'), de…
12 self.metric: list = metric # multiple metrics in relationship type tests
20 if len(self.metric) > 1:
33 .format(self.metric, self.collectedValue, self.workloads,
380 def _run_perf(self, metric, workload: str): argument
417 for metric in metrics:
418 data = self._run_perf(metric, wl)
426 for metric in collectlist:
427 data = self._run_perf(metric, workload)
H A Dstat_output.sh159 perf stat --metric-only $2 -M page_faults_per_second true
160 commachecker --metric-only
/linux/samples/bpf/
H A Dxdp_router_ipv4_user.c101 int dst_len, iface, metric; in read_route() member
152 route.metric = atoi(metrics); in read_route()
161 int metric; in read_route() member
198 prefix_value->metric = route.metric; in read_route()
223 route.metric >= prefix_value->metric) { in read_route()
233 prefix_value->metric = route.metric; in read_route()
/linux/mm/damon/
H A Dsysfs-schemes.c851 enum damos_wmark_metric metric; member
859 enum damos_wmark_metric metric, unsigned long interval_us, in damon_sysfs_watermarks_alloc() argument
867 watermarks->metric = metric; in damon_sysfs_watermarks_alloc()
876 enum damos_wmark_metric metric; member
883 .metric = DAMOS_WMARK_NONE,
887 .metric = DAMOS_WMARK_FREE_MEM_RATE,
903 if (metric_name->metric == watermarks->metric) in metric_show()
921 watermarks->metric = metric_name->metric; in metric_store()
1010 __ATTR_RW_MODE(metric, 0600);
1046 enum damos_quota_goal_metric metric; member
[all …]
H A Dcore.c355 enum damos_quota_goal_metric metric, in damos_new_quota_goal() argument
363 goal->metric = metric; in damos_new_quota_goal()
847 switch (dst->metric) { in damos_commit_quota_goal_union()
865 dst->metric = src->metric; in damos_commit_quota_goal()
867 if (dst->metric == DAMOS_QUOTA_USER_INPUT) in damos_commit_quota_goal()
901 src_goal->metric, src_goal->target_value); in damos_commit_quota_goals()
2237 if (goal->metric == DAMOS_QUOTA_NODE_MEM_USED_BP) in damos_get_node_mem_bp()
2244 if (goal->metric == DAMOS_QUOTA_NODE_MEM_USED_BP) in damos_get_node_mem_bp()
2260 if (goal->metric == DAMOS_QUOTA_NODE_MEMCG_USED_BP) in damos_get_node_memcg_used_bp()
2268 if (goal->metric == DAMOS_QUOTA_NODE_MEMCG_USED_BP) in damos_get_node_memcg_used_bp()
[all …]
/linux/tools/testing/selftests/damon/
H A Dsysfs.py41 assert_true(dump['metric'] == wmark_metric_val[watermarks.metric],
42 'metric', dump)
55 assert_true(dump['metric'] == metric_val[qgoal.metric], 'metric', dump)
58 if qgoal.metric == 'user_input':
237 metric='node_mem_used_bp',
246 metric = 'free_mem_rate', interval = 500000, # 500 ms
H A D_damon_sysfs.py93 metric = None variable in DamosQuotaGoal
101 def __init__(self, metric, target_value=10000, current_value=0, nid=0): argument
102 self.metric = metric
112 self.metric)
203 metric = None
210 def __init__(self, metric='none', interval=0, high=0, mid=0, low=0):
211 self.metric = metric
221 err = write_file(os.path.join(self.sysfs_dir(), 'metric'), sel
197 metric = None global() variable in DamosWatermarks
204 __init__(self, metric='none', interval=0, high=0, mid=0, low=0) global() argument
[all...]
/linux/drivers/net/wireless/ti/wlcore/
H A Devent.c114 s8 metric = metric_arr[0]; in wlcore_event_rssi_trigger() local
116 wl1271_debug(DEBUG_EVENT, "RSSI trigger metric: %d", metric); in wlcore_event_rssi_trigger()
120 if (metric <= wlvif->rssi_thold) in wlcore_event_rssi_trigger()
127 ieee80211_cqm_rssi_notify(vif, event, metric, in wlcore_event_rssi_trigger()
/linux/tools/perf/tests/shell/
H A Dstat+json_output.sh184 perf stat -j --metric-only -M page_faults_per_second -o "${stat_output}" true
185 $PYTHON $pythonchecker --metric-only --file "${stat_output}"

1234