~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to tools/perf/util/config.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
399
399
int perf_config(config_fn_t fn, void *data)
400
400
{
401
401
        int ret = 0, found = 0;
402
 
        char *repo_config = NULL;
403
402
        const char *home = NULL;
404
403
 
405
404
        /* Setting $PERF_CONFIG makes perf read _only_ the given config file. */
421
420
                free(user_config);
422
421
        }
423
422
 
424
 
        repo_config = perf_pathdup("config");
425
 
        if (!access(repo_config, R_OK)) {
426
 
                ret += perf_config_from_file(fn, repo_config, data);
427
 
                found += 1;
428
 
        }
429
 
        free(repo_config);
430
423
        if (found == 0)
431
424
                return -1;
432
425
        return ret;