diff options
Diffstat (limited to 'tools/perf/perf.c')
-rw-r--r-- | tools/perf/perf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/perf.c b/tools/perf/perf.c index aaee0a782747..7b2df2b46525 100644 --- a/tools/perf/perf.c +++ b/tools/perf/perf.c | |||
@@ -549,6 +549,7 @@ int main(int argc, const char **argv) | |||
549 | srandom(time(NULL)); | 549 | srandom(time(NULL)); |
550 | 550 | ||
551 | perf_config(perf_default_config, NULL); | 551 | perf_config(perf_default_config, NULL); |
552 | set_buildid_dir(NULL); | ||
552 | 553 | ||
553 | /* get debugfs/tracefs mount point from /proc/mounts */ | 554 | /* get debugfs/tracefs mount point from /proc/mounts */ |
554 | tracing_path_mount(); | 555 | tracing_path_mount(); |
@@ -572,7 +573,6 @@ int main(int argc, const char **argv) | |||
572 | } | 573 | } |
573 | if (!prefixcmp(cmd, "trace")) { | 574 | if (!prefixcmp(cmd, "trace")) { |
574 | #ifdef HAVE_LIBAUDIT_SUPPORT | 575 | #ifdef HAVE_LIBAUDIT_SUPPORT |
575 | set_buildid_dir(NULL); | ||
576 | setup_path(); | 576 | setup_path(); |
577 | argv[0] = "trace"; | 577 | argv[0] = "trace"; |
578 | return cmd_trace(argc, argv, NULL); | 578 | return cmd_trace(argc, argv, NULL); |
@@ -587,7 +587,6 @@ int main(int argc, const char **argv) | |||
587 | argc--; | 587 | argc--; |
588 | handle_options(&argv, &argc, NULL); | 588 | handle_options(&argv, &argc, NULL); |
589 | commit_pager_choice(); | 589 | commit_pager_choice(); |
590 | set_buildid_dir(NULL); | ||
591 | 590 | ||
592 | if (argc > 0) { | 591 | if (argc > 0) { |
593 | if (!prefixcmp(argv[0], "--")) | 592 | if (!prefixcmp(argv[0], "--")) |