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

123

/linux-master/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...]
/linux-master/fs/ceph/
H A Dmetric.c8 #include "metric.h"
31 struct ceph_client_metric *m = &mdsc->metric;
62 /* encode the cap metric */
73 /* encode the read latency metric */
79 sum = m->metric[METRIC_READ].latency_sum;
81 ktime_to_ceph_timespec(&read->avg, m->metric[METRIC_READ].latency_avg);
82 read->sq_sum = cpu_to_le64(m->metric[METRIC_READ].latency_sq_sum);
83 read->count = cpu_to_le64(m->metric[METRIC_READ].total);
86 /* encode the write latency metric */
92 sum = m->metric[METRIC_WRIT
238 struct ceph_metric *metric; 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]; member in struct:ceph_client_metric
[all...]
H A DMakefile11 debugfs.o util.o metric.o
H A Ddebugfs.c23 #include "metric.h"
152 struct ceph_client_metric *m = &fsc->mdsc->metric;
176 struct ceph_client_metric *cm = &fsc->mdsc->metric;
185 m = &cm->metric[i];
202 struct ceph_client_metric *cm = &fsc->mdsc->metric;
212 /* skip 'metadata' as it doesn't use the size metric */
215 m = &cm->metric[i];
232 struct ceph_client_metric *m = &fsc->mdsc->metric;
/linux-master/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...]
/linux-master/include/net/
H A Ddst.h165 dst_metric_raw(const struct dst_entry *dst, const int metric) argument
169 return p[metric-1];
173 dst_metric(const struct dst_entry *dst, const int metric) argument
175 WARN_ON_ONCE(metric == RTAX_HOPLIMIT ||
176 metric == RTAX_ADVMSS ||
177 metric == RTAX_MTU);
178 return dst_metric_raw(dst, metric);
192 static inline void dst_metric_set(struct dst_entry *dst, int metric, u32 val) argument
197 p[metric-1] = val;
220 static inline unsigned long dst_metric_rtt(const struct dst_entry *dst, int metric) argument
226 dst_metric_locked(const struct dst_entry *dst, int metric) argument
[all...]
H A Dip6_fib.h164 * siblings is a list of fib6_info that have the same metric/weight,
572 void fib6_metric_set(struct fib6_info *f6i, int metric, u32 val);
573 static inline bool fib6_metric_locked(struct fib6_info *f6i, int metric) argument
575 return !!(f6i->fib6_metrics->metrics[RTAX_LOCK - 1] & (1 << metric));
/linux-master/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:
349 self.metric_expr = metric.ParsePerfJson(jd['MetricExpr']).Simplify()
350 # Note, the metric formula for the threshold isn't parsed as the &
412 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.
H A Dmetric.py11 """Abstract base class of elements in a metric expression."""
422 """An individual metric that will specifiable on the perf command line."""
455 """Return a leaf metric."""
494 for metric in metric_list:
495 metric.AddToMetricGroup(self)
499 for metric in self.metric_list:
500 metric.AddToMetricGroup(group)
532 """A simple json metric expression decoder.
534 Converts a json encoded metric expression by way of python's ast and
578 metrics (list): pmus, metric name
[all...]
/linux-master/tools/perf/util/
H A Dmetricgroup.c119 * The metric under construction. The data held here will be placed in a
122 struct metric { struct
130 /** The name of the metric such as "IPC". */
132 /** Modifier on the metric such as "u" or NULL for none. */
139 * The "ScaleUnit" that scales and adds a unit to the metric during
144 * Optional name of the metric group reported
145 * if the Default metric group is being processed.
151 * Should events of the metric be grouped?
155 * Parsed events for the metric. Optional as events may be taken from a
156 * different metric whos
374 match_pm_metric(const struct pmu_metric *pm, const char *pmu, const char *metric) argument
1040 const char *metric; member in struct:metricgroup__find_metric_data
1061 metricgroup__find_metric(const char *pmu, const char *metric, const struct pmu_metrics_table *table, struct pmu_metric *pm) argument
1721 const char *metric; member in struct:metricgroup__has_metric_data
1732 metricgroup__has_metric(const char *pmu, const char *metric) argument
[all...]
H A Dmetricgroup.h18 * A node in a rblist keyed by the evsel. The global rblist of metric events
25 bool is_default; /* the metric evsel from the Default metricgroup */
30 * A metric referenced by a metric_expr. When parsing a metric expression IDs
43 * generate a metric value during stat output.
53 * The "ScaleUnit" that scales and adds a unit to the metric during
54 * output. For example, "6.4e-05MiB" means to scale the resulting metric
61 /** Null terminated array of events used by the metric. */
87 bool metricgroup__has_metric(const char *pmu, const char *metric);
/linux-master/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'), description=str()):
12 self.metric: list = metric # multiple metrics in relationship type tests
20 if len(self.metric) > 1:
21 return "\nMetric Relationship Error: \tThe collected value of metric {0}\n\
24 \tRelationship rule description: \'{5}\'".format(self.metric, self.collectedValue, self.workloads,
28 \tworkload(s): {1}".format(self.metric, self.workloads)
30 return "\nWrong Metric Value Error: \tThe collected value of metric {0}\n\
33 .format(self.metric, self.collectedValue, self.workloads,
49 self.allresults = dict() # metric result
[all...]
/linux-master/samples/bpf/
H A Dxdp_router_ipv4_user.c101 int dst_len, iface, metric; member in struct:route_table
152 route.metric = atoi(metrics);
161 int metric; member in struct:trie_value
198 prefix_value->metric = route.metric;
211 * prefix but a different metric as the
223 route.metric >= prefix_value->metric) {
233 prefix_value->metric = route.metric;
[all...]
H A Dxdp_router_ipv4.bpf.c20 int metric; member in struct:trie_value
/linux-master/mm/damon/
H A Dsysfs-schemes.c654 enum damos_wmark_metric metric; member in struct:damon_sysfs_watermarks
662 enum damos_wmark_metric metric, unsigned long interval_us,
671 watermarks->metric = metric;
692 damon_sysfs_wmark_metric_strs[watermarks->metric]);
700 enum damos_wmark_metric metric; local
702 for (metric = 0; metric < NR_DAMOS_WMARK_METRICS; metric++) {
703 if (sysfs_streq(buf, damon_sysfs_wmark_metric_strs[metric])) {
661 damon_sysfs_watermarks_alloc( enum damos_wmark_metric metric, unsigned long interval_us, unsigned long high, unsigned long mid, unsigned long low) argument
829 enum damos_quota_goal_metric metric; member in struct:damos_sysfs_quota_goal
[all...]
H A Dcore.c304 enum damos_quota_goal_metric metric,
312 goal->metric = metric;
1152 switch (goal->metric) {
1483 static unsigned long damos_wmark_metric_value(enum damos_wmark_metric metric) argument
1485 switch (metric) {
1501 unsigned long metric; local
1503 if (scheme->wmarks.metric == DAMOS_WMARK_NONE)
1506 metric = damos_wmark_metric_value(scheme->wmarks.metric);
303 damos_new_quota_goal( enum damos_quota_goal_metric metric, unsigned long target_value) argument
[all...]
/linux-master/drivers/net/wireless/ti/wlcore/
H A Devent.c114 s8 metric = metric_arr[0]; local
116 wl1271_debug(DEBUG_EVENT, "RSSI trigger metric: %d", metric);
120 if (metric <= wlvif->rssi_thold)
127 ieee80211_cqm_rssi_notify(vif, event, metric,
/linux-master/include/linux/
H A Ddamon.h130 * enum damos_quota_goal_metric - Represents the metric to be used as the goal
146 * @metric: Metric to be used for representing the goal.
147 * @target_value: Target value of @metric to achieve with the tuning.
148 * @current_value: Current value of @metric.
157 * If @metric is DAMOS_QUOTA_USER_INPUT, @current_value should be manually
159 * DAMON sets @current_value with self-measured value of @metric.
162 enum damos_quota_goal_metric metric; member in struct:damos_quota_goal
165 /* metric-dependent fields */
240 * enum damos_wmark_metric - Represents the watermark metric.
254 * @metric
270 enum damos_wmark_metric metric; member in struct:damos_watermarks
[all...]
/linux-master/tools/testing/selftests/net/
H A Dtraceroute.sh80 ip netns exec ${ns} ip ro add unreachable default metric 8192
81 ip netns exec ${ns} ip -6 ro add unreachable default metric 8192
H A 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
/linux-master/net/mac80211/
H A Dmesh_hwmp.c105 u32 lifetime, u32 metric, u32 preq_id,
177 put_unaligned_le32(metric, pos);
381 * Returns: metric to frame originator or 0 if the frame should not be further
462 new_metric) >= mpath->metric)) {
503 mpath->metric = new_metric;
537 last_hop_metric) > mpath->metric)))
554 mpath->metric = last_hop_metric;
644 target_metric = mpath->metric;
713 const u8 *prep_elem, u32 metric)
761 ttl, lifetime, metric,
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) argument
711 hwmp_prep_frame_process(struct ieee80211_sub_if_data *sdata, struct ieee80211_mgmt *mgmt, const u8 *prep_elem, u32 metric) argument
[all...]
/linux-master/tools/testing/selftests/net/mptcp/
H A Dsimult_flows.sh85 ip -net "$ns1" route add default via 10.0.2.2 metric 101
86 ip -net "$ns1" route add default via dead:beef:2::2 metric 101
/linux-master/tools/perf/
H A Dbuiltin-kvm.c133 #define EV_METRIC_CMP(metric) \
134 static int64_t ev_cmp_##metric(struct perf_hpp_fmt *fmt __maybe_unused, \
146 return cmp_event_##metric(event_left, event_right, \
156 #define EV_METRIC_ENTRY(metric) \
157 static int ev_entry_##metric(struct perf_hpp_fmt *fmt, \
168 get_event_##metric(event, perf_kvm->trace_vcpu)); \
240 #define EV_METRIC_PERCENT(metric) \
241 static int ev_percent_##metric(struct hist_entry *he) \
249 return percent(get_event_##metric(event, perf_kvm->trace_vcpu), \
250 perf_kvm->total_##metric); \
[all...]

Completed in 258 milliseconds

123