Lines Matching refs:config

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()
105 strncpy(config->governor, optarg, 14); in main()
110 config->prio = string_to_prio(optarg); in main()
113 if (config != NULL) { in main()
114 if (config->output != NULL) in main()
115 fclose(config->output); in main()
116 free(config); in main()
122 sscanf(optarg, "%u", &config->cycles); in main()
126 sscanf(optarg, "%u", &config->rounds); in main()
130 sscanf(optarg, "%li", &config->load_step); in main()
134 sscanf(optarg, "%li", &config->sleep_step); in main()
138 if (prepare_config(optarg, config)) in main()
142 config->verbose = 1; in main()
148 if (config != NULL) { in main()
149 if (config->output != NULL) in main()
150 fclose(config->output); in main()
151 free(config); in main()
157 if (config->verbose) { in main()
168 config->sleep, in main()
169 config->load, in main()
170 config->sleep_step, in main()
171 config->load_step, in main()
172 config->cpu, in main()
173 config->cycles, in main()
174 config->rounds, in main()
175 config->governor); in main()
178 prepare_user(config); in main()
179 prepare_system(config); in main()
180 start_benchmark(config); in main()
182 if (config->output != stdout) in main()
183 fclose(config->output); in main()
185 free(config); in main()