Home
last modified time | relevance | path

Searched refs:cpu_no (Results 1 – 13 of 13) sorted by relevance

/Linux-v6.6/tools/testing/selftests/resctrl/
Dresctrl.h64 int cpu_no; member
85 int get_resource_id(int cpu_no, int *resource_id);
91 int taskset_benchmark(pid_t bm_pid, int cpu_no);
93 int write_schemata(char *ctrlgrp, char *schemata, int cpu_no,
101 int mbm_bw_change(size_t span, int cpu_no, char *bw_report, char **benchmark_cmd);
104 int mba_schemata_change(int cpu_no, char *bw_report, char **benchmark_cmd);
107 int get_cache_size(int cpu_no, char *cache_type, unsigned long *cache_size);
113 int cat_perf_miss_val(int cpu_no, int no_of_bits, char *cache_type);
114 int cmt_resctrl_val(int cpu_no, int n, char **benchmark_cmd);
117 int get_core_sibling(int cpu_no);
Dresctrl_tests.c74 int cpu_no, char *bw_report) in run_mbm_test() argument
91 res = mbm_bw_change(span, cpu_no, bw_report, benchmark_cmd); in run_mbm_test()
100 static void run_mba_test(char **benchmark_cmd, int cpu_no, char *bw_report) in run_mba_test() argument
117 res = mba_schemata_change(cpu_no, bw_report, benchmark_cmd); in run_mba_test()
124 static void run_cmt_test(char **benchmark_cmd, int cpu_no) in run_cmt_test() argument
141 res = cmt_resctrl_val(cpu_no, 5, benchmark_cmd); in run_cmt_test()
150 static void run_cat_test(int cpu_no, int no_of_bits) in run_cat_test() argument
167 res = cat_perf_miss_val(cpu_no, no_of_bits, "L3"); in run_cat_test()
179 int c, cpu_no = 1, argc_new = argc, i, no_of_bits = 0; in main() local
227 cpu_no = atoi(optarg); in main()
[all …]
Dcat_test.c36 ret = write_schemata(p->ctrlgrp, schemata, p->cpu_no, in cat_setup()
90 int cat_perf_miss_val(int cpu_no, int n, char *cache_type) in cat_perf_miss_val() argument
108 ret = get_cache_size(cpu_no, cache_type, &cache_size); in cat_perf_miss_val()
127 sibling_cpu_no = get_core_sibling(cpu_no); in cat_perf_miss_val()
133 .cpu_no = cpu_no, in cat_perf_miss_val()
168 param.cpu_no = sibling_cpu_no; in cat_perf_miss_val()
Dresctrlfs.c101 int get_resource_id(int cpu_no, int *resource_id) in get_resource_id() argument
108 PHYS_ID_PATH, cpu_no); in get_resource_id()
111 PHYS_ID_PATH, cpu_no); in get_resource_id()
138 int get_cache_size(int cpu_no, char *cache_type, unsigned long *cache_size) in get_cache_size() argument
154 cpu_no, cache_num); in get_cache_size()
235 int get_core_sibling(int cpu_no) in get_core_sibling() argument
242 CORE_SIBLINGS_PATH, cpu_no); in get_core_sibling()
263 if (sibling_cpu_no != 0 && sibling_cpu_no != cpu_no) in get_core_sibling()
278 int taskset_benchmark(pid_t bm_pid, int cpu_no) in taskset_benchmark() argument
283 CPU_SET(cpu_no, &my_set); in taskset_benchmark()
[all …]
Dcache.c38 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()
64 static int reset_enable_llc_perf(pid_t pid, int cpu_no) in reset_enable_llc_perf() argument
68 ret = perf_event_open_llc_miss(pid, cpu_no); in reset_enable_llc_perf()
223 ret = taskset_benchmark(bm_pid, param->cpu_no); in cat_val()
244 ret = reset_enable_llc_perf(bm_pid, param->cpu_no); in cat_val()
Dcmt_test.c71 int cmt_resctrl_val(int cpu_no, int n, char **benchmark_cmd) in cmt_resctrl_val() argument
88 ret = get_cache_size(cpu_no, "L3", &cache_size); in cmt_resctrl_val()
105 .cpu_no = cpu_no, in cmt_resctrl_val()
Dmbm_test.c99 ret = write_schemata(p->ctrlgrp, "100", p->cpu_no, in mbm_setup()
112 int mbm_bw_change(size_t span, int cpu_no, char *bw_report, char **benchmark_cmd) in mbm_bw_change() argument
119 .cpu_no = cpu_no, in mbm_bw_change()
Dresctrl_val.c133 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()
579 int cpu_no, char *resctrl_val) in initialize_llc_occu_resctrl() argument
583 if (get_resource_id(cpu_no, &resource_id) < 0) { in initialize_llc_occu_resctrl()
606 ret = get_mem_bw_imc(param->cpu_no, param->bw_report, &bw_imc); in measure_vals()
716 ret = taskset_benchmark(bm_pid, param->cpu_no); in resctrl_val()
[all …]
Dmba_test.c43 ret = write_schemata(p->ctrlgrp, allocation_str, p->cpu_no, in mba_setup()
144 int mba_schemata_change(int cpu_no, char *bw_report, char **benchmark_cmd) in mba_schemata_change() argument
150 .cpu_no = cpu_no, in mba_schemata_change()
DREADME77 -p cpu_no: specify CPU number to run the test. 1 is default
/Linux-v6.6/tools/power/x86/amd_pstate_tracer/
Damd_pstate_trace.py341 for cpu_no in range(0, current_max_cpu + 1):
342 plot_per_cpu_freq(cpu_no)
343 plot_per_cpu_des_perf(cpu_no)
344 plot_per_cpu_load(cpu_no)
/Linux-v6.6/tools/power/x86/intel_pstate_tracer/
Dintel_pstate_tracer.py593 for cpu_no in range(0, current_max_cpu + 1):
594 plot_perf_busy_with_sample(cpu_no)
595 plot_perf_busy(cpu_no)
596 plot_durations(cpu_no)
597 plot_loads(cpu_no)
/Linux-v6.6/arch/powerpc/kernel/
Dprom_init.c2161 unsigned int cpu_no; in prom_hold_cpus() local
2176 cpu_no = be32_to_cpu(reg); in prom_hold_cpus()
2178 prom_debug("cpu hw idx = %u\n", cpu_no); in prom_hold_cpus()
2186 if (cpu_no != prom.cpu) { in prom_hold_cpus()
2188 prom_printf("starting cpu hw idx %u... ", cpu_no); in prom_hold_cpus()
2190 secondary_hold, cpu_no); in prom_hold_cpus()
2196 if (*acknowledge == cpu_no) in prom_hold_cpus()
2203 prom_printf("boot cpu hw idx %u\n", cpu_no); in prom_hold_cpus()