| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_cls_redirect.c | 364 /* 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 D | test_cls_redirect_dynptr.c | 258 /* 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/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 427 --metrics:: 428 Print metrics or metricgroups specified in a comma separated list. 429 For a group all metrics from the group are added. 430 The events from the metrics are automatically measured. 431 See perf list output for the possible metrics and metricgroups. 471 Print top-down metrics supporte [all...] |
| /linux/drivers/gpu/drm/amd/pm/swsmu/smu14/ |
| H A D | smu_v14_0_2_ppt.c | 607 static uint32_t smu_v14_0_2_get_throttler_status(SmuMetrics_t *metrics) in smu_v14_0_2_get_throttler_status() argument 614 (metrics->ThrottlingPercentage[i] ? 1U << i : 0); in smu_v14_0_2_get_throttler_status() 625 SmuMetrics_t *metrics = in smu_v14_0_2_get_smu_metrics_data() local 637 *value = metrics->CurrClock[PPCLK_GFXCLK]; in smu_v14_0_2_get_smu_metrics_data() 640 *value = metrics->CurrClock[PPCLK_SOCCLK]; in smu_v14_0_2_get_smu_metrics_data() 643 *value = metrics->CurrClock[PPCLK_UCLK]; in smu_v14_0_2_get_smu_metrics_data() 646 *value = metrics->CurrClock[PPCLK_VCLK_0]; in smu_v14_0_2_get_smu_metrics_data() 649 *value = metrics->CurrClock[PPCLK_DCLK_0]; in smu_v14_0_2_get_smu_metrics_data() 652 *value = metrics->CurrClock[PPCLK_FCLK]; in smu_v14_0_2_get_smu_metrics_data() 655 *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_7_ppt.c | 726 static uint32_t smu_v13_0_7_get_throttler_status(SmuMetrics_t *metrics) in smu_v13_0_7_get_throttler_status() argument 733 (metrics->ThrottlingPercentage[i] ? 1U << i : 0); in smu_v13_0_7_get_throttler_status() 744 SmuMetrics_t *metrics = in smu_v13_0_7_get_smu_metrics_data() local 756 *value = metrics->CurrClock[PPCLK_GFXCLK]; in smu_v13_0_7_get_smu_metrics_data() 759 *value = metrics->CurrClock[PPCLK_SOCCLK]; in smu_v13_0_7_get_smu_metrics_data() 762 *value = metrics->CurrClock[PPCLK_UCLK]; in smu_v13_0_7_get_smu_metrics_data() 765 *value = metrics->CurrClock[PPCLK_VCLK_0]; in smu_v13_0_7_get_smu_metrics_data() 768 *value = metrics->CurrClock[PPCLK_VCLK_1]; in smu_v13_0_7_get_smu_metrics_data() 771 *value = metrics->CurrClock[PPCLK_DCLK_0]; in smu_v13_0_7_get_smu_metrics_data() 774 *value = metrics->CurrClock[PPCLK_DCLK_1]; in smu_v13_0_7_get_smu_metrics_data() [all …]
|
| H A D | smu_v13_0_0_ppt.c | 713 static uint32_t smu_v13_0_get_throttler_status(SmuMetrics_t *metrics) in smu_v13_0_get_throttler_status() argument 720 (metrics->ThrottlingPercentage[i] ? 1U << i : 0); in smu_v13_0_get_throttler_status() 731 SmuMetrics_t *metrics = in smu_v13_0_0_get_smu_metrics_data() local 743 *value = metrics->CurrClock[PPCLK_GFXCLK]; in smu_v13_0_0_get_smu_metrics_data() 746 *value = metrics->CurrClock[PPCLK_SOCCLK]; in smu_v13_0_0_get_smu_metrics_data() 749 *value = metrics->CurrClock[PPCLK_UCLK]; in smu_v13_0_0_get_smu_metrics_data() 752 *value = metrics->CurrClock[PPCLK_VCLK_0]; in smu_v13_0_0_get_smu_metrics_data() 755 *value = metrics->CurrClock[PPCLK_VCLK_1]; in smu_v13_0_0_get_smu_metrics_data() 758 *value = metrics->CurrClock[PPCLK_DCLK_0]; in smu_v13_0_0_get_smu_metrics_data() 761 *value = metrics->CurrClock[PPCLK_DCLK_1]; in smu_v13_0_0_get_smu_metrics_data() [all …]
|
| H A D | aldebaran_ppt.c | 634 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in aldebaran_get_smu_metrics_data() local 645 *value = metrics->CurrClock[PPCLK_GFXCLK]; in aldebaran_get_smu_metrics_data() 648 *value = metrics->CurrClock[PPCLK_SOCCLK]; in aldebaran_get_smu_metrics_data() 651 *value = metrics->CurrClock[PPCLK_UCLK]; in aldebaran_get_smu_metrics_data() 654 *value = metrics->CurrClock[PPCLK_VCLK]; in aldebaran_get_smu_metrics_data() 657 *value = metrics->CurrClock[PPCLK_DCLK]; in aldebaran_get_smu_metrics_data() 660 *value = metrics->CurrClock[PPCLK_FCLK]; in aldebaran_get_smu_metrics_data() 663 *value = metrics->AverageGfxclkFrequency; in aldebaran_get_smu_metrics_data() 666 *value = metrics->AverageSocclkFrequency; in aldebaran_get_smu_metrics_data() 669 *value = metrics->AverageUclkFrequency; in aldebaran_get_smu_metrics_data() [all …]
|
| /linux/tools/perf/tests/shell/lib/ |
| H A D | perf_metric_validation.py | 39 workload='true', metrics='', cputype='cpu'): argument 43 self.collectlist: str = metrics 44 self.metrics = self.__set_metrics(metrics) 72 def __set_metrics(self, metrics=''): argument 73 if metrics != '': 74 return set(metrics.split(",")) 304 metrics = rule['Metrics'] 309 for m in metrics: 360 if m['Name'] not in self.metrics: 403 collectlist[0] = set(list(self.metrics)) [all …]
|
| /linux/tools/perf/pmu-events/ |
| H A D | amd_metrics.py | 78 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 D | intel_metrics.py | 47 metrics = [ 60 return MetricGroup("lpm_cpu_power", 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.append(Metric("lpm_cs_l2_misses", "L2 misses per context switch", 320 return MetricGroup("lpm_cs", metrics, [all …]
|
| H A D | jevents.py | 123 metrics: Set[str] 129 self.metrics = set() 138 self.metrics.add(s) 180 return (s in self.metrics, self.insert_point[s], s) 468 metrics: list[Tuple[str, str, metric.Expression]] = [] 472 metrics.append((event.pmu, event.metric_name, event.metric_expr)) 473 updates = metric.RewriteMetricsInTermsOfOthers(metrics)
|
| H A D | Build | 47 # Python to generate architectural metrics 49 # Functions to extract the model from an extra-metrics.json or extra-metricgroups.json path. 56 ZEN_METRICS = $(foreach x,$(ZENS),$(OUTPUT)$(x)/extra-metrics.json) 73 ARM_METRICS = $(foreach x,$(ARMS),$(OUTPUT)$(x)/extra-metrics.json) 90 INTEL_METRICS = $(foreach x,$(INTELS),$(OUTPUT)$(x)/extra-metrics.json)
|
| /linux/tools/perf/ |
| H A D | builtin-list.c | 58 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 …]
|
| 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/net/core/ |
| H A D | dst.c | 54 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 D | aie2_pci.h | 52 #define AIE2_GET_PMF_NPU_METRICS(metrics) amd_pmf_get_npu_data(metrics) argument 63 #define AIE2_GET_PMF_NPU_METRICS(metrics) \ argument 65 typeof(metrics) _m = metrics; \
|
| /linux/tools/perf/python/ |
| H A D | ilist.py | 61 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 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 | 2902 SmuMetrics_t metrics; in vega12_get_gpu_metrics() local 2906 ret = vega12_get_metrics_table(hwmgr, &metrics, true); in vega12_get_gpu_metrics() 2912 gpu_metrics->temperature_edge = metrics.TemperatureEdge; in vega12_get_gpu_metrics() 2913 gpu_metrics->temperature_hotspot = metrics.TemperatureHotspot; in vega12_get_gpu_metrics() 2914 gpu_metrics->temperature_mem = metrics.TemperatureHBM; in vega12_get_gpu_metrics() 2915 gpu_metrics->temperature_vrgfx = metrics.TemperatureVrGfx; in vega12_get_gpu_metrics() 2916 gpu_metrics->temperature_vrmem = metrics.TemperatureVrMem; in vega12_get_gpu_metrics() 2918 gpu_metrics->average_gfx_activity = metrics.AverageGfxActivity; in vega12_get_gpu_metrics() 2919 gpu_metrics->average_umc_activity = metrics.AverageUclkActivity; in vega12_get_gpu_metrics() 2921 gpu_metrics->average_gfxclk_frequency = metrics.AverageGfxclkFrequency; in vega12_get_gpu_metrics() [all …]
|
| /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]
|