Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933005AbcKNQax (ORCPT ); Mon, 14 Nov 2016 11:30:53 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36208 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932174AbcKNQav (ORCPT ); Mon, 14 Nov 2016 11:30:51 -0500 Subject: Re: [PATCH 2/6] perf config: Document examples to get config key-value pairs in man page To: Arnaldo Carvalho de Melo References: <1478241862-31230-1-git-send-email-treeze.taeung@gmail.com> <1478241862-31230-3-git-send-email-treeze.taeung@gmail.com> <20161114155141.GC26543@kernel.org> Cc: linux-kernel@vger.kernel.org, Jiri Olsa , Namhyung Kim , Ingo Molnar , Peter Zijlstra , Wang Nan , Nambong Ha , Wookje Kwon From: Taeung Song Message-ID: Date: Tue, 15 Nov 2016 01:30:47 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20161114155141.GC26543@kernel.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2023 Lines: 66 On 11/15/2016 12:51 AM, Arnaldo Carvalho de Melo wrote: > Em Fri, Nov 04, 2016 at 03:44:18PM +0900, Taeung Song escreveu: >> Explain how to query particular config items in config file >> and how to get several config items from user or system config file >> using '--user' or '--system' options. > > This one should be combined with the previous one, i.e. the patch that > introduces this feature, doing it myself. > I got it! :) I'll combine getting functionality and examples getting config info as a patch. Thanks, Taeung > >> Cc: Namhyung Kim >> Cc: Jiri Olsa >> Cc: Wang Nan >> Signed-off-by: Taeung Song >> --- >> tools/perf/Documentation/perf-config.txt | 18 ++++++++++++++++++ >> 1 file changed, 18 insertions(+) >> >> diff --git a/tools/perf/Documentation/perf-config.txt b/tools/perf/Documentation/perf-config.txt >> index cb081ac5..1714b0c 100644 >> --- a/tools/perf/Documentation/perf-config.txt >> +++ b/tools/perf/Documentation/perf-config.txt >> @@ -8,6 +8,8 @@ perf-config - Get and set variables in a configuration file. >> SYNOPSIS >> -------- >> [verse] >> +'perf config' [] [section.name ...] >> +or >> 'perf config' [] -l | --list >> >> DESCRIPTION >> @@ -118,6 +120,22 @@ Given a $HOME/.perfconfig like this: >> children = true >> group = true >> >> +To query the record mode of call graph, do >> + >> + % perf config call-graph.record-mode >> + >> +If you want to know multiple config key/value pairs, you can do like >> + >> + % perf config report.queue-size call-graph.order report.children >> + >> +To query the config value of sort order of call graph in user config file (i.e. `~/.perfconfig`), do >> + >> + % perf config --user call-graph.sort-order >> + >> +To query the config value of buildid directory in system config file (i.e. `$(sysconf)/perfconfig`), do >> + >> + % perf config --system buildid.dir >> + >> Variables >> ~~~~~~~~~ >> >> -- >> 2.7.4