|
@@ -48,14 +48,18 @@ static int set_config(struct perf_config_set *set, const char *file_name,
|
|
if (!fp)
|
|
if (!fp)
|
|
return -1;
|
|
return -1;
|
|
|
|
|
|
- perf_config_set__collect(set, var, value);
|
|
|
|
|
|
+ perf_config_set__collect(set, file_name, var, value);
|
|
fprintf(fp, "%s\n", first_line);
|
|
fprintf(fp, "%s\n", first_line);
|
|
|
|
|
|
/* overwrite configvariables */
|
|
/* overwrite configvariables */
|
|
perf_config_items__for_each_entry(&set->sections, section) {
|
|
perf_config_items__for_each_entry(&set->sections, section) {
|
|
|
|
+ if (!use_system_config && section->from_system_config)
|
|
|
|
+ continue;
|
|
fprintf(fp, "[%s]\n", section->name);
|
|
fprintf(fp, "[%s]\n", section->name);
|
|
|
|
|
|
perf_config_items__for_each_entry(§ion->items, item) {
|
|
perf_config_items__for_each_entry(§ion->items, item) {
|
|
|
|
+ if (!use_system_config && section->from_system_config)
|
|
|
|
+ continue;
|
|
if (item->value)
|
|
if (item->value)
|
|
fprintf(fp, "\t%s = %s\n",
|
|
fprintf(fp, "\t%s = %s\n",
|
|
item->name, item->value);
|
|
item->name, item->value);
|