Lines Matching defs:set
38 static int set_config(struct perf_config_set *set, const char *file_name)
45 if (set == NULL)
55 perf_config_items__for_each_entry(&set->sections, section) {
73 static int show_spec_config(struct perf_config_set *set, const char *var)
78 if (set == NULL)
81 perf_config_items__for_each_entry(&set->sections, section) {
103 static int show_config(struct perf_config_set *set)
108 if (set == NULL)
111 perf_config_set__for_each_entry(set, section, item) {
162 struct perf_config_set *set;
175 set = perf_config_set__new();
176 if (!set)
179 if (perf_config_set__collect(set, config_filename, var, value) < 0) {
184 if (set_config(set, config_filename) < 0) {
185 pr_err("Failed to set the configs on %s\n", config_filename);
191 perf_config_set__delete(set);
198 struct perf_config_set *set;
225 * At only 'config' sub-command, individually use the config set
228 set = perf_config_set__new();
229 if (!set)
239 if (show_config(set) < 0) {
265 if (show_spec_config(set, var) < 0) {
272 if (perf_config_set__collect(set, config_filename,
287 if (set_config(set, config_filename) < 0) {
288 pr_err("Failed to set the configs on %s\n",
296 perf_config_set__delete(set);