diff options
Diffstat (limited to 'tools/perf/builtin-buildid-list.c')
-rw-r--r-- | tools/perf/builtin-buildid-list.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/perf/builtin-buildid-list.c b/tools/perf/builtin-buildid-list.c index a0e94fffa03e..a82d99fec83e 100644 --- a/tools/perf/builtin-buildid-list.c +++ b/tools/perf/builtin-buildid-list.c | |||
@@ -44,8 +44,7 @@ static int filename__fprintf_build_id(const char *name, FILE *fp) | |||
44 | return fprintf(fp, "%s\n", sbuild_id); | 44 | return fprintf(fp, "%s\n", sbuild_id); |
45 | } | 45 | } |
46 | 46 | ||
47 | static int perf_session__list_build_ids(const char *input_name, | 47 | static int perf_session__list_build_ids(bool force, bool with_hits) |
48 | bool force, bool with_hits) | ||
49 | { | 48 | { |
50 | struct perf_session *session; | 49 | struct perf_session *session; |
51 | 50 | ||
@@ -81,7 +80,6 @@ int cmd_buildid_list(int argc, const char **argv, | |||
81 | bool show_kernel = false; | 80 | bool show_kernel = false; |
82 | bool with_hits = false; | 81 | bool with_hits = false; |
83 | bool force = false; | 82 | bool force = false; |
84 | const char *input_name = NULL; | ||
85 | const struct option options[] = { | 83 | const struct option options[] = { |
86 | OPT_BOOLEAN('H', "with-hits", &with_hits, "Show only DSOs with hits"), | 84 | OPT_BOOLEAN('H', "with-hits", &with_hits, "Show only DSOs with hits"), |
87 | OPT_STRING('i', "input", &input_name, "file", "input file name"), | 85 | OPT_STRING('i', "input", &input_name, "file", "input file name"), |
@@ -101,5 +99,5 @@ int cmd_buildid_list(int argc, const char **argv, | |||
101 | if (show_kernel) | 99 | if (show_kernel) |
102 | return sysfs__fprintf_build_id(stdout); | 100 | return sysfs__fprintf_build_id(stdout); |
103 | 101 | ||
104 | return perf_session__list_build_ids(input_name, force, with_hits); | 102 | return perf_session__list_build_ids(force, with_hits); |
105 | } | 103 | } |