diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-06-06 12:24:17 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-06 14:16:49 +0200 |
commit | 86847b62f0781ccc97a79936c9ed9dc818cff67b (patch) | |
tree | a55a8ea4a3e2c771322edc7aa01b1572c3a59c06 /Documentation/perf_counter/builtin-list.c | |
parent | 8326f44da090d6d304d29b9fdc7fb3e20889e329 (diff) | |
download | lwn-86847b62f0781ccc97a79936c9ed9dc818cff67b.tar.gz lwn-86847b62f0781ccc97a79936c9ed9dc818cff67b.zip |
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-list.c')
-rw-r--r-- | Documentation/perf_counter/builtin-list.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Documentation/perf_counter/builtin-list.c b/Documentation/perf_counter/builtin-list.c new file mode 100644 index 000000000000..fe60e37c96ef --- /dev/null +++ b/Documentation/perf_counter/builtin-list.c @@ -0,0 +1,20 @@ +/* + * builtin-list.c + * + * Builtin list command: list all event types + * + * Copyright (C) 2009, Thomas Gleixner <tglx@linutronix.de> + * Copyright (C) 2008-2009, Red Hat Inc, Ingo Molnar <mingo@redhat.com> + */ +#include "builtin.h" + +#include "perf.h" + +#include "util/parse-options.h" +#include "util/parse-events.h" + +int cmd_list(int argc, const char **argv, const char *prefix) +{ + print_events(); + return 0; +} |