| /tools/power/cpupower/bench/ |
| A D | main.c | 67 struct config *config = NULL; in main() local 71 if (config == NULL) in main() 116 free(config); in main() 142 config->verbose = 1; in main() 151 free(config); in main() 157 if (config->verbose) { in main() 168 config->sleep, in main() 169 config->load, in main() 172 config->cpu, in main() 178 prepare_user(config); in main() [all …]
|
| A D | benchmark.c | 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 92 total_time += _round * (config->sleep + config->load); in start_benchmark() 111 if (config->verbose) in start_benchmark() 119 if (config->verbose) in start_benchmark() 131 if (config->verbose) in start_benchmark() 146 if (set_cpufreq_governor(config->governor, config->cpu) != 0) in start_benchmark() 157 if (config->verbose) in start_benchmark() [all …]
|
| A D | parse.c | 123 struct config *config = malloc(sizeof(struct config)); in prepare_default_config() local 124 if (!config) { in prepare_default_config() 135 config->cycles = 5; in prepare_default_config() 136 config->rounds = 50; in prepare_default_config() 137 config->cpu = 0; in prepare_default_config() 139 config->verbose = 0; in prepare_default_config() 140 strncpy(config->governor, "ondemand", sizeof(config->governor)); in prepare_default_config() 148 return config; in prepare_default_config() 160 int prepare_config(const char *path, struct config *config) in prepare_config() argument 175 free(config); in prepare_config() [all …]
|
| A D | system.c | 126 void prepare_user(const struct config *config) in prepare_user() argument 134 (config->sleep + config->sleep_step * round); 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() 159 switch (config->prio) { in prepare_system() 161 if (config->verbose) in prepare_system() 167 if (config->verbose) in prepare_system() [all …]
|
| /tools/perf/tests/shell/ |
| A D | daemon.sh | 118 line=`perf daemon --config ${config} -x: | head -1` 126 perf daemon stop --config ${config} 137 perf daemon start --config ${config} 162 config=$(mktemp /tmp/perf.daemon.config.XXX) 216 config=$(mktemp /tmp/perf.daemon.config.XXX) 304 one=`perf daemon --config ${config} -x: | wc -l` 341 config=$(mktemp /tmp/perf.daemon.config.XXX) 399 config=$(mktemp /tmp/perf.daemon.config.XXX) 430 perf daemon signal --config ${config} 454 config=$(mktemp /tmp/perf.daemon.config.XXX) [all …]
|
| /tools/testing/selftests/ptrace/ |
| A D | get_set_sud.c | 20 struct ptrace_sud_config config; in TEST() local 37 memset(&config, 0xff, sizeof(config)); in TEST() 41 (void *)sizeof(config), &config); in TEST() 46 ASSERT_EQ(config.offset, 0); in TEST() 47 ASSERT_EQ(config.len, 0); in TEST() 50 config.selector = 0; in TEST() 51 config.offset = 0x400000; in TEST() 52 config.len = 0x1000; in TEST() 55 (void *)sizeof(config), &config); in TEST() 59 memset(&config, 1, sizeof(config)); in TEST() [all …]
|
| /tools/perf/util/ |
| A D | stat-display.c | 115 config->csv_sep, run, config->csv_sep, enabled_percent); in print_running_csv() 189 fprintf(config->output, "%s%.2f%%", config->csv_sep, pct); in print_noise_pct_csv() 504 fprintf(out, "%s%s", config->csv_sep, config->csv_sep); in print_metric_csv() 958 if (!config->aggr_map || !config->aggr_get_id) in should_skip_zero_counter() 1034 } else if (config->summary && config->csv_output && in print_counter_aggrdata() 1098 if (!config->aggr_map || !config->aggr_get_id) in print_aggr() 1122 if (!config->aggr_map || !config->aggr_get_id) in print_aggr_cgroup() 1223 fprintf(config->output, "time%s", config->csv_sep); in print_metric_headers_csv() 1230 fputs(config->csv_sep, config->output); in print_metric_headers_csv() 1474 if (config->interval || config->csv_output || config->json_output) in print_footer() [all …]
|
| A D | stat-shadow.c | 332 out->new_line(config, ctxp); in print_instructions() 510 if (config->user_requested_cpu_list) in generic_metric() 513 pctx->sctx.system_wide = config->system_wide; in generic_metric() 543 print_metric(config, ctxp, thresh, "%8.1f", in generic_metric() 546 print_metric(config, ctxp, thresh, "%8.2f", in generic_metric() 558 print_metric(config, ctxp, thresh, /*fmt=*/NULL, in generic_metric() 656 if (!config->metric_only && me->is_default) { in perf_stat__print_shadow_stats_metricgroup() 676 out->new_line(config, ctxp); in perf_stat__print_shadow_stats_metricgroup() 710 if (config->iostat_run) { in perf_stat__print_shadow_stats() 711 iostat_print_metric(config, evsel, out); in perf_stat__print_shadow_stats() [all …]
|
| A D | iostat.h | 33 int iostat_prepare(struct evlist *evlist, struct perf_stat_config *config); 36 void iostat_list(struct evlist *evlist, struct perf_stat_config *config); 38 void iostat_prefix(struct evlist *evlist, struct perf_stat_config *config, 40 void iostat_print_header_prefix(struct perf_stat_config *config); 41 void iostat_print_metric(struct perf_stat_config *config, struct evsel *evsel, 44 struct perf_stat_config *config, struct timespec *ts,
|
| /tools/perf/tests/shell/attr/ |
| A 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 …]
|
| A 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 …]
|
| A 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 …]
|
| A D | test-stat-default | 1 [config] 10 config=1 16 config=3 22 config=4 28 config=2 34 config=0 41 config=7 47 config=8 54 config=1 61 config=4 [all …]
|
| /tools/power/pm-graph/ |
| A D | Makefile | 40 $(INSTALL_DATA) config/cgskip.txt $(DESTDIR)$(LIBDIR)/pm-graph/config 41 $(INSTALL_DATA) config/freeze-callgraph.cfg $(DESTDIR)$(LIBDIR)/pm-graph/config 42 $(INSTALL_DATA) config/freeze.cfg $(DESTDIR)$(LIBDIR)/pm-graph/config 43 $(INSTALL_DATA) config/freeze-dev.cfg $(DESTDIR)$(LIBDIR)/pm-graph/config 44 $(INSTALL_DATA) config/standby-callgraph.cfg $(DESTDIR)$(LIBDIR)/pm-graph/config 45 $(INSTALL_DATA) config/standby.cfg $(DESTDIR)$(LIBDIR)/pm-graph/config 46 $(INSTALL_DATA) config/standby-dev.cfg $(DESTDIR)$(LIBDIR)/pm-graph/config 47 $(INSTALL_DATA) config/suspend-callgraph.cfg $(DESTDIR)$(LIBDIR)/pm-graph/config 48 $(INSTALL_DATA) config/suspend.cfg $(DESTDIR)$(LIBDIR)/pm-graph/config 49 $(INSTALL_DATA) config/suspend-dev.cfg $(DESTDIR)$(LIBDIR)/pm-graph/config [all …]
|
| /tools/testing/selftests/net/rds/ |
| A D | config.sh | 30 scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES 33 scripts/config --file "$CONF_FILE" --enable CONFIG_RDS 34 scripts/config --file "$CONF_FILE" --enable CONFIG_RDS_TCP 38 scripts/config --file "$CONF_FILE" --enable CONFIG_GCOV_KERNEL 39 scripts/config --file "$CONF_FILE" --disable GCOV_PROFILE_ALL 40 scripts/config --file "$CONF_FILE" --enable GCOV_PROFILE_RDS 42 scripts/config --file "$CONF_FILE" --disable CONFIG_GCOV_KERNEL 43 scripts/config --file "$CONF_FILE" --disable GCOV_PROFILE_ALL 44 scripts/config --file "$CONF_FILE" --disable GCOV_PROFILE_RDS 48 scripts/config --file "$CONF_FILE" --enable CONFIG_NET_NS [all …]
|
| /tools/testing/selftests/arm64/fp/ |
| A D | fp-ptrace.c | 1030 if (config->sve_vl_in != config->sve_vl_expected) in sve_sme_same() 1033 if (config->sme_vl_in != config->sme_vl_expected) in sve_sme_same() 1036 if (config->svcr_in != config->svcr_expected) in sve_sme_same() 1083 if (config->sme_vl_in != config->sme_vl_expected) in sve_write_fpsimd_supported() 1172 if (config->sme_vl_in != config->sme_vl_expected) { in sve_write_expected() 1285 if (config->sme_vl_in != config->sme_vl_expected) { in za_write_expected() 1335 if (config->sme_vl_in != config->sme_vl_expected) in zt_write_supported() 1382 config->sve_vl_in, config->sve_vl_expected, in run_test() 1383 config->sme_vl_in, config->svcr_in, in run_test() 1387 config->sve_vl_in, config->sve_vl_expected); in run_test() [all …]
|
| /tools/testing/selftests/bpf/ |
| A D | unpriv_helpers.c | 20 gzFile config; in open_config() local 29 if (config) in open_config() 30 return config; in open_config() 35 if (!config) in open_config() 37 return config; in open_config() 44 gzFile config; in config_contains() local 47 config = open_config(); in config_contains() 48 if (!config) in config_contains() 58 gzclose(config); in config_contains() 65 gzclose(config); in config_contains() [all …]
|
| /tools/testing/selftests/mm/ |
| A D | va_high_addr_switch.sh | 21 local config="/proc/config.gz" 22 [[ -f "${config}" ]] || config="/boot/config-$(uname -r)" 23 [[ -f "${config}" ]] || skip "Cannot find kernel config in /proc or /boot" 27 local pg_table_levels=$(gzip -dcfq "${config}" | grep PGTABLE_LEVELS | cut -d'=' -f 2) 41 local config="/proc/config.gz" 42 [[ -f "${config}" ]] || config="/boot/config-$(uname -r)" 43 [[ -f "${config}" ]] || skip "Cannot find kernel config in /proc or /boot" 45 local pg_table_levels=$(gzip -dcfq "${config}" | grep PGTABLE_LEVELS | cut -d'=' -f 2)
|
| /tools/gpio/ |
| A D | gpio-event-mon.c | 31 struct gpio_v2_line_config *config, in monitor_device() argument 173 struct gpio_v2_line_config config; in main() local 177 memset(&config, 0, sizeof(config)); in main() 178 config.flags = GPIO_V2_LINE_FLAG_INPUT; in main() 199 config.flags |= GPIO_V2_LINE_FLAG_OPEN_DRAIN; in main() 202 config.flags |= GPIO_V2_LINE_FLAG_OPEN_SOURCE; in main() 205 config.flags |= GPIO_V2_LINE_FLAG_EDGE_RISING; in main() 223 attr = config.num_attrs; in main() 224 config.num_attrs++; in main() 235 if (!(config.flags & EDGE_FLAGS)) { in main() [all …]
|
| A D | gpio-utils.c | 59 struct gpio_v2_line_config *config, in gpiotools_request_line() argument 84 req.config = *config; in gpiotools_request_line() 211 struct gpio_v2_line_config config; in gpiotools_gets() local 214 memset(&config, 0, sizeof(config)); in gpiotools_gets() 215 config.flags = GPIO_V2_LINE_FLAG_INPUT; in gpiotools_gets() 217 &config, CONSUMER); in gpiotools_gets() 267 struct gpio_v2_line_config config; in gpiotools_sets() local 269 memset(&config, 0, sizeof(config)); in gpiotools_sets() 270 config.flags = GPIO_V2_LINE_FLAG_OUTPUT; in gpiotools_sets() 271 config.num_attrs = 1; in gpiotools_sets() [all …]
|
| /tools/testing/ktest/examples/include/ |
| A 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
|
| /tools/thermal/thermometer/ |
| A D | thermometer.c | 41 const char *config; member 86 config->tz_regex = realloc(config->tz_regex, sizeof(*config->tz_regex) * in configuration_default_init() 89 if (regcomp(&config->tz_regex[config->nr_tz_regex].regex, ".*", in configuration_default_init() 95 config->tz_regex[config->nr_tz_regex].polling = 250; in configuration_default_init() 96 config->nr_tz_regex = 1; in configuration_default_init() 159 config->tz_regex = realloc(config->tz_regex, sizeof(*config->tz_regex) * in configuration_init() 162 if (regcomp(&config->tz_regex[config->nr_tz_regex].regex, name, in configuration_init() 168 config->tz_regex[config->nr_tz_regex].polling = polling; in configuration_init() 169 config->nr_tz_regex++; in configuration_init() 225 options->config = optarg; in options_init() [all …]
|
| /tools/testing/selftests/net/ |
| A D | hwtstamp_config.c | 91 struct hwtstamp_config config; in main() local 101 config.flags = 0; in main() 102 config.tx_type = lookup_value(tx_types, N_TX_TYPES, argv[2]); in main() 103 config.rx_filter = lookup_value(rx_filters, N_RX_FILTERS, argv[3]); in main() 104 if (config.tx_type < 0 || config.rx_filter < 0) { in main() 117 ifr.ifr_data = (caddr_t)&config; in main() 124 printf("flags = %#x\n", config.flags); in main() 125 name = lookup_name(tx_types, N_TX_TYPES, config.tx_type); in main() 129 printf("tx_type = %d\n", config.tx_type); in main() 130 name = lookup_name(rx_filters, N_RX_FILTERS, config.rx_filter); in main() [all …]
|
| /tools/testing/selftests/rcutorture/bin/ |
| A D | configinit.sh | 35 mv .config .config.sav 36 sh $T/upd.sh < .config.sav > .config 37 cp .config .config.new 41 configcheck.sh .config $c
|
| /tools/perf/arch/x86/util/ |
| A D | iostat.c | 346 config->metric_only = true; in iostat_prepare() 347 config->aggr_mode = AGGR_GLOBAL; in iostat_prepare() 360 config->iostat_run = true; in iostat_parse() 400 struct perf_stat_config *config, in iostat_prefix() argument 414 config->csv_sep); in iostat_prefix() 417 config->csv_sep); in iostat_prefix() 423 if (config->csv_output) in iostat_print_header_prefix() 424 fputs("port,", config->output); in iostat_print_header_prefix() 425 else if (config->interval) in iostat_print_header_prefix() 472 print_cnt_cb(config, counter, arg); in iostat_print_counters() [all …]
|