Lines Matching refs:config

80 	struct config *config = NULL;  in main()  local
82 config = prepare_default_config(); in main()
84 if (config == NULL) in main()
95 if (config->output != NULL) in main()
96 fclose(config->output); in main()
98 config->output = prepare_output(optarg); in main()
100 if (config->output == NULL) in main()
106 sscanf(optarg, "%li", &config->sleep); in main()
110 sscanf(optarg, "%li", &config->load); in main()
114 sscanf(optarg, "%u", &config->cpu); in main()
118 strncpy(config->governor, optarg, 14); in main()
123 config->prio = string_to_prio(optarg); in main()
126 if (config != NULL) { in main()
127 if (config->output != NULL) in main()
128 fclose(config->output); in main()
129 free(config); in main()
135 sscanf(optarg, "%u", &config->cycles); in main()
139 sscanf(optarg, "%u", &config->rounds); in main()
143 sscanf(optarg, "%li", &config->load_step); in main()
147 sscanf(optarg, "%li", &config->sleep_step); in main()
151 if (prepare_config(optarg, config)) in main()
155 config->verbose = 1; in main()
161 if (config != NULL) { in main()
162 if (config->output != NULL) in main()
163 fclose(config->output); in main()
164 free(config); in main()
170 if (config->verbose) { in main()
181 config->sleep, in main()
182 config->load, in main()
183 config->sleep_step, in main()
184 config->load_step, in main()
185 config->cpu, in main()
186 config->cycles, in main()
187 config->rounds, in main()
188 config->governor); in main()
191 prepare_user(config); in main()
192 prepare_system(config); in main()
193 start_benchmark(config); in main()
195 if (config->output != stdout) in main()
196 fclose(config->output); in main()
198 free(config); in main()