Home
last modified time | relevance | path

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

12345

/linux-6.12.1/tools/testing/selftests/net/forwarding/
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-6.12.1/fs/ceph/
Dmetric.c31 struct ceph_client_metric *m = &mdsc->metric; in ceph_mdsc_send_metrics()
79 sum = m->metric[METRIC_READ].latency_sum; in ceph_mdsc_send_metrics()
81 ktime_to_ceph_timespec(&read->avg, m->metric[METRIC_READ].latency_avg); in ceph_mdsc_send_metrics()
82 read->sq_sum = cpu_to_le64(m->metric[METRIC_READ].latency_sq_sum); in ceph_mdsc_send_metrics()
83 read->count = cpu_to_le64(m->metric[METRIC_READ].total); in ceph_mdsc_send_metrics()
92 sum = m->metric[METRIC_WRITE].latency_sum; in ceph_mdsc_send_metrics()
94 ktime_to_ceph_timespec(&write->avg, m->metric[METRIC_WRITE].latency_avg); in ceph_mdsc_send_metrics()
95 write->sq_sum = cpu_to_le64(m->metric[METRIC_WRITE].latency_sq_sum); in ceph_mdsc_send_metrics()
96 write->count = cpu_to_le64(m->metric[METRIC_WRITE].total); in ceph_mdsc_send_metrics()
105 sum = m->metric[METRIC_METADATA].latency_sum; in ceph_mdsc_send_metrics()
[all …]
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()
Ddebugfs.c152 struct ceph_client_metric *m = &fsc->mdsc->metric; in metrics_file_show()
176 struct ceph_client_metric *cm = &fsc->mdsc->metric; in metrics_latency_show()
185 m = &cm->metric[i]; in metrics_latency_show()
202 struct ceph_client_metric *cm = &fsc->mdsc->metric; in metrics_size_show()
215 m = &cm->metric[i]; in metrics_size_show()
232 struct ceph_client_metric *m = &fsc->mdsc->metric; in metrics_caps_show()
DMakefile11 debugfs.o util.o metric.o
/linux-6.12.1/tools/testing/selftests/drivers/net/mlxsw/
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-6.12.1/tools/perf/pmu-events/
Djevents.py8 import metric
126 def add(self, s: str, metric: bool) -> None:
132 if metric:
350 self.metric_expr = metric.ParsePerfJson(jd['MetricExpr']).Simplify()
413 def build_c_string(self, metric: bool) -> str:
415 for attr in _json_metric_attributes if metric else _json_event_attributes:
417 if metric and x and attr == 'metric_expr':
421 if metric and x and attr == 'metric_threshold':
429 def to_c_string(self, metric: bool) -> str:
432 s = self.build_c_string(metric)
[all …]
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
/linux-6.12.1/tools/perf/util/
Dmetricgroup.c122 struct metric { struct
199 static void metric__free(struct metric *m) in metric__free()
211 static struct metric *metric__new(const struct pmu_metric *pm, in metric__new()
218 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 …]
/linux-6.12.1/include/net/
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
[all …]
/linux-6.12.1/tools/perf/Documentation/
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 …]
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 p…
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-no-threshold::
374 compute whether a metric has exceeded its threshold expression. This
[all …]
/linux-6.12.1/Documentation/networking/
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-6.12.1/Documentation/userspace-api/media/dvb/
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-6.12.1/tools/perf/tests/shell/lib/
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,
378 def _run_perf(self, metric, workload: str): argument
415 for metric in metrics:
416 data = self._run_perf(metric, wl)
424 for metric in collectlist:
425 data = self._run_perf(metric, workload)
/linux-6.12.1/samples/bpf/
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-6.12.1/mm/damon/
Dcore.c304 enum damos_quota_goal_metric metric, in damos_new_quota_goal() argument
312 goal->metric = metric; in damos_new_quota_goal()
691 dst->metric = src->metric; in damos_commit_quota_goal()
693 if (dst->metric == DAMOS_QUOTA_USER_INPUT) in damos_commit_quota_goal()
726 src_goal->metric, src_goal->target_value); in damos_commit_quota_goals()
1509 switch (goal->metric) { in damos_set_quota_goal_current_value()
1860 static int damos_get_wmark_metric_value(enum damos_wmark_metric metric, in damos_get_wmark_metric_value() argument
1863 switch (metric) { in damos_get_wmark_metric_value()
1880 unsigned long metric; in damos_wmark_wait_us() local
1882 if (damos_get_wmark_metric_value(scheme->wmarks.metric, &metric)) in damos_wmark_wait_us()
[all …]
Dsysfs-schemes.c656 enum damos_wmark_metric metric; member
664 enum damos_wmark_metric metric, unsigned long interval_us, in damon_sysfs_watermarks_alloc() argument
673 watermarks->metric = metric; in damon_sysfs_watermarks_alloc()
694 damon_sysfs_wmark_metric_strs[watermarks->metric]); in metric_show()
702 enum damos_wmark_metric metric; in metric_store() local
704 for (metric = 0; metric < NR_DAMOS_WMARK_METRICS; metric++) { in metric_store()
705 if (sysfs_streq(buf, damon_sysfs_wmark_metric_strs[metric])) { in metric_store()
706 watermarks->metric = metric; in metric_store()
795 __ATTR_RW_MODE(metric, 0600);
831 enum damos_quota_goal_metric metric; member
[all …]
/linux-6.12.1/Documentation/translations/zh_CN/admin-guide/mm/damon/
Dusage.rst83 │ │ │ │ │ │ │ watermarks/metric,interval_us,high,mid,low
263 在水位目录下,存在五个文件(``metric``, ``interval_us``,``high``, ``mid``, and ``low``)
266 可以写入 ``metric`` 文件的关键词和含义如下。
329 # echo free_mem_rate > watermarks/metric
483 <metric> <check interval> <high mark> <middle mark> <low mark>
485 ``<metric>`` 是一个预定义的整数,用于要检查的度量。支持的数字和它们的含义如下。
/linux-6.12.1/Documentation/translations/zh_TW/admin-guide/mm/damon/
Dusage.rst83 │ │ │ │ │ │ │ watermarks/metric,interval_us,high,mid,low
263 在水位目錄下,存在五個文件(``metric``, ``interval_us``,``high``, ``mid``, and ``low``)
266 可以寫入 ``metric`` 文件的關鍵詞和含義如下。
329 # echo free_mem_rate > watermarks/metric
483 <metric> <check interval> <high mark> <middle mark> <low mark>
485 ``<metric>`` 是一個預定義的整數,用於要檢查的度量。支持的數字和它們的含義如下。
/linux-6.12.1/drivers/net/wireless/ti/wlcore/
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-6.12.1/tools/testing/selftests/damon/
D_damon_sysfs.py89 metric = None variable in DamosQuotaGoal
96 def __init__(self, metric, target_value=10000, current_value=0): argument
97 self.metric = metric
106 self.metric)
/linux-6.12.1/include/linux/
Ddamon.h166 enum damos_quota_goal_metric metric; member
273 enum damos_wmark_metric metric; member
733 enum damos_quota_goal_metric metric,
/linux-6.12.1/net/mac80211/
Dmesh_hwmp.c105 u32 lifetime, u32 metric, u32 preq_id, in mesh_path_sel_frame_tx() argument
177 put_unaligned_le32(metric, pos); in mesh_path_sel_frame_tx()
462 new_metric) >= mpath->metric)) { in hwmp_route_info_get()
503 mpath->metric = new_metric; in hwmp_route_info_get()
537 last_hop_metric) > mpath->metric))) in hwmp_route_info_get()
554 mpath->metric = last_hop_metric; in hwmp_route_info_get()
644 target_metric = mpath->metric; in hwmp_preq_frame_process()
713 const u8 *prep_elem, u32 metric) in hwmp_prep_frame_process() argument
761 ttl, lifetime, metric, 0, sdata); in hwmp_prep_frame_process()
/linux-6.12.1/tools/testing/selftests/net/
Dvrf-xfrm-tests.sh96 ip ${ns} route add vrf ${vrf} unreachable default metric 8192
97 ip ${ns} -6 route add vrf ${vrf} unreachable default metric 8192
124 ip -netns ${ns} ro add unreachable default metric 8192
125 ip -netns ${ns} -6 ro add unreachable default metric 8192

12345