linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC][PATCH v8 0/4] Infrastructure code for perf-config
@ 2016-04-14  7:53 Taeung Song
  2016-04-14  7:53 ` [PATCH v8 1/4] perf config: Introduce perf_config_set class Taeung Song
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Taeung Song @ 2016-04-14  7:53 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: linux-kernel, Jiri Olsa, Namhyung Kim, Ingo Molnar,
	Peter Zijlstra, Masami Hiramatsu, Taeung Song

Hi,

We can use the config files (i.e user wide ~/.perfconfig
and system wide $(sysconfdir)/perfconfig)
to configure perf tools. perf-config help user
manage the config files, not manually look into or edit them.

Introduce new infrastructure code for config
management features of perf-config subcommand.

This pathset contains basic code for various purposes of configuration management
showing current configs, in the near future,
showing all configs with default value,
getting current configs from the config files
or writing configs that user type on the config files, etc.

IMHO, I think this infrastructure code is needed
to add new funcationalities for config management of perf-config.

If anyone reviews this, I'd appreciate it.

Thanks,
Taeung

v8:
- rebased onto the current acme/perf/core

v7:
- rename 'is_custom' to 'is_allocated' to be proper (Masami)
- fix the code about free() or zfree() in perf_config_*__delete() (Masami)
- check set == NULL or not in show_config() (Masami)

v6:
- don't use goto in add_config_item() (Masami)

v5:
- departmentalize perf_config_set__delete() (Arnaldo)
- remove confusing find_config() (Arnaldo)
- use pr_debug() instead of pr_err() (Arnaldo)
- use zfree() instead of free() (Arnaldo)
- more compact in perf_config_set__new() (Arnaldo)
- rename variables 'perf_configs', 'config_items', etc. (Arnaldo)

v4:
- fill perf_config_set__delete() in collect_config() for state of error
- fill the code setting is_custom value in add_config_item() (Namhyung)

v3:
- use the section list that contains configs each section
  instead of the single config list (Namhyung)
- exclude a patch for '--list-all' option from this patchset

v2:
- remove perf_config_kind (user, system or both config files)
  and needless at this time, etc. (Namhyung)
- separate this patch as several patches (Namhyung)
- fix typing errors, etc.

Taeung Song (4):
  perf config: Introduce perf_config_set class
  perf config: Let show_config() work with perf_config_set
  perf config: Prepare all default configs
  perf config: Initialize perf_config_set with all default configs

 tools/perf/builtin-config.c |  42 +++++-
 tools/perf/util/config.c    | 308 ++++++++++++++++++++++++++++++++++++++++++++
 tools/perf/util/config.h    |  91 +++++++++++++
 3 files changed, 434 insertions(+), 7 deletions(-)
 create mode 100644 tools/perf/util/config.h

-- 
2.5.0

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-04-20 15:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-14  7:53 [RFC][PATCH v8 0/4] Infrastructure code for perf-config Taeung Song
2016-04-14  7:53 ` [PATCH v8 1/4] perf config: Introduce perf_config_set class Taeung Song
2016-04-14 13:37   ` [tip:perf/core] " tip-bot for Taeung Song
2016-04-14  7:53 ` [PATCH v8 2/4] perf config: Let show_config() work with perf_config_set Taeung Song
2016-04-14 13:37   ` [tip:perf/core] perf config: Make show_config() use perf_config_set tip-bot for Taeung Song
2016-04-14  7:53 ` [PATCH v8 3/4] perf config: Prepare all default configs Taeung Song
2016-04-14 12:19   ` Arnaldo Carvalho de Melo
2016-04-14 16:42     ` Taeung Song
2016-04-18 14:55       ` Taeung Song
2016-04-20 12:44         ` Namhyung Kim
2016-04-20 13:22           ` Arnaldo Carvalho de Melo
2016-04-20 15:29             ` Taeung Song
2016-04-20 15:11           ` Taeung Song
2016-04-14  7:53 ` [PATCH v8 4/4] perf config: Initialize perf_config_set with " Taeung Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).