Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755214AbcC1Twu (ORCPT ); Mon, 28 Mar 2016 15:52:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36643 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752879AbcC1Twt (ORCPT ); Mon, 28 Mar 2016 15:52:49 -0400 Date: Mon, 28 Mar 2016 21:52:42 +0200 From: Jiri Olsa To: Taeung Song Cc: Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, Jiri Olsa , Namhyung Kim , Ingo Molnar , Peter Zijlstra Subject: Re: [PATCH 1/3] perf config: Remove duplicated the code calling set_buildid_dir Message-ID: <20160328195242.GB4687@krava.redhat.com> References: <1459099340-16911-1-git-send-email-treeze.taeung@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1459099340-16911-1-git-send-email-treeze.taeung@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1231 Lines: 47 On Mon, Mar 28, 2016 at 02:22:18AM +0900, Taeung Song wrote: > Cc: Jiri Olsa > Cc: Namhyung Kim > Signed-off-by: Taeung Song for the patchset: Acked-by: Jiri Olsa thanks, jirka > --- > 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], "--")) > -- > 2.5.0 >