Lines Matching refs:config
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()
103 if (set_cpufreq_governor("performance", config->cpu) != 0) in start_benchmark()
109 calculations = calculate_timespace(load_time, config); in start_benchmark()
111 if (config->verbose) in start_benchmark()
113 " for %lius\n", _round + 1, config->cycles, in start_benchmark()
116 fprintf(config->output, "%u %li %li ", in start_benchmark()
119 if (config->verbose) in start_benchmark()
125 for (cycle = 0; cycle < config->cycles; cycle++) { in start_benchmark()
131 if (config->verbose) in start_benchmark()
138 fprintf(config->output, "%li ", in start_benchmark()
139 performance_time / config->cycles); in start_benchmark()
146 if (set_cpufreq_governor(config->governor, config->cpu) != 0) in start_benchmark()
151 for (cycle = 0; cycle < config->cycles; cycle++) { in start_benchmark()
157 if (config->verbose) in start_benchmark()
168 fprintf(config->output, "%li ", in start_benchmark()
169 powersave_time / config->cycles); in start_benchmark()
170 fprintf(config->output, "%.3f\n", in start_benchmark()
172 fflush(config->output); in start_benchmark()
174 if (config->verbose) in start_benchmark()
178 sleep_time += config->sleep_step; in start_benchmark()
179 load_time += config->load_step; in start_benchmark()