Home
last modified time | relevance | path

Searched refs:metric (Results 1 – 25 of 97) 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.c26 #include "metric.h"
183 struct ceph_client_metric *m = &fsc->mdsc->metric; in metrics_file_show()
207 struct ceph_client_metric *cm = &fsc->mdsc->metric; in metrics_latency_show()
216 m = &cm->metric[i]; in metrics_latency_show()
233 struct ceph_client_metric *cm = &fsc->mdsc->metric; in metrics_size_show()
243 /* skip 'metadata' as it doesn't use the size metric */ in metrics_size_show()
246 m = &cm->metric[i]; in metrics_size_show()
263 struct ceph_client_metric *m = &fsc->mdsc->metric; in metrics_caps_show()
563 if (mdsc->metric.session) { in ceph_fs_debugfs_init()
565 session_features = mdsc->metric in ceph_fs_debugfs_init()
[all...]
/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
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.
131 def add(self, s: str, metric: bool) -> None:
137 if metric:
364 self.metric_expr = metric.ParsePerfJson(jd['MetricExpr']).Simplify()
365 # Note, the metric formula for the threshold isn't parsed as the &
434 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
H A Dempty-pmu-events.c5404 /* Struct used to make the PMU metric table implementation opaque to callers. */
5693 const char *metric,
5707 if (!pm.metric_name && !metric)
5710 if (!pm.metric_name && metric) {
5714 if (pm.metric_name && !metric) {
5719 cmp = strcmp(pm.metric_name, metric);
5751 const char *metric,
5765 ret = pmu_metrics_table__find_metric_pmu(table, table_pmu, metric, fn, data);
3066 pmu_metrics_table__find_metric_pmu(const struct pmu_metrics_table * table,const struct pmu_table_entry * pmu,const char * metric,pmu_metric_iter_fn fn,void * data) pmu_metrics_table__find_metric_pmu() argument
3125 pmu_metrics_table__find_metric(const struct pmu_metrics_table * table,struct perf_pmu * pmu,const char * metric,pmu_metric_iter_fn fn,void * data) pmu_metrics_table__find_metric() argument
H A DBuild57 GEN_METRIC_DEPS := pmu-events/metric.py pmu-events/common_metrics.py
160 METRIC_PY = pmu-events/metric.py
162 # 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.c120 * The metric under construction. The data held here will be placed in a
123 struct metric { struct
131 /** The name of the metric such as "IPC". */ argument
133 /** Modifier on the metric such as "u" or NULL for none. */
140 * The "ScaleUnit" that scales and adds a unit to the metric during argument
145 * Optional name of the metric group reported
146 * if the Default metric group is being processed.
152 * Should events of the metric be grouped?
155 /** Show events even if in the Default metric group. */ argument
158 * Parsed events for the metric argument
132 metric_namemetric global() argument
136 metric_exprmetric global() argument
138 metric_thresholdmetric global() argument
143 metric_unitmetric global() argument
148 default_metricgroup_namemetric global() argument
150 metric_refsmetric global() argument
170 evlistmetric metric__watchdog_constraint_hint() argument
[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.c1020 enum damos_wmark_metric metric;
1028 enum damos_wmark_metric metric, unsigned long interval_us,
1036 watermarks->metric = metric;
1045 enum damos_wmark_metric metric; member
1052 .metric = DAMOS_WMARK_NONE, in damos_sysfs_quota_goal_alloc()
1056 .metric = DAMOS_WMARK_FREE_MEM_RATE,
1072 if (metric_name->metric == watermarks->metric)
1090 watermarks->metric
850 enum damos_wmark_metric metric; global() member
858 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
875 enum damos_wmark_metric metric; global() member
1058 enum damos_quota_goal_metric metric; global() member
[all...]
H A Dcore.c491 enum damos_quota_goal_metric metric, in damon_destroy_scheme()
499 goal->metric = metric;
975 switch (dst->metric) { in damos_commit_filter()
993 dst->metric = src->metric; in damos_commit_core_filters()
995 if (dst->metric == DAMOS_QUOTA_USER_INPUT) in damos_commit_core_filters()
1029 src_goal->metric, src_goal->target_value); in damos_commit_ops_filters()
1583 /* node_eligible_mem_bp metric requires PADDR ops */
1589 if (goal->metric
355 damos_new_quota_goal(enum damos_quota_goal_metric metric,unsigned long target_value) damos_new_quota_goal() argument
2806 damos_get_wmark_metric_value(enum damos_wmark_metric metric,unsigned long * metric_value) damos_get_wmark_metric_value() argument
2826 unsigned long metric; damos_wmark_wait_us() local
[all...]
/linux/tools/testing/selftests/damon/
H A Dsysfs.py44 assert_true(dump['metric'] == wmark_metric_val[watermarks.metric],
45 'metric', dump)
58 assert_true(dump['metric'] == metric_val[qgoal.metric], 'metric', dump)
61 if qgoal.metric == 'user_input':
284 metric='node_mem_used_bp',
295 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)
220 metric = None
227 def __init__(self, metric='none', interval=0, high=0, mid=0, low=0):
228 self.metric = metric
238 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