Re: [PATCH v3 10/17] perf: Provide subcmd configuration at runtime

2015-12-14 Thread Josh Poimboeuf
On Mon, Dec 14, 2015 at 11:33:58AM +0100, Jiri Olsa wrote: > On Sun, Dec 13, 2015 at 10:18:10PM -0600, Josh Poimboeuf wrote: > > SNIP > > > > > typedef int (*config_fn_t)(const char *, const char *, void *); > > extern int perf_default_config(const char *, const char *, void *); > > diff

Re: [PATCH v3 10/17] perf: Provide subcmd configuration at runtime

2015-12-14 Thread Jiri Olsa
On Sun, Dec 13, 2015 at 10:18:10PM -0600, Josh Poimboeuf wrote: SNIP > > typedef int (*config_fn_t)(const char *, const char *, void *); > extern int perf_default_config(const char *, const char *, void *); > diff --git a/tools/perf/util/exec_cmd.c b/tools/perf/util/exec_cmd.c > index

Re: [PATCH v3 10/17] perf: Provide subcmd configuration at runtime

2015-12-14 Thread Jiri Olsa
On Sun, Dec 13, 2015 at 10:18:10PM -0600, Josh Poimboeuf wrote: SNIP > > typedef int (*config_fn_t)(const char *, const char *, void *); > extern int perf_default_config(const char *, const char *, void *); > diff --git a/tools/perf/util/exec_cmd.c b/tools/perf/util/exec_cmd.c > index

Re: [PATCH v3 10/17] perf: Provide subcmd configuration at runtime

2015-12-14 Thread Josh Poimboeuf
On Mon, Dec 14, 2015 at 11:33:58AM +0100, Jiri Olsa wrote: > On Sun, Dec 13, 2015 at 10:18:10PM -0600, Josh Poimboeuf wrote: > > SNIP > > > > > typedef int (*config_fn_t)(const char *, const char *, void *); > > extern int perf_default_config(const char *, const char *, void *); > > diff

[PATCH v3 10/17] perf: Provide subcmd configuration at runtime

2015-12-13 Thread Josh Poimboeuf
Create init functions for exec_cmd.c, parse-option.c, and pager.c. This allows their configuration to be specified at runtime so they can be split out into a separate library which can be used by other programs. Signed-off-by: Josh Poimboeuf --- tools/perf/Build| 5 -

[PATCH v3 10/17] perf: Provide subcmd configuration at runtime

2015-12-13 Thread Josh Poimboeuf
Create init functions for exec_cmd.c, parse-option.c, and pager.c. This allows their configuration to be specified at runtime so they can be split out into a separate library which can be used by other programs. Signed-off-by: Josh Poimboeuf --- tools/perf/Build