From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753544AbdIGDSq (ORCPT ); Wed, 6 Sep 2017 23:18:46 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:38268 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752142AbdIGDSp (ORCPT ); Wed, 6 Sep 2017 23:18:45 -0400 X-Google-Smtp-Source: ADKCNb7mNDbWazcyFwS4lLFwCOrFZ5atJ9cpqurQGaeM7rOvIMOzhw2A26j7oH2oB3kG+gOHXJ5RKg== From: Taeung Song To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, taeung@kosslab.kr, Jiri Olsa , Namhyung Kim Subject: [PATCH v5 0/3] perf config: Simple bugfixes & refactoring Date: Thu, 7 Sep 2017 12:18:37 +0900 Message-Id: <1504754317-9675-1-git-send-email-treeze.taeung@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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-v5' branch on git://github.com/taeung/linux-perf.git Thanks, Taeung v5: - rebase on current acme/perf/core - adjust commit log messages to be more proper 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 (3): perf config: Check not only section->from_system_config but also item's perf config: Once write a config file in the end, not a repeat perf config: Allow creating empty config set for config file autogeneration tools/perf/builtin-config.c | 24 +++++++++++++++++------- tools/perf/util/config.c | 5 +---- 2 files changed, 18 insertions(+), 11 deletions(-) -- 2.7.4