Commit 58cb9d65 authored by Taeung Song's avatar Taeung Song Committed by Arnaldo Carvalho de Melo

perf config: Remove duplicated set_buildid_dir calls

Signed-off-by: default avatarTaeung Song <treeze.taeung@gmail.com>
Acked-by: default avatarJiri 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.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent b31d660d
...@@ -549,6 +549,7 @@ int main(int argc, const char **argv) ...@@ -549,6 +549,7 @@ int main(int argc, const char **argv)
srandom(time(NULL)); srandom(time(NULL));
perf_config(perf_default_config, NULL); perf_config(perf_default_config, NULL);
set_buildid_dir(NULL);
/* get debugfs/tracefs mount point from /proc/mounts */ /* get debugfs/tracefs mount point from /proc/mounts */
tracing_path_mount(); tracing_path_mount();
...@@ -572,7 +573,6 @@ int main(int argc, const char **argv) ...@@ -572,7 +573,6 @@ int main(int argc, const char **argv)
} }
if (!prefixcmp(cmd, "trace")) { if (!prefixcmp(cmd, "trace")) {
#ifdef HAVE_LIBAUDIT_SUPPORT #ifdef HAVE_LIBAUDIT_SUPPORT
set_buildid_dir(NULL);
setup_path(); setup_path();
argv[0] = "trace"; argv[0] = "trace";
return cmd_trace(argc, argv, NULL); return cmd_trace(argc, argv, NULL);
...@@ -587,7 +587,6 @@ int main(int argc, const char **argv) ...@@ -587,7 +587,6 @@ int main(int argc, const char **argv)
argc--; argc--;
handle_options(&argv, &argc, NULL); handle_options(&argv, &argc, NULL);
commit_pager_choice(); commit_pager_choice();
set_buildid_dir(NULL);
if (argc > 0) { if (argc > 0) {
if (!prefixcmp(argv[0], "--")) if (!prefixcmp(argv[0], "--"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment