Home
last modified time | relevance | path

Searched refs:metric (Results 1 - 25 of 123) sorted by relevance

12345

/kernel/linux/linux-5.10/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
68 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 0 metric 1024" false
71 ip -n $ns route append 192.0.2.0/24 dev dummy2 tos 0 metric 1024
72 fib4_trap_check $ns "192.0.2.0/24 dev dummy2 tos 0 metric 1024" true
75 ip -n $ns route prepend 192.0.2.0/24 dev dummy3 tos 0 metric 1024
76 fib4_trap_check $ns "192.0.2.0/24 dev dummy3 tos 0 metric 1024" false
79 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 0 metric 1024" true
98 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 0 metric 1024
99 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 0 metric 1024" false
102 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 2 metric 102
[all...]
/kernel/linux/linux-6.6/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
68 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 0 metric 1024" false
71 ip -n $ns route append 192.0.2.0/24 dev dummy2 tos 0 metric 1024
72 fib4_trap_check $ns "192.0.2.0/24 dev dummy2 tos 0 metric 1024" true
75 ip -n $ns route prepend 192.0.2.0/24 dev dummy3 tos 0 metric 1024
76 fib4_trap_check $ns "192.0.2.0/24 dev dummy3 tos 0 metric 1024" false
79 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 0 metric 1024" true
98 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 0 metric 1024
99 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 0 metric 1024" false
102 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 8 metric 102
[all...]
/kernel/linux/linux-6.6/fs/ceph/
H A Dmetric.c8 #include "metric.h"
31 struct ceph_client_metric *m = &mdsc->metric; in ceph_mdsc_send_metrics()
61 /* encode the cap metric */ in ceph_mdsc_send_metrics()
72 /* encode the read latency 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()
85 /* encode the write latency metric */ in ceph_mdsc_send_metrics()
91 sum = m->metric[METRIC_WRIT in ceph_mdsc_send_metrics()
237 struct ceph_metric *metric; ceph_metric_init() local
[all...]
H A Dmetric.h33 * This will always have the highest metric bit value
58 __le32 type; /* ceph metric type */
64 /* metric caps header */
72 /* metric read latency header */
81 /* metric write latency header */
90 /* metric metadata latency header */
99 /* metric dentry lease header */
107 /* metric opened files header */
114 /* metric pinned i_caps header */
121 /* metric opene
177 struct ceph_metric metric[METRIC_MAX]; global() member
[all...]
H A Ddebugfs.c23 #include "metric.h"
152 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()
212 /* skip 'metadata' as it doesn't use the size 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()
H A DMakefile11 debugfs.o util.o metric.o
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
H A Dfib_offload.sh79 ip -6 route add 2001:db8:3::/64 dev $spine_p1 metric 100
80 ipv6_offload_check "2001:db8:3::/64 dev $spine_p1 metric 100" 1
83 # Append an identical prefix route with an higher metric and check that
85 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 200
86 ipv6_offload_check "2001:db8:3::/64 dev $spine_p1 metric 100" 1
87 check_err $? "lowest metric not offloaded after append"
88 ipv6_offload_check "2001:db8:3::/64 dev $spine_p1 metric 200" 0
89 check_err $? "highest metric offloaded when should not"
91 # Prepend an identical prefix route with lower metric and check that
93 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 1
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/
H A Dfib_offload.sh79 ip -6 route add 2001:db8:3::/64 dev $spine_p1 metric 100
80 ipv6_offload_check "2001:db8:3::/64 dev $spine_p1 metric 100" 1
83 # Append an identical prefix route with an higher metric and check that
85 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 200
86 ipv6_offload_check "2001:db8:3::/64 dev $spine_p1 metric 100" 1
87 check_err $? "lowest metric not offloaded after append"
88 ipv6_offload_check "2001:db8:3::/64 dev $spine_p1 metric 200" 0
89 check_err $? "highest metric offloaded when should not"
91 # Prepend an identical prefix route with lower metric and check that
93 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 1
[all...]
/kernel/linux/linux-6.6/tools/perf/pmu-events/
H A Djevents.py8 import metric namespace
20 # List of regular metric tables.
22 # List of metric tables generated from "/sys" directories.
24 # Mapping between sys event table names and sys metric table names.
40 # Map from the name of a metric group to a description of the group.
126 def add(self, s: str, metric: bool) -> None:
132 if metric:
329 self.metric_expr = metric.ParsePerfJson(jd['MetricExpr']).Simplify()
330 # Note, the metric formula for the threshold isn't parsed as the &
380 def build_c_string(self, 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
42 # Based on an example of a real metric.
99 # Based on an example of a real metric.
/kernel/linux/linux-5.10/tools/perf/util/
H A Dmetricgroup.c111 * metric list.
119 struct metric { struct
167 * metric expression. Note, as find_evsel_group is called in the same order as
173 * @pctx: the parse context for the metric expression.
174 * @metric_no_merge: don't attempt to share events for the metric with other
179 * with the metric.
181 * @return the first metric event or NULL on failure.
266 * The metric leader points to the identically named event in in find_evsel_group()
273 * for each pmu. Set the metric leader of such events to be the in find_evsel_group()
303 struct metric * in metricgroup__setup_events()
806 find_metric(const char *metric, struct pmu_events_map *map) find_metric() argument
966 metricgroup__add_metric(const char *metric, bool metric_no_group, struct strbuf *events, struct list_head *metric_list, struct pmu_events_map *map) metricgroup__add_metric() argument
1058 metric__free_refs(struct metric *metric) metric__free_refs() argument
1140 metricgroup__has_metric(const char *metric) metricgroup__has_metric() argument
[all...]
/kernel/linux/linux-5.10/include/net/
H A Ddst.h149 dst_metric_raw(const struct dst_entry *dst, const int metric) in dst_metric_raw() argument
153 return p[metric-1]; in dst_metric_raw()
157 dst_metric(const struct dst_entry *dst, const int metric) in dst_metric() argument
159 WARN_ON_ONCE(metric == RTAX_HOPLIMIT || in dst_metric()
160 metric == RTAX_ADVMSS || in dst_metric()
161 metric == RTAX_MTU); in dst_metric()
162 return dst_metric_raw(dst, metric); in dst_metric()
176 static inline void dst_metric_set(struct dst_entry *dst, int metric, u32 val) in dst_metric_set() argument
181 p[metric-1] = val; in dst_metric_set()
202 static inline unsigned long dst_metric_rtt(const struct dst_entry *dst, int metric) in dst_metric_rtt() argument
215 dst_metric_locked(const struct dst_entry *dst, int metric) dst_metric_locked() argument
[all...]
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-6.6/tools/perf/util/
H A Dmetricgroup.c117 * The metric under construction. The data held here will be placed in a
120 struct metric { struct
128 /** The name of the metric such as "IPC". */
130 /** Modifier on the metric such as "u" or NULL for none. */
137 * The "ScaleUnit" that scales and adds a unit to the metric during
142 * Optional name of the metric group reported
143 * if the Default metric group is being processed.
149 * Should events of the metric be grouped?
153 * Parsed events for the metric. Optional as events may be taken from a
154 * different metric whos
374 match_pm_metric(const struct pmu_metric *pm, const char *pmu, const char *metric) match_pm_metric() argument
1040 const char *metric; global() member
1061 metricgroup__find_metric(const char *pmu, const char *metric, const struct pmu_metrics_table *table, struct pmu_metric *pm) metricgroup__find_metric() argument
1721 const char *metric; global() member
1732 metricgroup__has_metric(const char *pmu, const char *metric) metricgroup__has_metric() argument
[all...]
/kernel/linux/linux-6.6/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()
211 * prefix but a different metric as the in read_route()
223 route.metric >= prefix_value->metric) { in read_route()
233 prefix_value->metric = route.metric; in read_route()
[all...]
/kernel/linux/linux-5.10/fs/ceph/
H A Dmetric.c8 #include "metric.h"
19 struct ceph_client_metric *m = &mdsc->metric; in ceph_mdsc_send_metrics()
39 /* encode the cap metric */ in ceph_mdsc_send_metrics()
45 cap->hit = cpu_to_le64(percpu_counter_sum(&mdsc->metric.i_caps_hit)); in ceph_mdsc_send_metrics()
46 cap->mis = cpu_to_le64(percpu_counter_sum(&mdsc->metric.i_caps_mis)); in ceph_mdsc_send_metrics()
50 /* encode the read latency metric */ in ceph_mdsc_send_metrics()
62 /* encode the write latency metric */ in ceph_mdsc_send_metrics()
74 /* encode the metadata latency metric */ in ceph_mdsc_send_metrics()
111 * Skip it if MDS doesn't support the metric collection, in metric_get_session()
117 mdsc->metric in metric_get_session()
[all...]
H A DMakefile11 debugfs.o util.o metric.o
/kernel/linux/linux-5.10/samples/bpf/
H A Dxdp_router_ipv4_user.c132 int dst_len, iface, metric; in read_route() member
194 route.metric = atoi(metrics); in read_route()
207 int metric; in read_route() member
243 route.metric, in read_route()
252 prefix_value->metric = route.metric; in read_route()
272 * prefix but a different metric as the in read_route()
284 route.metric >= prefix_value->metric) { in read_route()
294 prefix_value->metric in read_route()
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/
H A Devent.c105 s8 metric = metric_arr[0]; in wlcore_event_rssi_trigger() local
107 wl1271_debug(DEBUG_EVENT, "RSSI trigger metric: %d", metric); in wlcore_event_rssi_trigger()
111 if (metric <= wlvif->rssi_thold) in wlcore_event_rssi_trigger()
118 ieee80211_cqm_rssi_notify(vif, event, metric, in wlcore_event_rssi_trigger()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/mm/damon/
H A Dsysfs-schemes.c609 enum damos_wmark_metric metric; member
617 enum damos_wmark_metric metric, unsigned long interval_us, in damon_sysfs_watermarks_alloc()
626 watermarks->metric = metric; in damon_sysfs_watermarks_alloc()
647 damon_sysfs_wmark_metric_strs[watermarks->metric]); in metric_show()
655 enum damos_wmark_metric metric; in metric_store() local
657 for (metric = 0; metric < NR_DAMOS_WMARK_METRICS; metric++) { in metric_store()
658 if (sysfs_streq(buf, damon_sysfs_wmark_metric_strs[metric])) { in metric_store()
616 damon_sysfs_watermarks_alloc( enum damos_wmark_metric metric, unsigned long interval_us, unsigned long high, unsigned long mid, unsigned long low) damon_sysfs_watermarks_alloc() argument
[all...]
H A Dcore.c1246 static unsigned long damos_wmark_metric_value(enum damos_wmark_metric metric) in damos_wmark_metric_value() argument
1250 switch (metric) { in damos_wmark_metric_value()
1266 unsigned long metric; in damos_wmark_wait_us() local
1268 if (scheme->wmarks.metric == DAMOS_WMARK_NONE) in damos_wmark_wait_us()
1271 metric = damos_wmark_metric_value(scheme->wmarks.metric); in damos_wmark_wait_us()
1273 if (metric > scheme->wmarks.high || scheme->wmarks.low > metric) { in damos_wmark_wait_us()
1277 metric > scheme->wmarks.high ? in damos_wmark_wait_us()
1284 if ((scheme->wmarks.high >= metric in damos_wmark_wait_us()
[all...]
/kernel/linux/linux-6.6/tools/perf/tests/shell/lib/
H A Dperf_metric_validation.py21 self.allresults = dict() # metric results of all workload
28 self.results = dict() # metric results of current workload
83 @returns: lower bound, return inf if the lower bound is a metric value and is not collected
84 upper bound, return -1 if the upper bound is a metric value and is not collected
118 Get value of the metric from self.results.
119 If result of this metric is not provided, the metric name will be added into self.ignoremetics and self.errlist.
120 All future test(s) on this metric will fail.
122 @param name: name of the metric
143 One metric i
[all...]
/kernel/linux/linux-5.10/net/mac80211/
H A Dmesh_hwmp.c105 u32 lifetime, u32 metric, u32 preq_id, in mesh_path_sel_frame_tx()
177 put_unaligned_le32(metric, pos); in mesh_path_sel_frame_tx()
374 * Returns: metric to frame originator or 0 if the frame should not be further
454 new_metric) >= mpath->metric)) { in hwmp_route_info_get()
493 mpath->metric = new_metric; in hwmp_route_info_get()
525 last_hop_metric) > mpath->metric))) in hwmp_route_info_get()
540 mpath->metric = last_hop_metric; in hwmp_route_info_get()
628 target_metric = mpath->metric; in hwmp_preq_frame_process()
697 const u8 *prep_elem, u32 metric) in hwmp_prep_frame_process()
745 ttl, lifetime, metric, in hwmp_prep_frame_process()
100 mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags, const u8 *orig_addr, u32 orig_sn, u8 target_flags, const u8 *target, u32 target_sn, const u8 *da, u8 hop_count, u8 ttl, u32 lifetime, u32 metric, u32 preq_id, struct ieee80211_sub_if_data *sdata) mesh_path_sel_frame_tx() argument
695 hwmp_prep_frame_process(struct ieee80211_sub_if_data *sdata, struct ieee80211_mgmt *mgmt, const u8 *prep_elem, u32 metric) hwmp_prep_frame_process() argument
[all...]
/kernel/linux/linux-6.6/net/mac80211/
H A Dmesh_hwmp.c105 u32 lifetime, u32 metric, u32 preq_id, in mesh_path_sel_frame_tx()
177 put_unaligned_le32(metric, pos); in mesh_path_sel_frame_tx()
379 * Returns: metric to frame originator or 0 if the frame should not be further
460 new_metric) >= mpath->metric)) { in hwmp_route_info_get()
501 mpath->metric = new_metric; in hwmp_route_info_get()
535 last_hop_metric) > mpath->metric))) in hwmp_route_info_get()
552 mpath->metric = last_hop_metric; in hwmp_route_info_get()
642 target_metric = mpath->metric; in hwmp_preq_frame_process()
711 const u8 *prep_elem, u32 metric) in hwmp_prep_frame_process()
759 ttl, lifetime, metric, in hwmp_prep_frame_process()
100 mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags, const u8 *orig_addr, u32 orig_sn, u8 target_flags, const u8 *target, u32 target_sn, const u8 *da, u8 hop_count, u8 ttl, u32 lifetime, u32 metric, u32 preq_id, struct ieee80211_sub_if_data *sdata) mesh_path_sel_frame_tx() argument
709 hwmp_prep_frame_process(struct ieee80211_sub_if_data *sdata, struct ieee80211_mgmt *mgmt, const u8 *prep_elem, u32 metric) hwmp_prep_frame_process() argument
[all...]

Completed in 19 milliseconds

12345