Re: [PATCH 3/4] perf tools: Add a option 'all' to perf-config.

2015-05-04 Thread Jiri Olsa
On Mon, Apr 27, 2015 at 03:34:25PM +0900, Taeung Song wrote: SNIP > +static int merge_config(const char *var, const char *value, > + void *cb __maybe_unused) > +{ > + const char *section_name, *subkey; > + parse_key(var, §ion_name, &subkey); > + return set_config(s

Re: [PATCH 3/4] perf tools: Add a option 'all' to perf-config.

2015-05-04 Thread Jiri Olsa
On Mon, Apr 27, 2015 at 03:34:25PM +0900, Taeung Song wrote: > A option 'all' is to display both current config variables and > all possible config variables with default values. > The syntax examples are like below > > perf config [options] > > display all perf config with default values

Re: [PATCH 3/4] perf tools: Add a option 'all' to perf-config.

2015-05-04 Thread Jiri Olsa
On Mon, Apr 27, 2015 at 03:34:25PM +0900, Taeung Song wrote: SNIP > + > +static int show_all_config(void) > +{ > + int ret = 0; > + struct config_section *section_node; > + struct config_element *element_node; > + char *pwd, *all_config; > + > + pwd = getenv("PWD"); > + al

Re: [PATCH 3/4] perf tools: Add a option 'all' to perf-config.

2015-05-04 Thread Jiri Olsa
On Mon, Apr 27, 2015 at 03:34:25PM +0900, Taeung Song wrote: > A option 'all' is to display both current config variables and > all possible config variables with default values. > The syntax examples are like below > > perf config [options] > > display all perf config with default values

[PATCH 3/4] perf tools: Add a option 'all' to perf-config.

2015-04-26 Thread Taeung Song
A option 'all' is to display both current config variables and all possible config variables with default values. The syntax examples are like below perf config [options] display all perf config with default values. # perf config or # perf config -a | --all Signed-off-by: Tae