/tools/testing/selftests/resctrl/ |
D | resctrl.h | 65 int cpu_no; member 88 int get_resource_id(int cpu_no, int *resource_id); 93 int taskset_benchmark(pid_t bm_pid, int cpu_no); 95 int write_schemata(char *ctrlgrp, char *schemata, int cpu_no, 104 int mbm_bw_change(int span, int cpu_no, char *bw_report, char **benchmark_cmd); 107 int mba_schemata_change(int cpu_no, char *bw_report, char **benchmark_cmd); 110 int get_cache_size(int cpu_no, char *cache_type, unsigned long *cache_size); 114 int cat_perf_miss_val(int cpu_no, int no_of_bits, char *cache_type); 115 int cmt_resctrl_val(int cpu_no, int n, char **benchmark_cmd); 118 int get_core_sibling(int cpu_no);
|
D | resctrl_tests.c | 74 int cpu_no, char *bw_report) in run_mbm_test() argument 87 res = mbm_bw_change(span, cpu_no, bw_report, benchmark_cmd); in run_mbm_test() 93 int cpu_no, char *bw_report) in run_mba_test() argument 106 res = mba_schemata_change(cpu_no, bw_report, benchmark_cmd); in run_mba_test() 111 static void run_cmt_test(bool has_ben, char **benchmark_cmd, int cpu_no) in run_cmt_test() argument 123 res = cmt_resctrl_val(cpu_no, 5, benchmark_cmd); in run_cmt_test() 128 static void run_cat_test(int cpu_no, int no_of_bits) in run_cat_test() argument 139 res = cat_perf_miss_val(cpu_no, no_of_bits, "L3"); in run_cat_test() 147 int c, cpu_no = 1, span = 250, argc_new = argc, i, no_of_bits = 0; in main() local 196 cpu_no = atoi(optarg); in main() [all …]
|
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()
|
D | cmt_test.c | 83 int cmt_resctrl_val(int cpu_no, int n, char **benchmark_cmd) in cmt_resctrl_val() argument 100 ret = get_cache_size(cpu_no, "L3", &cache_size); in cmt_resctrl_val() 117 .cpu_no = cpu_no, in cmt_resctrl_val()
|
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()
|
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 …]
|
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() 225 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 | mba_test.c | 49 ret = write_schemata(p->ctrlgrp, allocation_str, p->cpu_no, in mba_setup() 150 int mba_schemata_change(int cpu_no, char *bw_report, char **benchmark_cmd) in mba_schemata_change() argument 156 .cpu_no = cpu_no, in mba_schemata_change()
|
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 | README | 52 -p cpu_no: specify CPU number to run the test. 1 is default
|
/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)
|