Home
last modified time | relevance | path

Searched refs:metrics (Results 1 – 25 of 70) sorted by relevance

123

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_cls_redirect.c364 /* Global metrics, per CPU in pkt_parse_ipv6()
401 struct in_addr *next_hop, metrics_t *metrics)
403 metrics->forwarded_packets_total_gre++; in forward_with_gre() argument
429 metrics->errors_total_malformed_encapsulation++; in forward_with_gre()
434 metrics->errors_total_redirect_loop++; in forward_with_gre()
443 metrics->errors_total_malformed_encapsulation++; in forward_with_gre()
454 metrics->errors_total_malformed_encapsulation++; in forward_with_gre()
459 metrics->errors_total_redirect_loop++; in forward_with_gre()
471 metrics->errors_total_malformed_encapsulation++; in forward_with_gre()
480 metrics in forward_with_gre()
530 forward_to_next_hop(struct __sk_buff * skb,encap_headers_t * encap,struct in_addr * next_hop,metrics_t * metrics) forward_to_next_hop() argument
703 classify_icmp(struct __sk_buff * skb,uint8_t proto,struct bpf_sock_tuple * tuple,uint64_t tuplen,metrics_t * metrics) classify_icmp() argument
718 process_icmpv4(buf_t * pkt,metrics_t * metrics) process_icmpv4() argument
765 process_icmpv6(buf_t * pkt,metrics_t * metrics) process_icmpv6() argument
818 process_tcp(buf_t * pkt,void * iph,uint64_t iphlen,metrics_t * metrics) process_tcp() argument
840 process_udp(buf_t * pkt,void * iph,uint64_t iphlen,metrics_t * metrics) process_udp() argument
857 process_ipv4(buf_t * pkt,metrics_t * metrics) process_ipv4() argument
894 process_ipv6(buf_t * pkt,metrics_t * metrics) process_ipv6() argument
937 metrics_t *metrics = get_global_metrics(); cls_redirect() local
[all...]
H A Dtest_cls_redirect_dynptr.c258 /* Global metrics, per CPU
295 metrics_t *metrics) in forward_with_gre() argument
308 metrics->forwarded_packets_total_gre++; in forward_with_gre()
325 metrics->errors_total_malformed_encapsulation++; in forward_with_gre()
330 metrics->errors_total_redirect_loop++; in forward_with_gre()
339 metrics->errors_total_malformed_encapsulation++; in forward_with_gre()
350 metrics->errors_total_malformed_encapsulation++; in forward_with_gre()
355 metrics->errors_total_redirect_loop++; in forward_with_gre()
367 metrics->errors_total_malformed_encapsulation++; in forward_with_gre()
376 metrics in forward_with_gre()
422 forward_to_next_hop(struct __sk_buff * skb,struct bpf_dynptr * dynptr,encap_headers_t * encap,struct in_addr * next_hop,metrics_t * metrics) forward_to_next_hop() argument
590 classify_icmp(struct __sk_buff * skb,uint8_t proto,struct bpf_sock_tuple * tuple,uint64_t tuplen,metrics_t * metrics) classify_icmp() argument
606 process_icmpv4(struct __sk_buff * skb,struct bpf_dynptr * dynptr,__u64 * offset,metrics_t * metrics) process_icmpv4() argument
655 process_icmpv6(struct bpf_dynptr * dynptr,__u64 * offset,struct __sk_buff * skb,metrics_t * metrics) process_icmpv6() argument
707 process_tcp(struct bpf_dynptr * dynptr,__u64 * offset,struct __sk_buff * skb,struct iphdr_info * info,metrics_t * metrics) process_tcp() argument
730 process_udp(struct bpf_dynptr * dynptr,__u64 * offset,struct __sk_buff * skb,struct iphdr_info * info,metrics_t * metrics) process_udp() argument
749 process_ipv4(struct __sk_buff * skb,struct bpf_dynptr * dynptr,__u64 * offset,metrics_t * metrics) process_ipv4() argument
791 process_ipv6(struct __sk_buff * skb,struct bpf_dynptr * dynptr,__u64 * offset,metrics_t * metrics) process_ipv6() argument
848 metrics_t *metrics = get_global_metrics(); cls_redirect() local
[all...]
/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/
H A Dcyan_skillfish_ppt.c137 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in cyan_skillfish_get_smu_metrics_data() local
146 *value = metrics->Current.GfxclkFrequency; in cyan_skillfish_get_smu_metrics_data()
149 *value = metrics->Current.SocclkFrequency; in cyan_skillfish_get_smu_metrics_data()
152 *value = metrics->Current.VclkFrequency; in cyan_skillfish_get_smu_metrics_data()
155 *value = metrics->Current.DclkFrequency; in cyan_skillfish_get_smu_metrics_data()
158 *value = metrics->Current.MemclkFrequency; in cyan_skillfish_get_smu_metrics_data()
161 *value = metrics->Current.CurrentSocketPower; in cyan_skillfish_get_smu_metrics_data()
164 *value = metrics->Average.CurrentSocketPower; in cyan_skillfish_get_smu_metrics_data()
167 *value = metrics->Current.GfxTemperature / 100 * in cyan_skillfish_get_smu_metrics_data()
171 *value = metrics->Current.SocTemperature / 100 * in cyan_skillfish_get_smu_metrics_data()
[all …]
/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/
H A Dsmu_v13_0_4_ppt.c256 SmuMetrics_t metrics; in smu_v13_0_4_get_gpu_metrics() local
259 ret = smu_cmn_get_metrics_table(smu, &metrics, true); in smu_v13_0_4_get_gpu_metrics()
265 gpu_metrics->temperature_gfx = metrics.GfxTemperature; in smu_v13_0_4_get_gpu_metrics()
266 gpu_metrics->temperature_soc = metrics.SocTemperature; in smu_v13_0_4_get_gpu_metrics()
268 &metrics.CoreTemperature[0], in smu_v13_0_4_get_gpu_metrics()
270 gpu_metrics->temperature_l3[0] = metrics.L3Temperature; in smu_v13_0_4_get_gpu_metrics()
272 gpu_metrics->average_gfx_activity = metrics.GfxActivity; in smu_v13_0_4_get_gpu_metrics()
273 gpu_metrics->average_mm_activity = metrics.UvdActivity; in smu_v13_0_4_get_gpu_metrics()
275 gpu_metrics->average_socket_power = metrics.AverageSocketPower; in smu_v13_0_4_get_gpu_metrics()
276 gpu_metrics->average_gfx_power = metrics.Power[0]; in smu_v13_0_4_get_gpu_metrics()
[all …]
H A Dyellow_carp_ppt.c302 static void yellow_carp_get_ss_power_percent(SmuMetrics_t *metrics, in yellow_carp_get_ss_power_percent() argument
314 apu_power = metrics->ApuPower/1000; in yellow_carp_get_ss_power_percent()
315 apu_limit = metrics->StapmOpnLimit; in yellow_carp_get_ss_power_percent()
320 dgpu_power = metrics->dGpuPower/1000; in yellow_carp_get_ss_power_percent()
321 if (metrics->StapmCurrentLimit > metrics->StapmOpnLimit) in yellow_carp_get_ss_power_percent()
322 dgpu_limit = metrics->StapmCurrentLimit - metrics->StapmOpnLimit; in yellow_carp_get_ss_power_percent()
343 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in yellow_carp_get_smu_metrics_data() local
354 *value = metrics->GfxclkFrequency; in yellow_carp_get_smu_metrics_data()
357 *value = metrics->SocclkFrequency; in yellow_carp_get_smu_metrics_data()
360 *value = metrics->VclkFrequency; in yellow_carp_get_smu_metrics_data()
[all …]
H A Dsmu_v13_0_7_ppt.c727 static uint32_t smu_v13_0_7_get_throttler_status(SmuMetrics_t *metrics) in smu_v13_0_7_get_throttler_status() argument
734 (metrics->ThrottlingPercentage[i] ? 1U << i : 0); in smu_v13_0_7_get_throttler_status()
745 SmuMetrics_t *metrics = in smu_v13_0_7_get_smu_metrics_data() local
757 *value = metrics->CurrClock[PPCLK_GFXCLK]; in smu_v13_0_7_get_smu_metrics_data()
760 *value = metrics->CurrClock[PPCLK_SOCCLK]; in smu_v13_0_7_get_smu_metrics_data()
763 *value = metrics->CurrClock[PPCLK_UCLK]; in smu_v13_0_7_get_smu_metrics_data()
766 *value = metrics->CurrClock[PPCLK_VCLK_0]; in smu_v13_0_7_get_smu_metrics_data()
769 *value = metrics->CurrClock[PPCLK_VCLK_1]; in smu_v13_0_7_get_smu_metrics_data()
772 *value = metrics->CurrClock[PPCLK_DCLK_0]; in smu_v13_0_7_get_smu_metrics_data()
775 *value = metrics->CurrClock[PPCLK_DCLK_1]; in smu_v13_0_7_get_smu_metrics_data()
[all …]
H A Dsmu_v13_0_5_ppt.c268 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in smu_v13_0_5_get_smu_metrics_data() local
277 *value = metrics->GfxclkFrequency; in smu_v13_0_5_get_smu_metrics_data()
280 *value = metrics->SocclkFrequency; in smu_v13_0_5_get_smu_metrics_data()
283 *value = metrics->VclkFrequency; in smu_v13_0_5_get_smu_metrics_data()
286 *value = metrics->DclkFrequency; in smu_v13_0_5_get_smu_metrics_data()
289 *value = metrics->MemclkFrequency; in smu_v13_0_5_get_smu_metrics_data()
292 *value = metrics->GfxActivity / 100; in smu_v13_0_5_get_smu_metrics_data()
295 *value = metrics->UvdActivity / 100; in smu_v13_0_5_get_smu_metrics_data()
298 *value = metrics->CurrentSocketPower; in smu_v13_0_5_get_smu_metrics_data()
301 *value = metrics->GfxTemperature / 100 * in smu_v13_0_5_get_smu_metrics_data()
[all …]
H A Dsmu_v13_0_0_ppt.c714 static uint32_t smu_v13_0_get_throttler_status(SmuMetrics_t *metrics) in smu_v13_0_get_throttler_status() argument
721 (metrics->ThrottlingPercentage[i] ? 1U << i : 0); in smu_v13_0_get_throttler_status()
732 SmuMetrics_t *metrics = in smu_v13_0_0_get_smu_metrics_data() local
744 *value = metrics->CurrClock[PPCLK_GFXCLK]; in smu_v13_0_0_get_smu_metrics_data()
747 *value = metrics->CurrClock[PPCLK_SOCCLK]; in smu_v13_0_0_get_smu_metrics_data()
750 *value = metrics->CurrClock[PPCLK_UCLK]; in smu_v13_0_0_get_smu_metrics_data()
753 *value = metrics->CurrClock[PPCLK_VCLK_0]; in smu_v13_0_0_get_smu_metrics_data()
756 *value = metrics->CurrClock[PPCLK_VCLK_1]; in smu_v13_0_0_get_smu_metrics_data()
759 *value = metrics->CurrClock[PPCLK_DCLK_0]; in smu_v13_0_0_get_smu_metrics_data()
762 *value = metrics->CurrClock[PPCLK_DCLK_1]; in smu_v13_0_0_get_smu_metrics_data()
[all …]
/linux/tools/perf/Documentation/
H A Dtopdown.txt1 Using TopDown metrics
4 TopDown metrics break apart performance bottlenecks. Starting at level
5 1 it is typical to get metrics on retiring, bad speculation, frontend
11 perf stat --topdown implements this using available metrics that vary
27 With Ice Lake CPUs the TopDown metrics are directly available as
43 The metrics counter is CPU model specific and is not available on older
94 * Open metrics event file descriptor for current task.
97 struct perf_event_attr metrics = {
104 int metrics_fd = perf_event_open(&metrics, 0, -1, slots_fd, 0);
118 to read slots and the topdown metrics a
[all...]
H A Dperf-iostat.txt6 perf-iostat - Show I/O performance metrics
16 Mode is intended to provide four I/O performance metrics per each PCIe root port:
52 2. Collect metrics for all PCIe root ports:
71 3. Collect metrics for comma-separated list of PCIe root ports:
H A Dperf-stat.txt297 Only print computed metrics. Print them in a single line.
362 for metrics like instructions per cycle can be lower - as both metrics
369 that certain groups of metrics sum to 100%. A downside to sharing a
430 --metrics::
431 Print metrics or metricgroups specified in a comma separated list.
432 For a group all metrics from the group are added.
433 The events from the metrics are automatically measured.
434 See perf list output for the possible metrics and metricgroups.
474 Print top-down metrics supporte
[all...]
/linux/tools/perf/tests/shell/lib/
H A Dperf_metric_validation.py12 self.metric: list = metric # multiple metrics in relationship type tests
39 workload='true', metrics='', cputype='cpu'): argument
43 self.collectlist: str = metrics
44 self.metrics = self.__set_metrics(metrics)
57 # metrics with no results or negative results, neg result counts failed tests
72 def __set_metrics(self, metrics=''): argument
73 if metrics != '':
74 return set(metrics.split(","))
169 Check if metrics valu
[all...]
/linux/tools/perf/pmu-events/
H A Damd_metrics.py78 metrics = [
88 metrics += [
94 return MetricGroup("lpm_br_cond", metrics)
128 metrics = [
134 metrics.append(Metric("lpm_cs_instr", "Instructions per context switch",
138 metrics.append(Metric("lpm_cs_cycles", "Cycles per context switch",
142 metrics.append(Metric("lpm_cs_loads", "Loads per context switch",
146 metrics.append(Metric("lpm_cs_stores", "Stores per context switch",
150 metrics.append(Metric("lpm_cs_br_taken", "Branches taken per context switch",
153 return MetricGroup("lpm_cs", metrics,
[all...]
H A Dintel_metrics.py47 metrics = [
60 return MetricGroup("lpm_cpu_power", metrics,
80 ], description='System Management Interrupt metrics')
270 metrics = [
276 metrics.append(Metric("lpm_cs_instr", "Instructions per context switch",
280 metrics.append(Metric("lpm_cs_cycles", "Cycles per context switch",
285 metrics.append(Metric("lpm_cs_loads", "Loads per context switch",
293 metrics.append(Metric("lpm_cs_stores", "Stores per context switch",
300 metrics.append(Metric("lpm_cs_br_taken", "Branches taken per context switch",
315 metrics
[all...]
H A Djevents.py36 # Name of metrics table to be written out
123 metrics: Set[str]
129 self.metrics = set()
138 self.metrics.add(s)
180 return (s in self.metrics, self.insert_point[s], s)
475 metrics: list[Tuple[str, str, metric.Expression]] = []
479 metrics.append((event.pmu, event.metric_name, event.metric_expr))
480 updates = metric.RewriteMetricsInTermsOfOthers(metrics)
583 """Optionally close metrics table."""
642 if topic.endswith('metrics
[all...]
H A DBuild56 # Python to generate architectural metrics
58 # Functions to extract the model from an extra-metrics.json or extra-metricgroups.json path.
65 ZEN_METRICS = $(foreach x,$(ZENS),$(OUTPUT)$(x)/extra-metrics.json)
82 ARM_METRICS = $(foreach x,$(ARMS),$(OUTPUT)$(x)/extra-metrics.json)
99 INTEL_METRICS = $(foreach x,$(INTELS),$(OUTPUT)$(x)/extra-metrics.json)
/linux/drivers/gpu/drm/amd/pm/swsmu/smu15/
H A Dsmu_v15_0_0_ppt.c414 memcpy_fromio(&metrics_info->metrics[!metrics_info->active_idx], in smu_v15_0_0_get_metrics_table()
417 memcpy_fromio(&metrics_info->metrics[!metrics_info->active_idx], in smu_v15_0_0_get_metrics_table()
525 metrics_info->metrics[metrics_info->active_idx].IOD.AccumulationCounter != in smu_v15_0_0_get_smu_metrics_data()
526 metrics_info->metrics[!metrics_info->active_idx].IOD.AccumulationCounter) { in smu_v15_0_0_get_smu_metrics_data()
529 &metrics_info->metrics[!metrics_info->active_idx], in smu_v15_0_0_get_smu_metrics_data()
530 &metrics_info->metrics[metrics_info->active_idx]); in smu_v15_0_0_get_smu_metrics_data()
717 SmuMetrics_t metrics; in smu_v15_0_0_get_gpu_metrics() local
720 ret = smu_v15_0_0_get_gpu_metrics_table(smu, &metrics, false); in smu_v15_0_0_get_gpu_metrics()
726 gpu_metrics->temperature_gfx = metrics.GfxTemperature; in smu_v15_0_0_get_gpu_metrics()
727 gpu_metrics->temperature_soc = metrics.SocTemperature; in smu_v15_0_0_get_gpu_metrics()
[all …]
/linux/tools/perf/
H A Dbuiltin-list.c58 bool metrics; member
213 (!print_state->metrics || !name || !strglobmatch(name, print_state->event_glob)) && in default_print_metric()
220 if (!print_state->metrics) in default_print_metric()
237 if (print_state->metrics) { in default_print_metric()
251 if (!print_state->metrics) in default_print_metric()
255 if (print_state->metrics && in default_print_metric()
470 (!print_state->common.metrics || !name || in json_print_metric()
643 ps->metrics = true; in cmd_list()
711 ps->metrics = true; in cmd_list()
716 ps->metrics = false; in cmd_list()
[all …]
/linux/net/core/
H A Ddst.c54 dst_init_metrics(dst, dst_default_metrics.metrics, true); in dst_init()
201 memcpy(p->metrics, old_p->metrics, sizeof(p->metrics)); in dst_cow_metrics_generic()
216 BUILD_BUG_ON(offsetof(struct dst_metrics, metrics) != 0); in dst_cow_metrics_generic()
/linux/drivers/accel/amdxdna/
H A Daie2_pci.h44 #define AIE2_GET_PMF_NPU_METRICS(metrics) amd_pmf_get_npu_data(metrics) argument
55 #define AIE2_GET_PMF_NPU_METRICS(metrics) \ argument
57 typeof(metrics) _m = metrics; \
/linux/Documentation/ABI/testing/
H A Damdpmf-interface8 discovery and metrics monitoring.
24 available metrics and feature status
73 monitor real-time metrics for thermal and power management validation.
/linux/tools/perf/python/
H A Dilist.py61 for metric in perf.metrics():
461 metrics = tree.root.add("Metrics")
463 for metric in perf.metrics():
467 for metric in sorted(perf.metrics(), key=lambda x: x["MetricName"]):
489 add_metrics_to_tree(metrics.add(group), group)
/linux/drivers/firmware/arm_scmi/
H A DKconfig59 bool "Enable SCMI communication debug metrics tracking"
64 Enables tracking of some key communication metrics for debug
65 purposes. It may track metrics like how many messages were sent
/linux/drivers/platform/x86/amd/pmf/
H A DMakefile10 tee-if.o spc.o metrics.o
/linux/Documentation/scheduler/
H A Dschedutil.rst14 With PELT we track some metrics across the various scheduler entities, from
35 Using this we track 2 key metrics: 'running' and 'runnable'. 'Running'
38 two metrics are the same, but once there is contention for the CPU 'running'
83 The result is that the above 'running' and 'runnable' metrics become invariant

123