From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754150AbdEHLHc (ORCPT ); Mon, 8 May 2017 07:07:32 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34147 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514AbdEHLHa (ORCPT ); Mon, 8 May 2017 07:07:30 -0400 From: Taeung Song To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, Jiri Olsa , Namhyung Kim Subject: [PATCH v2 0/4] perf config: Bugfixes & Refactoring Date: Mon, 8 May 2017 20:07:04 +0900 Message-Id: <1494241624-31941-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-v2' branch on git://github.com/taeung/linux-perf.git Thanks, Taeung v2: - there is no need to consider empty config file (Arnaldo) Taeung Song (4): perf config: Invert a if statement to reduce nesting in cmd_config() perf config: Finally write changed configs on config file at a time perf config: Correctly check whether it is from system config perf config: Automatically create config file if not exists when setting config tools/perf/builtin-config.c | 57 +++++++++++++++++++++++++-------------------- tools/perf/util/config.c | 5 +--- 2 files changed, 33 insertions(+), 29 deletions(-) -- 2.7.4