OSDN Git Service

perf config: Add '--system' and '--user' options to select which config file is used
authorTaeung Song <treeze.taeung@gmail.com>
Wed, 10 Feb 2016 17:51:17 +0000 (02:51 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Feb 2016 13:54:46 +0000 (10:54 -0300)
commitc7ac24178c50a01f14eebcddf5c7b7a2e54676cc
tree0b9b6aa39456b4e83b91dc6c8a0648a6ea849ce7
parenta7636d9ecfa3ab7800a7c04c1f89378229eff609
perf config: Add '--system' and '--user' options to select which config file is used

The '--system' option means $(sysconfdir)/perfconfig and '--user' means
$HOME/.perfconfig. If none is used, both system and user config file are
read.  E.g.:

    # perf config [<file-option>] [options]

    With an specific config file:

    # perf config --user | --system

    or both user and system config file:

    # perf config

Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1455126685-32367-2-git-send-email-treeze.taeung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-config.txt
tools/perf/builtin-config.c
tools/perf/util/cache.h
tools/perf/util/config.c