/kernel/linux/linux-5.10/tools/testing/selftests/resctrl/ |
D | resctrl.h | 55 int cpu_no; member 79 int get_resource_id(int cpu_no, int *resource_id); 84 int taskset_benchmark(pid_t bm_pid, int cpu_no); 86 int write_schemata(char *ctrlgrp, char *schemata, int cpu_no, 95 int mbm_bw_change(int span, int cpu_no, char *bw_report, char **benchmark_cmd); 98 int mba_schemata_change(int cpu_no, char *bw_report, char **benchmark_cmd); 101 int get_cache_size(int cpu_no, char *cache_type, unsigned long *cache_size); 105 int cat_perf_miss_val(int cpu_no, int no_of_bits, char *cache_type); 106 int cqm_resctrl_val(int cpu_no, int n, char **benchmark_cmd); 109 int get_core_sibling(int cpu_no);
|
D | cat_test.c | 47 ret = write_schemata(p->ctrlgrp, schemata, p->cpu_no, in cat_setup() 122 int cat_perf_miss_val(int cpu_no, int n, char *cache_type) in cat_perf_miss_val() argument 146 ret = get_cache_size(cpu_no, cache_type, &cache_size); in cat_perf_miss_val() 162 sibling_cpu_no = get_core_sibling(cpu_no); in cat_perf_miss_val() 168 .cpu_no = cpu_no, in cat_perf_miss_val() 203 param.cpu_no = sibling_cpu_no; in cat_perf_miss_val()
|
D | resctrl_tests.c | 60 int res, c, cpu_no = 1, span = 250, argc_new = argc, i, no_of_bits = 5; in main() local 105 cpu_no = atoi(optarg); in main() 165 res = mbm_bw_change(span, cpu_no, bw_report, benchmark_cmd); in main() 175 res = mba_schemata_change(cpu_no, bw_report, benchmark_cmd); in main() 185 res = cqm_resctrl_val(cpu_no, no_of_bits, benchmark_cmd); in main() 193 res = cat_perf_miss_val(cpu_no, no_of_bits, "L3"); in main()
|
D | cache.c | 38 static int perf_event_open_llc_miss(pid_t pid, int cpu_no) in perf_event_open_llc_miss() argument 40 fd_lm = perf_event_open(&pea_llc_miss, pid, cpu_no, -1, in perf_event_open_llc_miss() 66 static int reset_enable_llc_perf(pid_t pid, int cpu_no) in reset_enable_llc_perf() argument 70 ret = perf_event_open_llc_miss(pid, cpu_no); in reset_enable_llc_perf() 227 ret = taskset_benchmark(bm_pid, param->cpu_no); in cat_val() 251 ret = reset_enable_llc_perf(bm_pid, param->cpu_no); in cat_val()
|
D | resctrlfs.c | 109 int get_resource_id(int cpu_no, int *resource_id) in get_resource_id() argument 116 PHYS_ID_PATH, cpu_no); in get_resource_id() 119 PHYS_ID_PATH, cpu_no); in get_resource_id() 146 int get_cache_size(int cpu_no, char *cache_type, unsigned long *cache_size) in get_cache_size() argument 162 cpu_no, cache_num); in get_cache_size() 243 int get_core_sibling(int cpu_no) in get_core_sibling() argument 250 CORE_SIBLINGS_PATH, cpu_no); in get_core_sibling() 286 int taskset_benchmark(pid_t bm_pid, int cpu_no) in taskset_benchmark() argument 291 CPU_SET(cpu_no, &my_set); in taskset_benchmark() 502 int write_schemata(char *ctrlgrp, char *schemata, int cpu_no, char *resctrl_val) in write_schemata() argument [all …]
|
D | resctrl_val.c | 133 static int open_perf_event(int i, int cpu_no, int j) in open_perf_event() argument 136 perf_event_open(&imc_counters_config[i][j].pe, -1, cpu_no, -1, in open_perf_event() 305 static int get_mem_bw_imc(int cpu_no, char *bw_report, float *bw_imc) in get_mem_bw_imc() argument 314 ret = open_perf_event(imc, cpu_no, j); in get_mem_bw_imc() 414 int cpu_no, char *resctrl_val) in initialize_mem_bw_resctrl() argument 418 if (get_resource_id(cpu_no, &resource_id) < 0) { in initialize_mem_bw_resctrl() 540 int cpu_no, char *resctrl_val) in initialize_llc_occu_resctrl() argument 544 if (get_resource_id(cpu_no, &resource_id) < 0) { in initialize_llc_occu_resctrl() 567 ret = get_mem_bw_imc(param->cpu_no, param->bw_report, &bw_imc); in measure_vals() 690 ret = taskset_benchmark(bm_pid, param->cpu_no); in resctrl_val() [all …]
|
D | mbm_test.c | 103 ret = write_schemata(p->ctrlgrp, "100", p->cpu_no, in mbm_setup() 114 int mbm_bw_change(int span, int cpu_no, char *bw_report, char **benchmark_cmd) in mbm_bw_change() argument 121 .cpu_no = cpu_no, in mbm_bw_change()
|
D | mba_test.c | 48 write_schemata(p->ctrlgrp, allocation_str, p->cpu_no, p->resctrl_val); in mba_setup() 141 int mba_schemata_change(int cpu_no, char *bw_report, char **benchmark_cmd) in mba_schemata_change() argument 147 .cpu_no = cpu_no, in mba_schemata_change()
|
D | cqm_test.c | 114 int cqm_resctrl_val(int cpu_no, int n, char **benchmark_cmd) in cqm_resctrl_val() argument 134 ret = get_cache_size(cpu_no, "L3", &cache_size); in cqm_resctrl_val() 151 .cpu_no = cpu_no, in cqm_resctrl_val()
|
D | README | 52 -p cpu_no: specify CPU number to run the test. 1 is default
|
/kernel/linux/linux-5.10/tools/power/x86/intel_pstate_tracer/ |
D | intel_pstate_tracer.py | 595 for cpu_no in range(0, current_max_cpu + 1): 596 plot_perf_busy_with_sample(cpu_no) 597 plot_perf_busy(cpu_no) 598 plot_durations(cpu_no) 599 plot_loads(cpu_no)
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | prom_init.c | 2130 unsigned int cpu_no; in prom_hold_cpus() local 2145 cpu_no = be32_to_cpu(reg); in prom_hold_cpus() 2147 prom_debug("cpu hw idx = %u\n", cpu_no); in prom_hold_cpus() 2155 if (cpu_no != prom.cpu) { in prom_hold_cpus() 2157 prom_printf("starting cpu hw idx %u... ", cpu_no); in prom_hold_cpus() 2159 secondary_hold, cpu_no); in prom_hold_cpus() 2165 if (*acknowledge == cpu_no) in prom_hold_cpus() 2172 prom_printf("boot cpu hw idx %u\n", cpu_no); in prom_hold_cpus()
|