/tools/power/cpupower/bench/ |
D | main.c | 67 struct config *config = NULL; in main() local 69 config = prepare_default_config(); in main() 71 if (config == NULL) in main() 82 if (config->output != NULL) in main() 83 fclose(config->output); in main() 85 config->output = prepare_output(optarg); in main() 87 if (config->output == NULL) in main() 93 sscanf(optarg, "%li", &config->sleep); in main() 97 sscanf(optarg, "%li", &config->load); in main() 101 sscanf(optarg, "%u", &config->cpu); in main() [all …]
|
D | benchmark.c | 17 if (config->output != stdout) { \ 32 unsigned int calculate_timespace(long load, struct config *config) in calculate_timespace() argument 40 if (config->verbose) in calculate_timespace() 62 if (config->verbose) in calculate_timespace() 78 void start_benchmark(struct config *config) in start_benchmark() argument 87 sleep_time = config->sleep; in start_benchmark() 88 load_time = config->load; in start_benchmark() 91 for (_round = 1; _round <= config->rounds; _round++) in start_benchmark() 92 total_time += _round * (config->sleep + config->load); in start_benchmark() 95 for (_round = 0; _round < config->rounds; _round++) { in start_benchmark() [all …]
|
D | parse.c | 120 struct config *prepare_default_config() in prepare_default_config() 122 struct config *config = malloc(sizeof(struct config)); in prepare_default_config() local 126 config->sleep = 500000; in prepare_default_config() 127 config->load = 500000; in prepare_default_config() 128 config->sleep_step = 500000; in prepare_default_config() 129 config->load_step = 500000; in prepare_default_config() 130 config->cycles = 5; in prepare_default_config() 131 config->rounds = 50; in prepare_default_config() 132 config->cpu = 0; in prepare_default_config() 133 config->prio = SCHED_HIGH; in prepare_default_config() [all …]
|
D | system.c | 126 void prepare_user(const struct config *config) in prepare_user() argument 132 for (round = 0; round < config->rounds; round++) { in prepare_user() 133 sleep_time += 2 * config->cycles * in prepare_user() 134 (config->sleep + config->sleep_step * round); in prepare_user() 135 load_time += 2 * config->cycles * in prepare_user() 136 (config->load + config->load_step * round) + in prepare_user() 137 (config->load + config->load_step * round * 4); in prepare_user() 140 if (config->verbose || config->output != stdout) in prepare_user() 152 void prepare_system(const struct config *config) in prepare_system() argument 154 if (config->verbose) in prepare_system() [all …]
|
D | system.h | 15 void prepare_user(const struct config *config); 16 void prepare_system(const struct config *config);
|
D | parse.h | 8 struct config struct 38 int prepare_config(const char *path, struct config *config); argument 39 struct config *prepare_default_config();
|
/tools/perf/util/ |
D | stat-display.c | 24 static void print_running(struct perf_stat_config *config, in print_running() argument 27 if (config->csv_output) { in print_running() 28 fprintf(config->output, "%s%" PRIu64 "%s%.2f", in print_running() 29 config->csv_sep, in print_running() 31 config->csv_sep, in print_running() 34 fprintf(config->output, " (%.2f%%)", 100.0 * run / ena); in print_running() 38 static void print_noise_pct(struct perf_stat_config *config, in print_noise_pct() argument 43 if (config->csv_output) in print_noise_pct() 44 fprintf(config->output, "%s%.2f%%", config->csv_sep, pct); in print_noise_pct() 46 fprintf(config->output, " ( +-%6.2f%% )", pct); in print_noise_pct() [all …]
|
D | stat-shadow.c | 448 static void print_stalled_cycles_frontend(struct perf_stat_config *config, in print_stalled_cycles_frontend() argument 466 out->print_metric(config, out->ctx, color, "%7.2f%%", "frontend cycles idle", in print_stalled_cycles_frontend() 469 out->print_metric(config, out->ctx, NULL, NULL, "frontend cycles idle", 0); in print_stalled_cycles_frontend() 472 static void print_stalled_cycles_backend(struct perf_stat_config *config, in print_stalled_cycles_backend() argument 489 out->print_metric(config, out->ctx, color, "%7.2f%%", "backend cycles idle", ratio); in print_stalled_cycles_backend() 492 static void print_branch_misses(struct perf_stat_config *config, in print_branch_misses() argument 510 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all branches", ratio); in print_branch_misses() 513 static void print_l1_dcache_misses(struct perf_stat_config *config, in print_l1_dcache_misses() argument 532 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all L1-dcache accesses", ratio); in print_l1_dcache_misses() 535 static void print_l1_icache_misses(struct perf_stat_config *config, in print_l1_icache_misses() argument [all …]
|
/tools/perf/tests/attr/ |
D | test-stat-detailed-3 | 1 [config] 11 config=1 17 config=3 23 config=4 29 config=2 35 config=0 42 config=7 49 config=8 56 config=1 63 config=4 [all …]
|
D | test-stat-detailed-2 | 1 [config] 11 config=1 17 config=3 23 config=4 29 config=2 35 config=0 42 config=7 49 config=8 56 config=1 63 config=4 [all …]
|
D | test-stat-detailed-1 | 1 [config] 11 config=1 17 config=3 23 config=4 29 config=2 35 config=0 42 config=7 49 config=8 56 config=1 63 config=4 [all …]
|
D | test-stat-default | 1 [config] 10 config=1 16 config=3 22 config=4 28 config=2 34 config=0 41 config=7 48 config=8 55 config=1 62 config=4 [all …]
|
/tools/power/pm-graph/ |
D | Makefile | 12 install -d $(DESTDIR)$(PREFIX)/lib/pm-graph/config 13 install -m 644 config/cgskip.txt $(DESTDIR)$(PREFIX)/lib/pm-graph/config 14 install -m 644 config/freeze-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config 15 install -m 644 config/freeze.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config 16 install -m 644 config/freeze-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config 17 install -m 644 config/standby-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config 18 install -m 644 config/standby.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config 19 install -m 644 config/standby-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config 20 install -m 644 config/suspend-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config 21 install -m 644 config/suspend.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config [all …]
|
/tools/gpio/ |
D | gpio-event-mon.c | 31 struct gpio_v2_line_config *config, in monitor_device() argument 51 ret = gpiotools_request_line(device_name, lines, num_lines, config, in monitor_device() 171 struct gpio_v2_line_config config; in main() local 175 memset(&config, 0, sizeof(config)); in main() 176 config.flags = GPIO_V2_LINE_FLAG_INPUT; in main() 197 config.flags |= GPIO_V2_LINE_FLAG_OPEN_DRAIN; in main() 200 config.flags |= GPIO_V2_LINE_FLAG_OPEN_SOURCE; in main() 203 config.flags |= GPIO_V2_LINE_FLAG_EDGE_RISING; in main() 206 config.flags |= GPIO_V2_LINE_FLAG_EDGE_FALLING; in main() 215 attr = config.num_attrs; in main() [all …]
|
D | gpio-utils.c | 127 struct gpio_v2_line_config *config, in gpiotools_request_line() argument 152 req.config = *config; in gpiotools_request_line() 300 struct gpio_v2_line_config config; in gpiotools_gets() local 303 memset(&config, 0, sizeof(config)); in gpiotools_gets() 304 config.flags = GPIO_V2_LINE_FLAG_INPUT; in gpiotools_gets() 306 &config, CONSUMER); in gpiotools_gets() 356 struct gpio_v2_line_config config; in gpiotools_sets() local 358 memset(&config, 0, sizeof(config)); in gpiotools_sets() 359 config.flags = GPIO_V2_LINE_FLAG_OUTPUT; in gpiotools_sets() 360 config.num_attrs = 1; in gpiotools_sets() [all …]
|
/tools/testing/ktest/examples/include/ |
D | min-config.conf | 47 TEST_START IF ${TEST} == min-config 49 OUTPUT_MIN_CONFIG = ${CONFIG_DIR}/config-new-min-net 50 IGNORE_CONFIG = ${CONFIG_DIR}/config-skip-net 55 TEST_START IF ${TEST} == min-config && ${MULTI} 57 OUTPUT_MIN_CONFIG = ${CONFIG_DIR}/config-new-min 58 IGNORE_CONFIG = ${CONFIG_DIR}/config-skip 59 MIN_CONFIG = ${CONFIG_DIR}/config-new-min-net
|
D | bisect.conf | 46 MIN_CONFIG = ${THIS_DIR}/config-bisect 82 TEST_START IF ${TEST} == config-bisect 87 CONFIG_BISECT = ${THIS_DIR}/config-bad 90 CONFIG_BISECT_GOOD = ${THIS_DIR}/config-good
|
/tools/testing/selftests/net/ |
D | hwtstamp_config.c | 89 struct hwtstamp_config config; in main() local 99 config.flags = 0; in main() 100 config.tx_type = lookup_value(tx_types, N_TX_TYPES, argv[2]); in main() 101 config.rx_filter = lookup_value(rx_filters, N_RX_FILTERS, argv[3]); in main() 102 if (config.tx_type < 0 || config.rx_filter < 0) { in main() 115 ifr.ifr_data = (caddr_t)&config; in main() 122 printf("flags = %#x\n", config.flags); in main() 123 name = lookup_name(tx_types, N_TX_TYPES, config.tx_type); in main() 127 printf("tx_type = %d\n", config.tx_type); in main() 128 name = lookup_name(rx_filters, N_RX_FILTERS, config.rx_filter); in main() [all …]
|
/tools/testing/selftests/rcutorture/bin/ |
D | configinit.sh | 36 mv .config .config.sav 37 sh $T/upd.sh < .config.sav > .config 38 cp .config .config.new 42 configcheck.sh .config $c
|
/tools/perf/tests/ |
D | pmu.c | 29 .config = (char *) "krava01", 35 .config = (char *) "krava02", 41 .config = (char *) "krava03", 47 .config = (char *) "krava11", 53 .config = (char *) "krava12", 59 .config = (char *) "krava13", 65 .config = (char *) "krava21", 71 .config = (char *) "krava22", 77 .config = (char *) "krava23", 166 if (attr.config != 0xc00000000002a823) in test__pmu()
|
D | stat.c | 10 static bool has_term(struct perf_record_stat_config *config, in has_term() argument 15 for (i = 0; i < config->nr; i++) { in has_term() 16 if ((config->data[i].tag == tag) && in has_term() 17 (config->data[i].val == val)) in has_term() 29 struct perf_record_stat_config *config = &event->stat_config; in process_stat_config_event() local 33 has_term(config, PERF_STAT_CONFIG_TERM__##term, val) in process_stat_config_event() 35 TEST_ASSERT_VAL("wrong nr", config->nr == PERF_STAT_CONFIG_TERM__MAX); in process_stat_config_event() 42 perf_event__read_stat_config(&stat_config, config); in process_stat_config_event()
|
/tools/usb/usbip/ |
D | .gitignore | 7 config.guess 8 config.h 9 config.h.in 10 config.log 11 config.status 12 config.sub
|
/tools/testing/ktest/ |
D | config-bisect.pl | 249 my ($hash, $config) = @_; 251 doprint "Reading configs from $config\n"; 253 open (IN, $config) 254 or dodie "Failed to read $config"; 269 my ($config) = @_; 271 assign_configs \%config_ignore, $config; 275 my ($config) = @_; 277 my $arr = $dependency{$config}; 301 foreach my $config (keys %configs) { 302 print OUT "$configs{$config}\n"; [all …]
|
D | ktest.pl | 586 my ($config) = @_; 589 return if (defined($opt{$config})); 591 if (defined($config_help{$config})) { 593 print $config_help{$config}; 597 print "$config = "; 598 if (defined($default{$config}) && length($default{$config})) { 599 print "\[$default{$config}\] "; 604 if ($default{$config}) { 605 $ans = $default{$config}; 611 $entered_configs{$config} = ${ans}; [all …]
|
/tools/lib/bpf/ |
D | xsk.c | 53 struct xsk_umem_config config; member 79 struct xsk_socket_config config; member 225 &umem->config.fill_size, in xsk_create_umem_rings() 226 sizeof(umem->config.fill_size)); in xsk_create_umem_rings() 231 &umem->config.comp_size, in xsk_create_umem_rings() 232 sizeof(umem->config.comp_size)); in xsk_create_umem_rings() 240 map = mmap(NULL, off.fr.desc + umem->config.fill_size * sizeof(__u64), in xsk_create_umem_rings() 246 fill->mask = umem->config.fill_size - 1; in xsk_create_umem_rings() 247 fill->size = umem->config.fill_size; in xsk_create_umem_rings() 252 fill->cached_cons = umem->config.fill_size; in xsk_create_umem_rings() [all …]
|