diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-06-06 06:24:17 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-06 08:16:49 -0400 |
commit | 86847b62f0781ccc97a79936c9ed9dc818cff67b (patch) | |
tree | a55a8ea4a3e2c771322edc7aa01b1572c3a59c06 /Documentation/perf_counter/builtin-record.c | |
parent | 8326f44da090d6d304d29b9fdc7fb3e20889e329 (diff) |
perf_counter tools: Add 'perf list' to list available events
perf list: List all the available event types which can be used in
-e (--event) options.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/builtin-record.c')
-rw-r--r-- | Documentation/perf_counter/builtin-record.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Documentation/perf_counter/builtin-record.c b/Documentation/perf_counter/builtin-record.c index 130fd88266b..aeab9c4b15e 100644 --- a/Documentation/perf_counter/builtin-record.c +++ b/Documentation/perf_counter/builtin-record.c | |||
@@ -495,11 +495,10 @@ static const char * const record_usage[] = { | |||
495 | NULL | 495 | NULL |
496 | }; | 496 | }; |
497 | 497 | ||
498 | static char events_help_msg[EVENTS_HELP_MAX]; | ||
499 | |||
500 | static const struct option options[] = { | 498 | static const struct option options[] = { |
501 | OPT_CALLBACK('e', "event", NULL, "event", | 499 | OPT_CALLBACK('e', "event", NULL, "event", |
502 | events_help_msg, parse_events), | 500 | "event selector. use 'perf list' to list available events", |
501 | parse_events), | ||
503 | OPT_INTEGER('p', "pid", &target_pid, | 502 | OPT_INTEGER('p', "pid", &target_pid, |
504 | "record events on existing pid"), | 503 | "record events on existing pid"), |
505 | OPT_INTEGER('r', "realtime", &realtime_prio, | 504 | OPT_INTEGER('r', "realtime", &realtime_prio, |
@@ -527,8 +526,6 @@ int cmd_record(int argc, const char **argv, const char *prefix) | |||
527 | { | 526 | { |
528 | int counter; | 527 | int counter; |
529 | 528 | ||
530 | create_events_help(events_help_msg); | ||
531 | |||
532 | argc = parse_options(argc, argv, options, record_usage, 0); | 529 | argc = parse_options(argc, argv, options, record_usage, 0); |
533 | if (!argc && target_pid == -1 && !system_wide) | 530 | if (!argc && target_pid == -1 && !system_wide) |
534 | usage_with_options(record_usage, options); | 531 | usage_with_options(record_usage, options); |