/tools/testing/selftests/resctrl/ |
D | cat_test.c | 34 va_list param; in cat_setup() local 37 va_start(param, num); in cat_setup() 38 p = va_arg(param, struct resctrl_val_param *); in cat_setup() 39 va_end(param); in cat_setup() 76 static int check_results(struct resctrl_val_param *param) in check_results() argument 84 fp = fopen(param->filename, "r"); in check_results() 109 no_of_bits = count_bits(param->mask); in check_results() 111 show_cache_info(sum_llc_perf_miss, no_of_bits, param->span); in check_results() 166 struct resctrl_val_param param = { in cat_perf_miss_val() local 179 param.span = cache_size * (count_of_bits - n) / count_of_bits; in cat_perf_miss_val() [all …]
|
D | cache.c | 175 int measure_cache_vals(struct resctrl_val_param *param, int bm_pid) in measure_cache_vals() argument 183 if (!strncmp(param->resctrl_val, CAT_STR, sizeof(CAT_STR))) { in measure_cache_vals() 193 if (!strncmp(param->resctrl_val, CQM_STR, sizeof(CQM_STR))) { in measure_cache_vals() 199 ret = print_results_cache(param->filename, bm_pid, llc_value); in measure_cache_vals() 213 int cat_val(struct resctrl_val_param *param) in cat_val() argument 216 char *resctrl_val = param->resctrl_val; in cat_val() 219 if (strcmp(param->filename, "") == 0) in cat_val() 220 sprintf(param->filename, "stdio"); in cat_val() 225 ret = taskset_benchmark(bm_pid, param->cpu_no); in cat_val() 230 ret = write_bm_pid_to_resctrl(bm_pid, param->ctrlgrp, param->mongrp, in cat_val() [all …]
|
D | cqm_test.c | 27 va_list param; in cqm_setup() local 29 va_start(param, num); in cqm_setup() 30 p = va_arg(param, struct resctrl_val_param *); in cqm_setup() 31 va_end(param); in cqm_setup() 74 static int check_results(struct resctrl_val_param *param, int no_of_bits) in check_results() argument 82 fp = fopen(param->filename, "r"); in check_results() 104 show_cache_info(sum_llc_occu_resc, no_of_bits, param->span); in check_results() 147 struct resctrl_val_param param = { in cqm_resctrl_val() local 161 sprintf(benchmark_cmd[1], "%lu", param.span); in cqm_resctrl_val() 165 ret = resctrl_val(benchmark_cmd, ¶m); in cqm_resctrl_val() [all …]
|
D | resctrl_val.c | 554 measure_vals(struct resctrl_val_param *param, unsigned long *bw_resc_start) in measure_vals() argument 567 ret = get_mem_bw_imc(param->cpu_no, param->bw_report, &bw_imc); in measure_vals() 576 ret = print_results_bw(param->filename, bm_pid, bw_imc, bw_resc); in measure_vals() 593 int resctrl_val(char **benchmark_cmd, struct resctrl_val_param *param) in resctrl_val() argument 595 char *resctrl_val = param->resctrl_val; in resctrl_val() 602 if (strcmp(param->filename, "") == 0) in resctrl_val() 603 sprintf(param->filename, "stdio"); in resctrl_val() 607 ret = validate_bw_report_request(param->bw_report); in resctrl_val() 612 ret = remount_resctrlfs(param->mum_resctrlfs); in resctrl_val() 690 ret = taskset_benchmark(bm_pid, param->cpu_no); in resctrl_val() [all …]
|
D | mbm_test.c | 90 va_list param; in mbm_setup() local 97 va_start(param, num); in mbm_setup() 98 p = va_arg(param, struct resctrl_val_param *); in mbm_setup() 99 va_end(param); in mbm_setup() 116 struct resctrl_val_param param = { in mbm_bw_change() local 134 ret = resctrl_val(benchmark_cmd, ¶m); in mbm_bw_change()
|
D | mba_test.c | 30 va_list param; in mba_setup() local 33 va_start(param, num); in mba_setup() 34 p = va_arg(param, struct resctrl_val_param *); in mba_setup() 35 va_end(param); in mba_setup() 148 struct resctrl_val_param param = { in mba_schemata_change() local 165 ret = resctrl_val(benchmark_cmd, ¶m); in mba_schemata_change()
|
D | resctrl.h | 95 int resctrl_val(char **benchmark_cmd, struct resctrl_val_param *param); 104 int cat_val(struct resctrl_val_param *param); 111 int measure_cache_vals(struct resctrl_val_param *param, int bm_pid);
|
/tools/power/cpupower/utils/ |
D | cpuidle-set.c | 29 int ret = 0, cont = 1, param = 0, disabled; in cmd_idle_set() local 40 param = '?'; in cmd_idle_set() 44 if (param) { in cmd_idle_set() 45 param = -1; in cmd_idle_set() 49 param = ret; in cmd_idle_set() 53 if (param) { in cmd_idle_set() 54 param = -1; in cmd_idle_set() 58 param = ret; in cmd_idle_set() 62 if (param) { in cmd_idle_set() 63 param = -1; in cmd_idle_set() [all …]
|
D | cpupower.c | 128 const char *param = (*argv)[x]; in handle_options() local 129 if (!strcmp(param, "-h") || !strcmp(param, "--help")) { in handle_options() 132 } else if (!strcmp(param, "-c") || !strcmp(param, "--cpu")) { in handle_options() 152 } else if (!strcmp(param, "-v") || in handle_options() 153 !strcmp(param, "--version")) { in handle_options() 157 } else if (!strcmp(param, "-d") || !strcmp(param, "--debug")) { in handle_options() 163 fprintf(stderr, "Unknown option: %s\n", param); in handle_options()
|
/tools/usb/ |
D | testusb.c | 124 struct usbtest_param param; member 274 usbdev_ioctl (int fd, int ifno, unsigned request, void *param) in usbdev_ioctl() argument 280 wrapper.data = param; in usbdev_ioctl() 308 dev->param.test_num = i; in handle_testdev() 311 USBTEST_REQUEST, &dev->param); in handle_testdev() 330 (int) dev->param.duration.tv_sec, in handle_testdev() 331 (int) dev->param.duration.tv_usec); in handle_testdev() 374 struct usbtest_param param; in main() local 387 param.iterations = 1000; in main() 388 param.length = 1024; in main() [all …]
|
/tools/pci/ |
D | pcitest.c | 43 struct pci_endpoint_test_xfer_param param; in run_test() local 117 param.size = test->size; in run_test() 119 param.flags = PCITEST_FLAGS_USE_DMA; in run_test() 120 ret = ioctl(fd, PCITEST_WRITE, ¶m); in run_test() 129 param.size = test->size; in run_test() 131 param.flags = PCITEST_FLAGS_USE_DMA; in run_test() 132 ret = ioctl(fd, PCITEST_READ, ¶m); in run_test() 141 param.size = test->size; in run_test() 143 param.flags = PCITEST_FLAGS_USE_DMA; in run_test() 144 ret = ioctl(fd, PCITEST_COPY, ¶m); in run_test()
|
/tools/testing/selftests/gpio/ |
D | gpio-mockup.sh | 95 param=$1 98 if [ X"$param" = X ]; then 101 try_insert_module "gpio_mockup_ranges=$param" 103 echo "$param>: " 104 printf "%-10s %s\n" $param
|
/tools/perf/util/ |
D | expr.y | 25 %parse-param { double *final_val } 26 %parse-param { struct expr_parse_ctx *ctx } 27 %parse-param {void *scanner} 28 %lex-param {void* scanner}
|
D | pmu.y | 2 %parse-param {struct list_head *format} 3 %parse-param {char *name}
|
D | probe-finder.c | 1058 struct dwarf_callback_param *param = data; in probe_point_search_cb() local 1059 struct probe_finder *pf = param->data; in probe_point_search_cb() 1077 param->retval = find_probe_point_by_line(pf); in probe_point_search_cb() 1085 param->retval = 0; in probe_point_search_cb() 1088 param->retval = find_probe_point_lazy(sp_die, pf); in probe_point_search_cb() 1093 param->retval = call_probe_finder(sp_die, pf); in probe_point_search_cb() 1097 param->retval = die_walk_instances(sp_die, in probe_point_search_cb() 1100 if (param->retval == -ENOENT) in probe_point_search_cb() 1101 param->retval = 0; in probe_point_search_cb() 1105 if (strisglob(pp->function) && param->retval >= 0) { in probe_point_search_cb() [all …]
|
D | callchain.c | 62 int parse_callchain_record_opt(const char *arg, struct callchain_param *param) in parse_callchain_record_opt() argument 64 return parse_callchain_record(arg, param); in parse_callchain_record_opt() 250 int parse_callchain_record(const char *arg, struct callchain_param *param) in parse_callchain_record() argument 270 param->record_mode = CALLCHAIN_FP; in parse_callchain_record() 282 param->record_mode = CALLCHAIN_DWARF; in parse_callchain_record() 283 param->dump_size = default_stack_dump_size; in parse_callchain_record() 291 param->dump_size = size; in parse_callchain_record() 295 param->record_mode = CALLCHAIN_LBR; in parse_callchain_record() 437 u64 min_hit, struct callchain_param *param __maybe_unused) in sort_chain_flat() 465 u64 min_hit, struct callchain_param *param __maybe_unused) in sort_chain_graph_abs() [all …]
|
D | callchain.h | 195 int callchain_register_param(struct callchain_param *param); 258 int parse_callchain_record(const char *arg, struct callchain_param *param); 259 int parse_callchain_record_opt(const char *arg, struct callchain_param *param);
|
D | evsel.c | 788 struct callchain_param *param) in __evsel__config_callchain() argument 795 attr->sample_max_stack = param->max_stack; in __evsel__config_callchain() 801 if (param->record_mode == CALLCHAIN_LBR) { in __evsel__config_callchain() 820 if (param->record_mode == CALLCHAIN_DWARF) { in __evsel__config_callchain() 832 attr->sample_stack_user = param->dump_size; in __evsel__config_callchain() 847 struct callchain_param *param) in evsel__config_callchain() argument 849 if (param->enabled) in evsel__config_callchain() 850 return __evsel__config_callchain(evsel, opts, param); in evsel__config_callchain() 855 struct callchain_param *param) in perf_evsel__reset_callgraph() argument 860 if (param->record_mode == CALLCHAIN_LBR) { in perf_evsel__reset_callgraph() [all …]
|
/tools/power/cpupower/bench/ |
D | system.c | 104 struct sched_param param; in set_process_priority() local 108 param.sched_priority = priority; in set_process_priority() 110 if (sched_setscheduler(0, SCHEDULER, ¶m) < 0) { in set_process_priority()
|
/tools/laptop/freefall/ |
D | freefall.c | 110 struct sched_param param; in main() local 141 param.sched_priority = sched_get_priority_max(SCHED_FIFO); in main() 142 sched_setscheduler(0, SCHED_FIFO, ¶m); in main()
|
/tools/lib/subcmd/ |
D | exec-cmd.c | 192 va_list param; in execl_cmd() local 194 va_start(param, cmd); in execl_cmd() 198 arg = argv[argc++] = va_arg(param, char *); in execl_cmd() 202 va_end(param); in execl_cmd()
|
/tools/testing/selftests/powerpc/mm/ |
D | tlbie_test.c | 401 struct sched_param param; in set_pthread_cpu() local 407 param.sched_priority = 1; in set_pthread_cpu() 408 if (0 && sched_setscheduler(0, SCHED_FIFO, ¶m) == -1) { in set_pthread_cpu() 417 struct sched_param param; in set_mycpu() local 423 param.sched_priority = 1; in set_mycpu() 424 if (0 && sched_setscheduler(0, SCHED_FIFO, ¶m) == -1) { in set_mycpu()
|
/tools/power/x86/intel-speed-select/ |
D | isst-core.c | 987 unsigned int param; in isst_set_clos() local 996 param = BIT(MBOX_CMD_WRITE_BIT) | clos; in isst_set_clos() 998 ret = isst_send_mbox_command(cpu, CONFIG_CLOS, CLOS_PM_CLOS, param, req, in isst_set_clos() 1003 debug_printf("cpu:%d CLOS_PM_CLOS param:%x req:%x\n", cpu, param, req); in isst_set_clos() 1011 unsigned int param; in isst_clos_get_assoc_status() local 1015 param = core_id; in isst_clos_get_assoc_status() 1017 ret = isst_send_mbox_command(cpu, CONFIG_CLOS, CLOS_PQR_ASSOC, param, 0, in isst_clos_get_assoc_status() 1022 debug_printf("cpu:%d CLOS_PQR_ASSOC param:%x resp:%x\n", cpu, param, in isst_clos_get_assoc_status() 1032 unsigned int param; in isst_clos_associate() local 1037 param = BIT(MBOX_CMD_WRITE_BIT) | core_id; in isst_clos_associate() [all …]
|
/tools/virtio/ringtest/ |
D | ptr_ring.c | 123 if (param) in alloc_ring() 124 array.batch = param; in alloc_ring()
|
/tools/power/cpupower/utils/idle_monitor/ |
D | cpupower-monitor.c | 220 static void parse_monitor_param(char *param) in parse_monitor_param() argument 224 char *tmp = param, *token; in parse_monitor_param() 248 "try -l option\n"), param); in parse_monitor_param()
|