Skip to content

Commit

Permalink
perf config: Remove duplicated set_buildid_dir calls
Browse files Browse the repository at this point in the history
Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1459099340-16911-1-git-send-email-treeze.taeung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Taeung Song authored and Arnaldo Carvalho de Melo committed Mar 30, 2016
1 parent b31d660 commit 58cb9d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/perf/perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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);
Expand All @@ -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], "--"))
Expand Down

0 comments on commit 58cb9d6

Please sign in to comment.