blob: d88c6961274cf2e961eec9d1b420dc0621965a6a [file] [log] [blame]
Thomas Gleixner86847b62009-06-06 12:24:17 +02001/*
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 Gleixner86847b62009-06-06 12:24:17 +020013#include "util/parse-events.h"
Arnaldo Carvalho de Melo8f7a0dc2009-08-12 14:44:59 -030014#include "util/cache.h"
Thomas Gleixner86847b62009-06-06 12:24:17 +020015
Ingo Molnarf37a2912009-07-01 12:37:06 +020016int cmd_list(int argc __used, const char **argv __used, const char *prefix __used)
Thomas Gleixner86847b62009-06-06 12:24:17 +020017{
Arnaldo Carvalho de Melo8f7a0dc2009-08-12 14:44:59 -030018 setup_pager();
Thomas Gleixner86847b62009-06-06 12:24:17 +020019 print_events();
20 return 0;
21}