]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3065e0cf17bc2c7de8f85fe81cb23b0fe8b64bd2
tree0b9b6aa39456b4e83b91dc6c8a0648a6ea849ce7
parente757e29a8b52d58c18d5b38ad3a43a2e8f7e70bf
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