diff options
Diffstat (limited to 'Documentation/perf_counter/builtin-top.c')
-rw-r--r-- | Documentation/perf_counter/builtin-top.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Documentation/perf_counter/builtin-top.c b/Documentation/perf_counter/builtin-top.c index 98a6d53e17b3..f2e7312f85c9 100644 --- a/Documentation/perf_counter/builtin-top.c +++ b/Documentation/perf_counter/builtin-top.c | |||
@@ -606,11 +606,10 @@ static const char * const top_usage[] = { | |||
606 | NULL | 606 | NULL |
607 | }; | 607 | }; |
608 | 608 | ||
609 | static char events_help_msg[EVENTS_HELP_MAX]; | ||
610 | |||
611 | static const struct option options[] = { | 609 | static const struct option options[] = { |
612 | OPT_CALLBACK('e', "event", NULL, "event", | 610 | OPT_CALLBACK('e', "event", NULL, "event", |
613 | events_help_msg, parse_events), | 611 | "event selector. use 'perf list' to list available events", |
612 | parse_events), | ||
614 | OPT_INTEGER('c', "count", &default_interval, | 613 | OPT_INTEGER('c', "count", &default_interval, |
615 | "event period to sample"), | 614 | "event period to sample"), |
616 | OPT_INTEGER('p', "pid", &target_pid, | 615 | OPT_INTEGER('p', "pid", &target_pid, |
@@ -648,8 +647,6 @@ int cmd_top(int argc, const char **argv, const char *prefix) | |||
648 | 647 | ||
649 | page_size = sysconf(_SC_PAGE_SIZE); | 648 | page_size = sysconf(_SC_PAGE_SIZE); |
650 | 649 | ||
651 | create_events_help(events_help_msg); | ||
652 | |||
653 | argc = parse_options(argc, argv, options, top_usage, 0); | 650 | argc = parse_options(argc, argv, options, top_usage, 0); |
654 | if (argc) | 651 | if (argc) |
655 | usage_with_options(top_usage, options); | 652 | usage_with_options(top_usage, options); |