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


Groups > linux.kernel > #1668153 > unrolled thread

[PATCH v4 0/5] perf config: Bugfixes & Refactoring

Started byTaeung Song <treeze.taeung@gmail.com>
First post2017-06-17 05:50 +0200
Last post2017-06-17 05:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH v4 0/5] perf config: Bugfixes & Refactoring Taeung Song <treeze.taeung@gmail.com> - 2017-06-17 05:50 +0200

#1668153 — [PATCH v4 0/5] perf config: Bugfixes & Refactoring

FromTaeung Song <treeze.taeung@gmail.com>
Date2017-06-17 05:50 +0200
Subject[PATCH v4 0/5] perf config: Bugfixes & Refactoring
Message-ID<tTcUh-1gh-3@gated-at.bofh.it>
Hi all,

This is simple patchset for perf-config
to fix small bugs and refactor code.

I'd appreciate some feedback on this patchset.

The code is also available at 'config/refactoring-v4' branch on

  git://github.com/taeung/linux-perf.git


Thanks,
Taeung

v4:
- rebase on current acme/perf/core
- simplify commit log messages
- remove needless two patches

v3:
- fix a bug of no checked 'ret' in the loop in cmd_config() (Arnaldo)
- modify commit log messages to be more clear (Aranaldo)
- return -1 if show_spec_config() cannot show the config
- initialize 'ret' with -1 instead of 0 for more compact code in cmd_config()
- Add a error message when perf_config_set__new() failed in cmd_config()

v2:
- there is no need to consider empty config file (Arnaldo)

Taeung Song (5):
  perf config: Check error cases of {show_spec, set}_config()
  perf config: Refactor the code using 'ret' variable in cmd_config()
  perf config: Finally write changed configs on config file at a time
  perf config: Check not only section->from_system_config but also
    item's
  perf config: Autogenerate a config file if it does not exist on
    setting feature.

 tools/perf/builtin-config.c | 57 ++++++++++++++++++++++++++++++---------------
 tools/perf/util/config.c    |  5 +---
 2 files changed, 39 insertions(+), 23 deletions(-)

-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web