diff options
Diffstat (limited to 'tools/perf/builtin-buildid-list.c')
| -rw-r--r-- | tools/perf/builtin-buildid-list.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/perf/builtin-buildid-list.c b/tools/perf/builtin-buildid-list.c index 6b2bcfbde150..1159feeebb19 100644 --- a/tools/perf/builtin-buildid-list.c +++ b/tools/perf/builtin-buildid-list.c | |||
| @@ -16,8 +16,6 @@ | |||
| 16 | #include "util/session.h" | 16 | #include "util/session.h" |
| 17 | #include "util/symbol.h" | 17 | #include "util/symbol.h" |
| 18 | 18 | ||
| 19 | #include <libelf.h> | ||
| 20 | |||
| 21 | static const char *input_name; | 19 | static const char *input_name; |
| 22 | static bool force; | 20 | static bool force; |
| 23 | static bool show_kernel; | 21 | static bool show_kernel; |
| @@ -71,7 +69,7 @@ static int perf_session__list_build_ids(void) | |||
| 71 | { | 69 | { |
| 72 | struct perf_session *session; | 70 | struct perf_session *session; |
| 73 | 71 | ||
| 74 | elf_version(EV_CURRENT); | 72 | symbol__elf_init(); |
| 75 | 73 | ||
| 76 | session = perf_session__new(input_name, O_RDONLY, force, false, | 74 | session = perf_session__new(input_name, O_RDONLY, force, false, |
| 77 | &build_id__mark_dso_hit_ops); | 75 | &build_id__mark_dso_hit_ops); |
| @@ -105,7 +103,8 @@ static int __cmd_buildid_list(void) | |||
| 105 | return perf_session__list_build_ids(); | 103 | return perf_session__list_build_ids(); |
| 106 | } | 104 | } |
| 107 | 105 | ||
| 108 | int cmd_buildid_list(int argc, const char **argv, const char *prefix __used) | 106 | int cmd_buildid_list(int argc, const char **argv, |
| 107 | const char *prefix __maybe_unused) | ||
| 109 | { | 108 | { |
| 110 | argc = parse_options(argc, argv, options, buildid_list_usage, 0); | 109 | argc = parse_options(argc, argv, options, buildid_list_usage, 0); |
| 111 | setup_pager(); | 110 | setup_pager(); |
