diff options
Diffstat (limited to 'tools/perf/builtin-evlist.c')
-rw-r--r-- | tools/perf/builtin-evlist.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/builtin-evlist.c b/tools/perf/builtin-evlist.c index 997afb82691b..c20f1dcfb7e2 100644 --- a/tools/perf/builtin-evlist.c +++ b/tools/perf/builtin-evlist.c | |||
@@ -48,12 +48,12 @@ static int __if_print(bool *first, const char *field, u64 value) | |||
48 | 48 | ||
49 | #define if_print(field) __if_print(&first, #field, pos->attr.field) | 49 | #define if_print(field) __if_print(&first, #field, pos->attr.field) |
50 | 50 | ||
51 | static int __cmd_evlist(const char *input_name, struct perf_attr_details *details) | 51 | static int __cmd_evlist(const char *file_name, struct perf_attr_details *details) |
52 | { | 52 | { |
53 | struct perf_session *session; | 53 | struct perf_session *session; |
54 | struct perf_evsel *pos; | 54 | struct perf_evsel *pos; |
55 | 55 | ||
56 | session = perf_session__new(input_name, O_RDONLY, 0, false, NULL); | 56 | session = perf_session__new(file_name, O_RDONLY, 0, false, NULL); |
57 | if (session == NULL) | 57 | if (session == NULL) |
58 | return -ENOMEM; | 58 | return -ENOMEM; |
59 | 59 | ||
@@ -111,7 +111,6 @@ static int __cmd_evlist(const char *input_name, struct perf_attr_details *detail | |||
111 | int cmd_evlist(int argc, const char **argv, const char *prefix __maybe_unused) | 111 | int cmd_evlist(int argc, const char **argv, const char *prefix __maybe_unused) |
112 | { | 112 | { |
113 | struct perf_attr_details details = { .verbose = false, }; | 113 | struct perf_attr_details details = { .verbose = false, }; |
114 | const char *input_name = NULL; | ||
115 | const struct option options[] = { | 114 | const struct option options[] = { |
116 | OPT_STRING('i', "input", &input_name, "file", "Input file name"), | 115 | OPT_STRING('i', "input", &input_name, "file", "Input file name"), |
117 | OPT_BOOLEAN('F', "freq", &details.freq, "Show the sample frequency"), | 116 | OPT_BOOLEAN('F', "freq", &details.freq, "Show the sample frequency"), |