/linux/tools/testing/selftests/resctrl/ |
A D | resctrl_tests.c | 58 int cpu_no, char *bw_report) in run_mbm_test() argument 71 res = mbm_bw_change(span, cpu_no, bw_report, benchmark_cmd); in run_mbm_test() 77 int cpu_no, char *bw_report) in run_mba_test() argument 90 res = mba_schemata_change(cpu_no, bw_report, benchmark_cmd); in run_mba_test() 107 res = cmt_resctrl_val(cpu_no, 5, benchmark_cmd); in run_cmt_test() 112 static void run_cat_test(int cpu_no, int no_of_bits) in run_cat_test() argument 123 res = cat_perf_miss_val(cpu_no, no_of_bits, "L3"); in run_cat_test() 180 cpu_no = atoi(optarg); in main() 245 run_mbm_test(has_ben, benchmark_cmd, span, cpu_no, bw_report); in main() 251 run_cmt_test(has_ben, benchmark_cmd, cpu_no); in main() [all …]
|
A D | resctrl.h | 60 int cpu_no; member 83 int get_resource_id(int cpu_no, int *resource_id); 88 int taskset_benchmark(pid_t bm_pid, int cpu_no); 90 int write_schemata(char *ctrlgrp, char *schemata, int cpu_no, 99 int mbm_bw_change(int span, int cpu_no, char *bw_report, char **benchmark_cmd); 102 int mba_schemata_change(int cpu_no, char *bw_report, char **benchmark_cmd); 105 int get_cache_size(int cpu_no, char *cache_type, unsigned long *cache_size); 109 int cat_perf_miss_val(int cpu_no, int no_of_bits, char *cache_type); 110 int cmt_resctrl_val(int cpu_no, int n, char **benchmark_cmd); 113 int get_core_sibling(int cpu_no);
|
A D | cat_test.c | 47 ret = write_schemata(p->ctrlgrp, schemata, p->cpu_no, in cat_setup() 101 int cat_perf_miss_val(int cpu_no, int n, char *cache_type) in cat_perf_miss_val() argument 122 ret = get_cache_size(cpu_no, cache_type, &cache_size); in cat_perf_miss_val() 141 sibling_cpu_no = get_core_sibling(cpu_no); in cat_perf_miss_val() 147 .cpu_no = cpu_no, in cat_perf_miss_val() 182 param.cpu_no = sibling_cpu_no; in cat_perf_miss_val()
|
A D | resctrlfs.c | 104 int get_resource_id(int cpu_no, int *resource_id) in get_resource_id() argument 111 PHYS_ID_PATH, cpu_no); in get_resource_id() 114 PHYS_ID_PATH, cpu_no); in get_resource_id() 141 int get_cache_size(int cpu_no, char *cache_type, unsigned long *cache_size) in get_cache_size() argument 157 cpu_no, cache_num); in get_cache_size() 238 int get_core_sibling(int cpu_no) in get_core_sibling() argument 245 CORE_SIBLINGS_PATH, cpu_no); in get_core_sibling() 266 if (sibling_cpu_no != 0 && sibling_cpu_no != cpu_no) in get_core_sibling() 281 int taskset_benchmark(pid_t bm_pid, int cpu_no) in taskset_benchmark() argument 286 CPU_SET(cpu_no, &my_set); in taskset_benchmark() [all …]
|
A 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()
|
A 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() 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() 707 param->cpu_no, resctrl_val); in resctrl_val() [all …]
|
A D | cmt_test.c | 83 int cmt_resctrl_val(int cpu_no, int n, char **benchmark_cmd) in cmt_resctrl_val() argument 103 ret = get_cache_size(cpu_no, "L3", &cache_size); in cmt_resctrl_val() 120 .cpu_no = cpu_no, in cmt_resctrl_val()
|
A D | mbm_test.c | 106 ret = write_schemata(p->ctrlgrp, "100", p->cpu_no, in mbm_setup() 117 int mbm_bw_change(int span, int cpu_no, char *bw_report, char **benchmark_cmd) in mbm_bw_change() argument 124 .cpu_no = cpu_no, in mbm_bw_change()
|
A D | mba_test.c | 48 write_schemata(p->ctrlgrp, allocation_str, p->cpu_no, p->resctrl_val); in mba_setup() 145 int mba_schemata_change(int cpu_no, char *bw_report, char **benchmark_cmd) in mba_schemata_change() argument 151 .cpu_no = cpu_no, in mba_schemata_change()
|
A D | README | 52 -p cpu_no: specify CPU number to run the test. 1 is default
|
/linux/tools/power/x86/intel_pstate_tracer/ |
A 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)
|
/linux/arch/powerpc/kernel/ |
A D | prom_init.c | 2165 unsigned int cpu_no; in prom_hold_cpus() local 2180 cpu_no = be32_to_cpu(reg); in prom_hold_cpus() 2182 prom_debug("cpu hw idx = %u\n", cpu_no); in prom_hold_cpus() 2190 if (cpu_no != prom.cpu) { in prom_hold_cpus() 2192 prom_printf("starting cpu hw idx %u... ", cpu_no); in prom_hold_cpus() 2194 secondary_hold, cpu_no); in prom_hold_cpus() 2200 if (*acknowledge == cpu_no) in prom_hold_cpus() 2207 prom_printf("boot cpu hw idx %u\n", cpu_no); in prom_hold_cpus()
|