Home
last modified time | relevance | path

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

1234

/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.c403 struct in_addr *next_hop, metrics_t *metrics) in forward_with_gre() argument
405 metrics->forwarded_packets_total_gre++; in forward_with_gre()
431 metrics->errors_total_malformed_encapsulation++; in forward_with_gre()
436 metrics->errors_total_redirect_loop++; in forward_with_gre()
445 metrics->errors_total_malformed_encapsulation++; in forward_with_gre()
456 metrics->errors_total_malformed_encapsulation++; in forward_with_gre()
461 metrics->errors_total_redirect_loop++; in forward_with_gre()
473 metrics->errors_total_malformed_encapsulation++; in forward_with_gre()
482 metrics->errors_total_malformed_encapsulation++; in forward_with_gre()
488 metrics->errors_total_encap_mtu_violate++; in forward_with_gre()
[all …]
Dtest_cls_redirect_dynptr.c295 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->errors_total_malformed_encapsulation++; in forward_with_gre()
382 metrics->errors_total_encap_mtu_violate++; in forward_with_gre()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dvangogh_ppt.c277 SmuMetrics_legacy_t *metrics = (SmuMetrics_legacy_t *)smu_table->metrics_table; in vangogh_get_legacy_smu_metrics_data() local
288 *value = metrics->GfxclkFrequency; in vangogh_get_legacy_smu_metrics_data()
291 *value = metrics->SocclkFrequency; in vangogh_get_legacy_smu_metrics_data()
294 *value = metrics->VclkFrequency; in vangogh_get_legacy_smu_metrics_data()
297 *value = metrics->DclkFrequency; in vangogh_get_legacy_smu_metrics_data()
300 *value = metrics->MemclkFrequency; in vangogh_get_legacy_smu_metrics_data()
303 *value = metrics->GfxActivity / 100; in vangogh_get_legacy_smu_metrics_data()
306 *value = metrics->UvdActivity / 100; in vangogh_get_legacy_smu_metrics_data()
309 *value = (metrics->CurrentSocketPower << 8) / in vangogh_get_legacy_smu_metrics_data()
313 *value = metrics->GfxTemperature / 100 * in vangogh_get_legacy_smu_metrics_data()
[all …]
Dcyan_skillfish_ppt.c134 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in cyan_skillfish_get_smu_metrics_data() local
143 *value = metrics->Current.GfxclkFrequency; in cyan_skillfish_get_smu_metrics_data()
146 *value = metrics->Current.SocclkFrequency; in cyan_skillfish_get_smu_metrics_data()
149 *value = metrics->Current.VclkFrequency; in cyan_skillfish_get_smu_metrics_data()
152 *value = metrics->Current.DclkFrequency; in cyan_skillfish_get_smu_metrics_data()
155 *value = metrics->Current.MemclkFrequency; in cyan_skillfish_get_smu_metrics_data()
158 *value = (metrics->Current.CurrentSocketPower << 8) / in cyan_skillfish_get_smu_metrics_data()
162 *value = (metrics->Average.CurrentSocketPower << 8) / in cyan_skillfish_get_smu_metrics_data()
166 *value = metrics->Current.GfxTemperature / 100 * in cyan_skillfish_get_smu_metrics_data()
170 *value = metrics->Current.SocTemperature / 100 * in cyan_skillfish_get_smu_metrics_data()
[all …]
Dnavi10_ppt.c560 SmuMetrics_legacy_t *metrics = in navi10_get_legacy_smu_metrics_data() local
572 *value = metrics->CurrClock[PPCLK_GFXCLK]; in navi10_get_legacy_smu_metrics_data()
575 *value = metrics->CurrClock[PPCLK_SOCCLK]; in navi10_get_legacy_smu_metrics_data()
578 *value = metrics->CurrClock[PPCLK_UCLK]; in navi10_get_legacy_smu_metrics_data()
581 *value = metrics->CurrClock[PPCLK_VCLK]; in navi10_get_legacy_smu_metrics_data()
584 *value = metrics->CurrClock[PPCLK_DCLK]; in navi10_get_legacy_smu_metrics_data()
587 *value = metrics->CurrClock[PPCLK_DCEFCLK]; in navi10_get_legacy_smu_metrics_data()
590 *value = metrics->AverageGfxclkFrequency; in navi10_get_legacy_smu_metrics_data()
593 *value = metrics->AverageSocclkFrequency; in navi10_get_legacy_smu_metrics_data()
596 *value = metrics->AverageUclkFrequency; in navi10_get_legacy_smu_metrics_data()
[all …]
Darcturus_ppt.c642 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in arcturus_get_smu_metrics_data() local
653 *value = metrics->CurrClock[PPCLK_GFXCLK]; in arcturus_get_smu_metrics_data()
656 *value = metrics->CurrClock[PPCLK_SOCCLK]; in arcturus_get_smu_metrics_data()
659 *value = metrics->CurrClock[PPCLK_UCLK]; in arcturus_get_smu_metrics_data()
662 *value = metrics->CurrClock[PPCLK_VCLK]; in arcturus_get_smu_metrics_data()
665 *value = metrics->CurrClock[PPCLK_DCLK]; in arcturus_get_smu_metrics_data()
668 *value = metrics->CurrClock[PPCLK_FCLK]; in arcturus_get_smu_metrics_data()
671 *value = metrics->AverageGfxclkFrequency; in arcturus_get_smu_metrics_data()
674 *value = metrics->AverageSocclkFrequency; in arcturus_get_smu_metrics_data()
677 *value = metrics->AverageUclkFrequency; in arcturus_get_smu_metrics_data()
[all …]
Dsienna_cichlid_ppt.c735 SmuMetrics_t *metrics = in sienna_cichlid_get_smu_metrics_data() local
781 metrics->CurrClock[PPCLK_GFXCLK]; in sienna_cichlid_get_smu_metrics_data()
786 metrics->CurrClock[PPCLK_SOCCLK]; in sienna_cichlid_get_smu_metrics_data()
791 metrics->CurrClock[PPCLK_UCLK]; in sienna_cichlid_get_smu_metrics_data()
796 metrics->CurrClock[PPCLK_VCLK_0]; in sienna_cichlid_get_smu_metrics_data()
801 metrics->CurrClock[PPCLK_VCLK_1]; in sienna_cichlid_get_smu_metrics_data()
806 metrics->CurrClock[PPCLK_DCLK_0]; in sienna_cichlid_get_smu_metrics_data()
811 metrics->CurrClock[PPCLK_DCLK_1]; in sienna_cichlid_get_smu_metrics_data()
816 metrics->CurrClock[PPCLK_DCEFCLK]; in sienna_cichlid_get_smu_metrics_data()
821 metrics->CurrClock[PPCLK_FCLK]; in sienna_cichlid_get_smu_metrics_data()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu14/
Dsmu_v14_0_0_ppt.c263 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in smu_v14_0_0_get_smu_metrics_data() local
272 *value = metrics->GfxclkFrequency; in smu_v14_0_0_get_smu_metrics_data()
275 *value = metrics->SocclkFrequency; in smu_v14_0_0_get_smu_metrics_data()
278 *value = metrics->VclkFrequency; in smu_v14_0_0_get_smu_metrics_data()
284 *value = metrics->MemclkFrequency; in smu_v14_0_0_get_smu_metrics_data()
287 *value = metrics->FclkFrequency; in smu_v14_0_0_get_smu_metrics_data()
290 *value = metrics->VpeclkFrequency; in smu_v14_0_0_get_smu_metrics_data()
293 *value = metrics->IpuclkFrequency; in smu_v14_0_0_get_smu_metrics_data()
296 *value = metrics->MpipuclkFrequency; in smu_v14_0_0_get_smu_metrics_data()
300 *value = metrics->GfxActivity; in smu_v14_0_0_get_smu_metrics_data()
[all …]
Dsmu_v14_0_2_ppt.c686 static uint32_t smu_v14_0_2_get_throttler_status(SmuMetrics_t *metrics) in smu_v14_0_2_get_throttler_status() argument
693 (metrics->ThrottlingPercentage[i] ? 1U << i : 0); in smu_v14_0_2_get_throttler_status()
704 SmuMetrics_t *metrics = in smu_v14_0_2_get_smu_metrics_data() local
716 *value = metrics->CurrClock[PPCLK_GFXCLK]; in smu_v14_0_2_get_smu_metrics_data()
719 *value = metrics->CurrClock[PPCLK_SOCCLK]; in smu_v14_0_2_get_smu_metrics_data()
722 *value = metrics->CurrClock[PPCLK_UCLK]; in smu_v14_0_2_get_smu_metrics_data()
725 *value = metrics->CurrClock[PPCLK_VCLK_0]; in smu_v14_0_2_get_smu_metrics_data()
728 *value = metrics->CurrClock[PPCLK_DCLK_0]; in smu_v14_0_2_get_smu_metrics_data()
731 *value = metrics->CurrClock[PPCLK_FCLK]; in smu_v14_0_2_get_smu_metrics_data()
734 *value = metrics->CurrClock[PPCLK_DCFCLK]; in smu_v14_0_2_get_smu_metrics_data()
[all …]
/linux-6.12.1/drivers/staging/media/atomisp/pci/
Dsh_css_metrics.c90 struct sh_css_binary_metrics *metrics) in insert_binary_metrics() argument
94 assert(metrics); in insert_binary_metrics()
97 if (*l == metrics) in insert_binary_metrics()
100 *l = metrics; in insert_binary_metrics()
101 metrics->next = NULL; in insert_binary_metrics()
105 sh_css_metrics_start_binary(struct sh_css_binary_metrics *metrics) in sh_css_metrics_start_binary() argument
107 assert(metrics); in sh_css_metrics_start_binary()
112 isp_histogram = &metrics->isp_histogram; in sh_css_metrics_start_binary()
113 sp_histogram = &metrics->sp_histogram; in sh_css_metrics_start_binary()
116 insert_binary_metrics(&sh_css_metrics.binary_metrics, metrics); in sh_css_metrics_start_binary()
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu12/
Drenoir_ppt.c499 SmuMetrics_t metrics; in renoir_print_clk_levels() local
503 memset(&metrics, 0, sizeof(metrics)); in renoir_print_clk_levels()
505 ret = smu_cmn_get_metrics_table(smu, &metrics, false); in renoir_print_clk_levels()
539 cur_value = metrics.ClockFrequency[CLOCK_GFXCLK]; in renoir_print_clk_levels()
561 cur_value = metrics.ClockFrequency[CLOCK_SOCCLK]; in renoir_print_clk_levels()
565 cur_value = metrics.ClockFrequency[CLOCK_FCLK]; in renoir_print_clk_levels()
569 cur_value = metrics.ClockFrequency[CLOCK_DCFCLK]; in renoir_print_clk_levels()
573 cur_value = metrics.ClockFrequency[CLOCK_FCLK]; in renoir_print_clk_levels()
577 cur_value = metrics.ClockFrequency[CLOCK_VCLK]; in renoir_print_clk_levels()
581 cur_value = metrics.ClockFrequency[CLOCK_DCLK]; in renoir_print_clk_levels()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0_4_ppt.c253 SmuMetrics_t metrics; in smu_v13_0_4_get_gpu_metrics() local
256 ret = smu_cmn_get_metrics_table(smu, &metrics, true); in smu_v13_0_4_get_gpu_metrics()
262 gpu_metrics->temperature_gfx = metrics.GfxTemperature; in smu_v13_0_4_get_gpu_metrics()
263 gpu_metrics->temperature_soc = metrics.SocTemperature; in smu_v13_0_4_get_gpu_metrics()
265 &metrics.CoreTemperature[0], in smu_v13_0_4_get_gpu_metrics()
267 gpu_metrics->temperature_l3[0] = metrics.L3Temperature; in smu_v13_0_4_get_gpu_metrics()
269 gpu_metrics->average_gfx_activity = metrics.GfxActivity; in smu_v13_0_4_get_gpu_metrics()
270 gpu_metrics->average_mm_activity = metrics.UvdActivity; in smu_v13_0_4_get_gpu_metrics()
272 gpu_metrics->average_socket_power = metrics.AverageSocketPower; in smu_v13_0_4_get_gpu_metrics()
273 gpu_metrics->average_gfx_power = metrics.Power[0]; in smu_v13_0_4_get_gpu_metrics()
[all …]
Dyellow_carp_ppt.c296 static void yellow_carp_get_ss_power_percent(SmuMetrics_t *metrics, in yellow_carp_get_ss_power_percent() argument
308 apu_power = metrics->ApuPower/1000; in yellow_carp_get_ss_power_percent()
309 apu_limit = metrics->StapmOpnLimit; in yellow_carp_get_ss_power_percent()
314 dgpu_power = metrics->dGpuPower/1000; in yellow_carp_get_ss_power_percent()
315 if (metrics->StapmCurrentLimit > metrics->StapmOpnLimit) in yellow_carp_get_ss_power_percent()
316 dgpu_limit = metrics->StapmCurrentLimit - metrics->StapmOpnLimit; in yellow_carp_get_ss_power_percent()
337 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in yellow_carp_get_smu_metrics_data() local
348 *value = metrics->GfxclkFrequency; in yellow_carp_get_smu_metrics_data()
351 *value = metrics->SocclkFrequency; in yellow_carp_get_smu_metrics_data()
354 *value = metrics->VclkFrequency; in yellow_carp_get_smu_metrics_data()
[all …]
Dsmu_v13_0_5_ppt.c262 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in smu_v13_0_5_get_smu_metrics_data() local
271 *value = metrics->GfxclkFrequency; in smu_v13_0_5_get_smu_metrics_data()
274 *value = metrics->SocclkFrequency; in smu_v13_0_5_get_smu_metrics_data()
277 *value = metrics->VclkFrequency; in smu_v13_0_5_get_smu_metrics_data()
280 *value = metrics->DclkFrequency; in smu_v13_0_5_get_smu_metrics_data()
283 *value = metrics->MemclkFrequency; in smu_v13_0_5_get_smu_metrics_data()
286 *value = metrics->GfxActivity / 100; in smu_v13_0_5_get_smu_metrics_data()
289 *value = metrics->UvdActivity / 100; in smu_v13_0_5_get_smu_metrics_data()
292 *value = (metrics->CurrentSocketPower << 8) / 1000; in smu_v13_0_5_get_smu_metrics_data()
295 *value = metrics->GfxTemperature / 100 * in smu_v13_0_5_get_smu_metrics_data()
[all …]
Dsmu_v13_0_7_ppt.c750 static uint32_t smu_v13_0_7_get_throttler_status(SmuMetrics_t *metrics) in smu_v13_0_7_get_throttler_status() argument
757 (metrics->ThrottlingPercentage[i] ? 1U << i : 0); in smu_v13_0_7_get_throttler_status()
768 SmuMetrics_t *metrics = in smu_v13_0_7_get_smu_metrics_data() local
780 *value = metrics->CurrClock[PPCLK_GFXCLK]; in smu_v13_0_7_get_smu_metrics_data()
783 *value = metrics->CurrClock[PPCLK_SOCCLK]; in smu_v13_0_7_get_smu_metrics_data()
786 *value = metrics->CurrClock[PPCLK_UCLK]; in smu_v13_0_7_get_smu_metrics_data()
789 *value = metrics->CurrClock[PPCLK_VCLK_0]; in smu_v13_0_7_get_smu_metrics_data()
792 *value = metrics->CurrClock[PPCLK_VCLK_1]; in smu_v13_0_7_get_smu_metrics_data()
795 *value = metrics->CurrClock[PPCLK_DCLK_0]; in smu_v13_0_7_get_smu_metrics_data()
798 *value = metrics->CurrClock[PPCLK_DCLK_1]; in smu_v13_0_7_get_smu_metrics_data()
[all …]
Dsmu_v13_0_0_ppt.c758 static uint32_t smu_v13_0_get_throttler_status(SmuMetrics_t *metrics) in smu_v13_0_get_throttler_status() argument
765 (metrics->ThrottlingPercentage[i] ? 1U << i : 0); in smu_v13_0_get_throttler_status()
776 SmuMetrics_t *metrics = in smu_v13_0_0_get_smu_metrics_data() local
788 *value = metrics->CurrClock[PPCLK_GFXCLK]; in smu_v13_0_0_get_smu_metrics_data()
791 *value = metrics->CurrClock[PPCLK_SOCCLK]; in smu_v13_0_0_get_smu_metrics_data()
794 *value = metrics->CurrClock[PPCLK_UCLK]; in smu_v13_0_0_get_smu_metrics_data()
797 *value = metrics->CurrClock[PPCLK_VCLK_0]; in smu_v13_0_0_get_smu_metrics_data()
800 *value = metrics->CurrClock[PPCLK_VCLK_1]; in smu_v13_0_0_get_smu_metrics_data()
803 *value = metrics->CurrClock[PPCLK_DCLK_0]; in smu_v13_0_0_get_smu_metrics_data()
806 *value = metrics->CurrClock[PPCLK_DCLK_1]; in smu_v13_0_0_get_smu_metrics_data()
[all …]
Daldebaran_ppt.c615 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in aldebaran_get_smu_metrics_data() local
626 *value = metrics->CurrClock[PPCLK_GFXCLK]; in aldebaran_get_smu_metrics_data()
629 *value = metrics->CurrClock[PPCLK_SOCCLK]; in aldebaran_get_smu_metrics_data()
632 *value = metrics->CurrClock[PPCLK_UCLK]; in aldebaran_get_smu_metrics_data()
635 *value = metrics->CurrClock[PPCLK_VCLK]; in aldebaran_get_smu_metrics_data()
638 *value = metrics->CurrClock[PPCLK_DCLK]; in aldebaran_get_smu_metrics_data()
641 *value = metrics->CurrClock[PPCLK_FCLK]; in aldebaran_get_smu_metrics_data()
644 *value = metrics->AverageGfxclkFrequency; in aldebaran_get_smu_metrics_data()
647 *value = metrics->AverageSocclkFrequency; in aldebaran_get_smu_metrics_data()
650 *value = metrics->AverageUclkFrequency; in aldebaran_get_smu_metrics_data()
[all …]
/linux-6.12.1/tools/perf/Documentation/
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 at different points of the program:
[all …]
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:
/linux-6.12.1/tools/perf/tests/shell/lib/
Dperf_metric_validation.py38 …me, reportfname='', t=5, debug=False, datafname='', fullrulefname='', workload='true', metrics=''): argument
42 self.collectlist: str = metrics
43 self.metrics = self.__set_metrics(metrics)
70 def __set_metrics(self, metrics=''): argument
71 if metrics != '':
72 return set(metrics.split(","))
302 metrics = rule['Metrics']
307 for m in metrics:
358 if m['Name'] not in self.metrics:
401 collectlist[0] = set(list(self.metrics))
[all …]
/linux-6.12.1/net/ipv4/
Dmetrics.c11 int fc_mx_len, u32 *metrics, in ip_metrics_convert() argument
57 metrics[type - 1] = val; in ip_metrics_convert()
61 metrics[RTAX_FEATURES - 1] |= DST_FEATURE_ECN_CA; in ip_metrics_convert()
80 err = ip_metrics_convert(fc_mx, fc_mx_len, fib_metrics->metrics, in ip_fib_metrics_init()
/linux-6.12.1/tools/perf/
Dbuiltin-list.c57 bool metrics; member
206 (!print_state->metrics || !name || !strglobmatch(name, print_state->event_glob)) && in default_print_metric()
213 if (!print_state->metrics) in default_print_metric()
230 if (print_state->metrics) { in default_print_metric()
244 if (!print_state->metrics) in default_print_metric()
248 if (print_state->metrics && in default_print_metric()
600 default_ps.metrics = true; in cmd_list()
629 default_ps.metrics = true; in cmd_list()
634 default_ps.metrics = false; in cmd_list()
652 default_ps.metrics = true; in cmd_list()
[all …]
Dperf-completion.sh213 local metrics
214 metrics=$($cmd list --raw-dump metric metricgroup)
215 __perfcomp "$metrics" "$cur"
/linux-6.12.1/tools/bpf/bpftool/
Dprog.c1985 } metrics[] = { variable
2070 metric_cnt = ARRAY_SIZE(metrics); in profile_parse_metrics()
2074 if (is_prefix(argv[0], metrics[i].name)) { in profile_parse_metrics()
2075 if (!metrics[i].selected) in profile_parse_metrics()
2077 metrics[i].selected = true; in profile_parse_metrics()
2120 for (m = 0; m < ARRAY_SIZE(metrics); m++) { in profile_read_values()
2123 if (!metrics[m].selected) in profile_read_values()
2133 metrics[m].val.counter += values[cpu].counter; in profile_read_values()
2134 metrics[m].val.enabled += values[cpu].enabled; in profile_read_values()
2135 metrics[m].val.running += values[cpu].running; in profile_read_values()
[all …]
/linux-6.12.1/net/core/
Ddst.c54 dst_init_metrics(dst, dst_default_metrics.metrics, true); in dst_init()
192 memcpy(p->metrics, old_p->metrics, sizeof(p->metrics)); in dst_cow_metrics_generic()
207 BUILD_BUG_ON(offsetof(struct dst_metrics, metrics) != 0); in dst_cow_metrics_generic()

1234