perf config: Add support for getting config key-value pairs
authorTaeung Song <treeze.taeung@gmail.com>
Fri, 4 Nov 2016 06:44:17 +0000 (15:44 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 14 Nov 2016 15:52:17 +0000 (12:52 -0300)
commit909236083ee58399b371d085fef5cfac9bce3ec8
treeb996bab823eca9beeaf66fcf22231df017db0511
parent8c9c3d2f950cca57f5fa9330c4d15d8f0dfda092
perf config: Add support for getting config key-value pairs

Add a functionality getting specific config key-value pairs.
For the syntax examples,

    perf config [<file-option>] [section.name ...]

e.g. To query config items 'report.queue-size' and 'report.children', do

    # perf config report.queue-size report.children

Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Nambong Ha <over3025@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Cc: Wookje Kwon <aweee0@gmail.com>
Link: http://lkml.kernel.org/r/1478241862-31230-2-git-send-email-treeze.taeung@gmail.com
[ Combined patch with docs update with this one ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-config.txt
tools/perf/builtin-config.c