diff options
Diffstat (limited to 'tools/perf/builtin-evlist.c')
-rw-r--r-- | tools/perf/builtin-evlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-evlist.c b/tools/perf/builtin-evlist.c index 85a5e35dd147..05bd9dfe875c 100644 --- a/tools/perf/builtin-evlist.c +++ b/tools/perf/builtin-evlist.c | |||
@@ -39,7 +39,7 @@ int cmd_evlist(int argc, const char **argv, const char *prefix __maybe_unused) | |||
39 | OPT_BOOLEAN('F', "freq", &details.freq, "Show the sample frequency"), | 39 | OPT_BOOLEAN('F', "freq", &details.freq, "Show the sample frequency"), |
40 | OPT_BOOLEAN('v', "verbose", &details.verbose, | 40 | OPT_BOOLEAN('v', "verbose", &details.verbose, |
41 | "Show all event attr details"), | 41 | "Show all event attr details"), |
42 | OPT_BOOLEAN('g', "group", &symbol_conf.event_group, | 42 | OPT_BOOLEAN('g', "group", &details.event_group, |
43 | "Show event group information"), | 43 | "Show event group information"), |
44 | OPT_END() | 44 | OPT_END() |
45 | }; | 45 | }; |
@@ -52,7 +52,7 @@ int cmd_evlist(int argc, const char **argv, const char *prefix __maybe_unused) | |||
52 | if (argc) | 52 | if (argc) |
53 | usage_with_options(evlist_usage, options); | 53 | usage_with_options(evlist_usage, options); |
54 | 54 | ||
55 | if (symbol_conf.event_group && (details.verbose || details.freq)) { | 55 | if (details.event_group && (details.verbose || details.freq)) { |
56 | pr_err("--group option is not compatible with other options\n"); | 56 | pr_err("--group option is not compatible with other options\n"); |
57 | usage_with_options(evlist_usage, options); | 57 | usage_with_options(evlist_usage, options); |
58 | } | 58 | } |