Lines Matching defs:config
3 * config.c
5 * Helper functions for parsing config items.
24 #include "config.h"
294 pr_err("bad config file line %d in %s\n", config_linenr, config_file_name);
349 pr_warning("bad config value for '%s' in %s, ignoring...\n", name, config_file_name);
351 pr_warning("bad config value for '%s', ignoring...\n", name);
445 /* Add other config variables here. */
451 /* Add other config variables here. */
469 /* Add other config variables here. */
494 /* Add other config variables here. */
543 char *config;
550 * Skip reading user config if:
557 config = strdup(mkpath(path, sizeof(path), "%s/.perfconfig", home));
558 if (config == NULL) {
563 if (stat(config, &st) < 0)
567 pr_warning("File %s not owned by current user or root, ignoring it.\n", config);
572 return config;
575 free(config);
581 static const char *config;
584 if (failed || config)
585 return config;
587 config = home_perfconfig();
588 if (!config)
591 return config;
709 /* perf_config_set can contain both user and system config items.
711 * The classification would be needed when a particular config file
740 /* Setting $PERF_CONFIG makes perf read _only_ the given config file. */
804 pr_err("Error in the given config file: wrong config key-value pair %s=%s\n",