Thomas Gleixner | 86847b6 | 2009-06-06 12:24:17 +0200 | [diff] [blame] | 1 | /* |
| 2 | * builtin-list.c |
| 3 | * |
| 4 | * Builtin list command: list all event types |
| 5 | * |
| 6 | * Copyright (C) 2009, Thomas Gleixner <tglx@linutronix.de> |
| 7 | * Copyright (C) 2008-2009, Red Hat Inc, Ingo Molnar <mingo@redhat.com> |
| 8 | */ |
| 9 | #include "builtin.h" |
| 10 | |
| 11 | #include "perf.h" |
| 12 | |
Thomas Gleixner | 86847b6 | 2009-06-06 12:24:17 +0200 | [diff] [blame] | 13 | #include "util/parse-events.h" |
Arnaldo Carvalho de Melo | 8f7a0dc | 2009-08-12 14:44:59 -0300 | [diff] [blame] | 14 | #include "util/cache.h" |
Thomas Gleixner | 86847b6 | 2009-06-06 12:24:17 +0200 | [diff] [blame] | 15 | |
Ingo Molnar | f37a291 | 2009-07-01 12:37:06 +0200 | [diff] [blame] | 16 | int cmd_list(int argc __used, const char **argv __used, const char *prefix __used) |
Thomas Gleixner | 86847b6 | 2009-06-06 12:24:17 +0200 | [diff] [blame] | 17 | { |
Arnaldo Carvalho de Melo | 8f7a0dc | 2009-08-12 14:44:59 -0300 | [diff] [blame] | 18 | setup_pager(); |
Thomas Gleixner | 86847b6 | 2009-06-06 12:24:17 +0200 | [diff] [blame] | 19 | print_events(); |
| 20 | return 0; |
| 21 | } |