Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755857AbcCaGxx (ORCPT ); Thu, 31 Mar 2016 02:53:53 -0400 Received: from terminus.zytor.com ([198.137.202.10]:34750 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751818AbcCaGxv (ORCPT ); Thu, 31 Mar 2016 02:53:51 -0400 Date: Wed, 30 Mar 2016 23:53:16 -0700 From: tip-bot for Taeung Song Message-ID: Cc: namhyung@kernel.org, acme@redhat.com, treeze.taeung@gmail.com, mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, jolsa@kernel.org, hpa@zytor.com, peterz@infradead.org Reply-To: peterz@infradead.org, hpa@zytor.com, jolsa@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@kernel.org, treeze.taeung@gmail.com, acme@redhat.com, namhyung@kernel.org In-Reply-To: <1459099340-16911-1-git-send-email-treeze.taeung@gmail.com> References: <1459099340-16911-1-git-send-email-treeze.taeung@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf config: Remove duplicated set_buildid_dir calls Git-Commit-ID: 58cb9d650be45100bf53ddf9e00351391de3d735 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1583 Lines: 47 Commit-ID: 58cb9d650be45100bf53ddf9e00351391de3d735 Gitweb: http://git.kernel.org/tip/58cb9d650be45100bf53ddf9e00351391de3d735 Author: Taeung Song AuthorDate: Mon, 28 Mar 2016 02:22:18 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 30 Mar 2016 11:14:08 -0300 perf config: Remove duplicated set_buildid_dir calls Signed-off-by: Taeung Song Acked-by: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1459099340-16911-1-git-send-email-treeze.taeung@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/perf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/perf/perf.c b/tools/perf/perf.c index aaee0a7..7b2df2b 100644 --- a/tools/perf/perf.c +++ b/tools/perf/perf.c @@ -549,6 +549,7 @@ int main(int argc, const char **argv) srandom(time(NULL)); perf_config(perf_default_config, NULL); + set_buildid_dir(NULL); /* get debugfs/tracefs mount point from /proc/mounts */ tracing_path_mount(); @@ -572,7 +573,6 @@ int main(int argc, const char **argv) } if (!prefixcmp(cmd, "trace")) { #ifdef HAVE_LIBAUDIT_SUPPORT - set_buildid_dir(NULL); setup_path(); argv[0] = "trace"; return cmd_trace(argc, argv, NULL); @@ -587,7 +587,6 @@ int main(int argc, const char **argv) argc--; handle_options(&argv, &argc, NULL); commit_pager_choice(); - set_buildid_dir(NULL); if (argc > 0) { if (!prefixcmp(argv[0], "--"))