/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_cls_redirect.c | 403 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 …]
|
H A D | test_cls_redirect_dynptr.c | 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->errors_total_malformed_encapsulation++; in forward_with_gre() 382 metrics->errors_total_encap_mtu_violate++; in forward_with_gre() [all …]
|
/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
H A D | cyan_skillfish_ppt.c | 134 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 …]
|
/linux/drivers/gpu/drm/amd/pm/swsmu/smu14/ |
H A D | smu_v14_0_0_ppt.c | 263 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 …]
|
H A D | smu_v14_0_2_ppt.c | 673 static uint32_t smu_v14_0_2_get_throttler_status(SmuMetrics_t *metrics) in smu_v14_0_2_get_throttler_status() argument 680 (metrics->ThrottlingPercentage[i] ? 1U << i : 0); in smu_v14_0_2_get_throttler_status() 691 SmuMetrics_t *metrics = in smu_v14_0_2_get_smu_metrics_data() local 703 *value = metrics->CurrClock[PPCLK_GFXCLK]; in smu_v14_0_2_get_smu_metrics_data() 706 *value = metrics->CurrClock[PPCLK_SOCCLK]; in smu_v14_0_2_get_smu_metrics_data() 709 *value = metrics->CurrClock[PPCLK_UCLK]; in smu_v14_0_2_get_smu_metrics_data() 712 *value = metrics->CurrClock[PPCLK_VCLK_0]; in smu_v14_0_2_get_smu_metrics_data() 715 *value = metrics->CurrClock[PPCLK_DCLK_0]; in smu_v14_0_2_get_smu_metrics_data() 718 *value = metrics->CurrClock[PPCLK_FCLK]; in smu_v14_0_2_get_smu_metrics_data() 721 *value = metrics->CurrClock[PPCLK_DCFCLK]; in smu_v14_0_2_get_smu_metrics_data() [all …]
|
/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
H A D | smu_v13_0_4_ppt.c | 253 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 …]
|
/linux/tools/perf/Documentation/ |
H A D | topdown.txt | 1 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 …]
|
H A D | perf-iostat.txt | 6 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 D | perf-stat.txt | 294 Only print computed metrics. Print them in a single line. 359 for metrics like instructions per cycle can be lower - as both metrics 366 that certain groups of metrics sum to 100%. A downside to sharing a 422 --metrics:: 423 Print metrics or metricgroups specified in a comma separated list. 424 For a group all metrics from the group are added. 425 The events from the metrics are automatically measured. 426 See perf list output for the possible metrics and metricgroups. 466 Print top-down metrics supported by the CPU. This allows to determine 486 The top down metrics are collected per core instead of per [all …]
|
/linux/tools/perf/tests/shell/lib/ |
H A D | perf_metric_validation.py | 38 …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/net/ipv4/ |
H A D | metrics.c | 11 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/tools/perf/ |
H A D | builtin-list.c | 50 /** @deprecated: Print deprecated events or metrics. */ 57 /** @metrics: Controls printing of metric and metric groups. */ member 58 bool metrics; 207 (!print_state->metrics || !name || !strglobmatch(name, print_state->event_glob)) && in default_print_metric() 214 if (!print_state->metrics) in default_print_metric() 231 if (print_state->metrics) { in default_print_metric() 245 if (!print_state->metrics) in default_print_metric() 249 if (print_state->metrics && in default_print_metric() 527 OPT_BOOLEAN('j', "json", &json, "JSON encode events and metrics"), in cmd_list() 601 default_ps.metrics in cmd_list() [all...] |
H A D | perf-completion.sh | 211 elif [[ $prev == @("-M"|"--metrics") && 213 local metrics 214 metrics=$($cmd list --raw-dump metric metricgroup) 215 __perfcomp "$metrics" "$cur"
|
/linux/tools/bpf/bpftool/ |
H A D | prog.c | 1992 } metrics[] = { 2077 metric_cnt = ARRAY_SIZE(metrics); in profile_parse_metrics() 2081 if (is_prefix(argv[0], metrics[i].name)) { in profile_parse_metrics() 2082 if (!metrics[i].selected) in profile_parse_metrics() 2084 metrics[i].selected = true; in profile_parse_metrics() 2095 p_err("too many (%d) metrics, please specify no more than %d metrics at a time", in profile_read_values() 2127 for (m = 0; m < ARRAY_SIZE(metrics); m++) { in profile_read_values() 2130 if (!metrics[m].selected) in profile_read_values() 2140 metrics[ in profile_read_values() 1985 } metrics[] = { global() variable [all...] |
/linux/net/core/ |
H A D | dst.c | 54 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()
|
/linux/Documentation/ABI/testing/ |
H A D | debugfs-driver-qat_telemetry | 5 Description: (RW) Enables/disables the reporting of telemetry metrics. 22 telemetry metrics. Samples are collected every second and 31 metrics:: 42 Reads report metrics about performance and utilization of 119 Reads report metrics about performance and utilization of 143 collection of telemetry metrics for ring pair 32::
|
/linux/tools/perf/pmu-events/ |
H A D | jevents.py | 36 # Name of metrics table to be written out 118 metrics: Set[str] 124 self.metrics = set() 133 self.metrics.add(s) 175 return (s in self.metrics, self.insert_point[s], s) 445 metrics: list[Tuple[str, str, metric.Expression]] = [] 449 metrics.append((event.pmu, event.metric_name, event.metric_expr)) 450 updates = metric.RewriteMetricsInTermsOfOthers(metrics) 542 """Optionally close metrics table.""" 597 if topic.endswith('metrics [all...] |
/linux/drivers/firmware/arm_scmi/ |
H A D | Kconfig | 59 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/Documentation/scheduler/ |
H A D | schedutil.rst | 14 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
|
/linux/Documentation/process/ |
H A D | contribution-maturity-model.rst | 72 * Organizations will regularly report metrics of their open source 73 contributions and track these metrics over time. These metrics may be
|
/linux/drivers/staging/media/atomisp/pci/runtime/binary/src/ |
H A D | binary.c | 390 binary_init_metrics(struct sh_css_binary_metrics *metrics, in binary_init_metrics() argument 393 assert(metrics); in binary_init_metrics() 396 metrics->mode = info->pipeline.mode; in binary_init_metrics() 397 metrics->id = info->id; in binary_init_metrics() 398 metrics->next = NULL; in binary_init_metrics() 399 binary_init_pc_histogram(&metrics->isp_histogram); in binary_init_metrics() 400 binary_init_pc_histogram(&metrics->sp_histogram); in binary_init_metrics() 1236 binary_init_metrics(&binary->metrics, &binary->info->sp); in ia_css_binary_find()
|
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | vega12_hwmgr.c | 2884 SmuMetrics_t metrics; in vega12_get_gpu_metrics() local 2888 ret = vega12_get_metrics_table(hwmgr, &metrics, true); in vega12_get_gpu_metrics() 2894 gpu_metrics->temperature_edge = metrics.TemperatureEdge; in vega12_get_gpu_metrics() 2895 gpu_metrics->temperature_hotspot = metrics.TemperatureHotspot; in vega12_get_gpu_metrics() 2896 gpu_metrics->temperature_mem = metrics.TemperatureHBM; in vega12_get_gpu_metrics() 2897 gpu_metrics->temperature_vrgfx = metrics.TemperatureVrGfx; in vega12_get_gpu_metrics() 2898 gpu_metrics->temperature_vrmem = metrics.TemperatureVrMem; in vega12_get_gpu_metrics() 2900 gpu_metrics->average_gfx_activity = metrics.AverageGfxActivity; in vega12_get_gpu_metrics() 2901 gpu_metrics->average_umc_activity = metrics.AverageUclkActivity; in vega12_get_gpu_metrics() 2903 gpu_metrics->average_gfxclk_frequency = metrics.AverageGfxclkFrequency; in vega12_get_gpu_metrics() [all …]
|
H A D | vega20_hwmgr.c | 4330 SmuMetrics_t metrics; in vega20_get_gpu_metrics() local 4334 ret = vega20_get_metrics_table(hwmgr, &metrics, true); in vega20_get_gpu_metrics() 4340 gpu_metrics->temperature_edge = metrics.TemperatureEdge; in vega20_get_gpu_metrics() 4341 gpu_metrics->temperature_hotspot = metrics.TemperatureHotspot; in vega20_get_gpu_metrics() 4342 gpu_metrics->temperature_mem = metrics.TemperatureHBM; in vega20_get_gpu_metrics() 4343 gpu_metrics->temperature_vrgfx = metrics.TemperatureVrGfx; in vega20_get_gpu_metrics() 4344 gpu_metrics->temperature_vrsoc = metrics.TemperatureVrSoc; in vega20_get_gpu_metrics() 4345 gpu_metrics->temperature_vrmem = metrics.TemperatureVrMem0; in vega20_get_gpu_metrics() 4347 gpu_metrics->average_gfx_activity = metrics.AverageGfxActivity; in vega20_get_gpu_metrics() 4348 gpu_metrics->average_umc_activity = metrics.AverageUclkActivity; in vega20_get_gpu_metrics() [all …]
|
/linux/tools/perf/tests/shell/ |
H A D | stat_all_metrics.sh | 2 # perf all metrics test 17 for m in $(perf list --raw-dump metrics); do
|
/linux/include/net/ |
H A D | ip_fib.h | 152 #define fib_mtu fib_metrics->metrics[RTAX_MTU-1] 153 #define fib_window fib_metrics->metrics[RTAX_WINDOW-1] 154 #define fib_rtt fib_metrics->metrics[RTAX_RTT-1] 155 #define fib_advmss fib_metrics->metrics[RTAX_ADVMSS-1]
|