Lines Matching refs:config
11 #include "config.h"
17 if (config->output != stdout) { \
32 unsigned int calculate_timespace(long load, struct config *config)
40 if (config->verbose)
62 if (config->verbose)
74 * @param config config values for the benchmark
78 void start_benchmark(struct config *config)
87 sleep_time = config->sleep;
88 load_time = config->load;
91 for (_round = 1; _round <= config->rounds; _round++)
92 total_time += _round * (config->sleep + config->load);
95 for (_round = 0; _round < config->rounds; _round++) {
103 if (set_cpufreq_governor("performance", config->cpu) != 0)
109 calculations = calculate_timespace(load_time, config);
111 if (config->verbose)
113 " for %lius\n", _round + 1, config->cycles,
116 fprintf(config->output, "%u %li %li ",
119 if (config->verbose)
125 for (cycle = 0; cycle < config->cycles; cycle++) {
131 if (config->verbose)
138 fprintf(config->output, "%li ",
139 performance_time / config->cycles);
146 if (set_cpufreq_governor(config->governor, config->cpu) != 0)
151 for (cycle = 0; cycle < config->cycles; cycle++) {
157 if (config->verbose)
168 fprintf(config->output, "%li ",
169 powersave_time / config->cycles);
170 fprintf(config->output, "%.3f\n",
172 fflush(config->output);
174 if (config->verbose)
178 sleep_time += config->sleep_step;
179 load_time += config->load_step;