Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1363660

[RFC][PATCH v3 0/4] perf config: Infrastructure code for perf-config

From Taeung Song <treeze.taeung@gmail.com>
Newsgroups linux.kernel
Subject [RFC][PATCH v3 0/4] perf config: Infrastructure code for perf-config
Date 2016-03-23 21:20 +0100
Message-ID <rfXq2-b9-13@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

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 |  38 ++++--
 tools/perf/util/config.c    | 298 ++++++++++++++++++++++++++++++++++++++++++++
 tools/perf/util/config.h    |  90 +++++++++++++
 3 files changed, 419 insertions(+), 7 deletions(-)
 create mode 100644 tools/perf/util/config.h

-- 
2.5.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[RFC][PATCH v3 0/4] perf config: Infrastructure code for perf-config Taeung Song <treeze.taeung@gmail.com> - 2016-03-23 21:20 +0100
  [PATCH v3 2/4] perf config: Let show_config() work with perf_config_set Taeung Song <treeze.taeung@gmail.com> - 2016-03-23 21:20 +0100
    Re: [PATCH v3 2/4] perf config: Let show_config() work with  perf_config_set Namhyung Kim <namhyung@kernel.org> - 2016-03-24 07:10 +0100
  [PATCH v3 4/4] perf config: Initialize perf_config_set with all default configs Taeung Song <treeze.taeung@gmail.com> - 2016-03-23 21:20 +0100
    Re: [PATCH v3 4/4] perf config: Initialize perf_config_set with all  default configs Namhyung Kim <namhyung@kernel.org> - 2016-03-24 07:20 +0100
      Re: [PATCH v3 4/4] perf config: Initialize perf_config_set with all  default configs Taeung Song <treeze.taeung@gmail.com> - 2016-03-24 07:50 +0100
  [PATCH v3 1/4] perf config: Introduce perf_config_set class Taeung Song <treeze.taeung@gmail.com> - 2016-03-23 21:20 +0100
    Re: [PATCH v3 1/4] perf config: Introduce perf_config_set class Namhyung Kim <namhyung@kernel.org> - 2016-03-24 07:10 +0100
      Re: [PATCH v3 1/4] perf config: Introduce perf_config_set class Taeung Song <treeze.taeung@gmail.com> - 2016-03-24 07:50 +0100
        Re: [PATCH v3 1/4] perf config: Introduce perf_config_set class Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-03-28 23:10 +0200
          Re: [PATCH v3 1/4] perf config: Introduce perf_config_set class Taeung Song <treeze.taeung@gmail.com> - 2016-03-29 02:20 +0200
  [PATCH v3 3/4] perf config: Prepare all default configs Taeung Song <treeze.taeung@gmail.com> - 2016-03-23 21:20 +0100
    Re: [PATCH v3 3/4] perf config: Prepare all default configs Namhyung Kim <namhyung@kernel.org> - 2016-03-24 07:10 +0100

csiph-web